1
Hi,
Does anyone know how to make the <{include}> smarty tag work? My included templates don't get displayed - presumably because XOOPS doesn't compile them.
What I'm trying to accomplish:
I'd like for the look of my blocks to be controlled by the theme, but I'm having problems because XOOPS only has 5 different types of blocks - left, center left, center, center right, and right.
It looks like I'm going to have to settle for moving a lot of the 'look' into the individual block templates. The thing is, a lot of this 'look' is common. I really don't want to have to cut and paste html that is the same between different blocks.
As I see it, I have several alternatives:
- make one block template, with all the stuff that's common. Then define the contents of the block in the PHP 'show_func'. This seems pretty silly - as it completely ruins the logic/presentation seperation.
- cut and paste code between different blocks - seems pretty dumb, but now only the dynamic portions need to be defined in show_func.
- use the smarty <{include}> tag to include the common portions. Not ideal, but better than the first two options. Only problem is that it doesn't seem to work -- XOOPS doesn't compile the templates that are <{include}>ed