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
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- internetking created topic »password problem« 25. May
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
- mdee created topic »How to implement returnpage ?« 25. May
- nestormateo responded to »Fillters in Clip« 24. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Block display
-
- Rank: Developer
- Registered: Jan 04, 2005
- Last visit: Apr 13, 2010
- Posts: 69
-
- Rank: Team Member
- Registered: Mar 18, 2002
- Last visit: Oct 21, 2009
- Posts: 6606
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. -
- Rank: Developer
- Registered: Jan 04, 2005
- Last visit: Apr 13, 2010
- Posts: 69
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:in .8, it would be possible, to set the name with a variable, which could contain the module name for example.Code
<!--[ blockposition name="left" ]-->
marco
edited by: spax, Aug 07, 2006 - 06:26 AM -
- Rank: Team Member
- Registered: Mar 18, 2002
- Last visit: Oct 21, 2009
- Posts: 6606
There already is a template variable holding the module name... Check the theme template variables docs.
-Mark
--
Visit My homepage and Zikula themes. -
- Rank: Developer
- Registered: Jan 04, 2005
- Last visit: Apr 13, 2010
- Posts: 69
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...
-
- Rank: Team Member
- Registered: Mar 18, 2002
- Last visit: Oct 21, 2009
- Posts: 6606
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.
- Moderated by:
- Support
