Fork me on GitHub

Block display  Bottom

  • I don't understand the block handling in SVN .8

    Isn't it possible any more to display blocks only on certain modules, as it was in 0.7x? Do I have to handle this over block position's now? Or is it just not implemented yet?

    Marco
  • Block placement to certain modules can be achieved by creating a block position and assigning the block to that block position. Add the block position tag to a template specifically for that module. Remember that you can assign a single block to multiple block positions.

    -Mark

    --
    Visit My homepage and Zikula themes.
  • So I need for almost every module a template, which are all identical (exepct the block position) if I want to show different blocks for every module?
    At the moment .76, I only have one theme template!
    Or is the trick to set the blockposition dynamic, since the call is like this:

    Code

    <!--[ blockposition name="left" ]-->
    in .8, it would be possible, to set the name with a variable, which could contain the module name for example.

    marco




    edited by: spax, Aug 07, 2006 - 06:26 AM
  • There already is a template variable holding the module name... Check the theme template variables docs.

    -Mark

    --
    Visit My homepage and Zikula themes.
  • Cool, thanks!

    hmm not the first time I realize that 8. is more flexible, but needs more technical know how as it .76 does.

    I don't know, if all users will like this way to show/hide blocks for particular modules...
  • I take your point on the adding of blocks to individual modules. My original design structure was that a site would consist of a number of page configurations. Each page configuration would consist of a set of templates (one page template and some block templates). A page configuration could then be assigned to one or more pages based on the module or any other parameter in the URL.

    -Mark

    --
    Visit My homepage and Zikula themes.

This list is based on users active over the last 60 minutes.