35
Quote:
LazyBadger wrote:
Quote:
Herko Coomans wrote:
You're only right when dealing with multiple instances of the same block. Any other block instance you can design and layout perfectly fine using only the template system.
Hmmm... show me code?!
"In Code we trust"... I want
1. Create theme for XOOPS 2.0 (single instance of block, true)
2. All users, using this theme, will get "DesignA" for all blocks
3. 4-rd block of center-left column have "DesignB"
4. Block Alpha of module Bravo must have ""DesignC" (if cond.3 for this block !true)
Yes, this can be done, because the designA design is what you set as default classes in your stylesheet. Just like it is now, really.
The 4th block if center-left isn't just any block, it's a specific block. You can edit the template of that block, using designB style classes (or IDs if you need to), and give it a unique look in your stylesheet. Nothing too difficult I imagine.
The Alpha block of the Beta module is another specific block with a temmplate. If the module is coded right, it will allow for conditions in the smarty template based on specific variables. It happens all the time, so that's not hard to do either. Here too, all you have to do is assign specific designC classes and/or ID's and define them in your stylesheet.
As you well know, I'm no coder but I can design sites like this. A good example is Draven's fantasyfootball.com/fantasybaseball.com etc. sites.
Herko