On Wed, Mar 11, 2009 at 5:19 PM, Martin <[email protected]> wrote:
>
> I want two sidebars for every page, but only one for main.
>
> Is there a way to use conditions in code.skin or having a different
> code.skin.main for main and one for other groups?

Probably yes to both. Definitely to the second.

For your general site, use

code.skin.myskin

For your main group, use

code.skin.main.myskin

Note this will affect any pages in the main hierarchy, not just main.

Another option is to use the new "nozone" parameter.  Just put in site.config

nozone:side2: main*

(or just main). This will hide any content from showing in the second
side zone, but not any divs or the like if they are hardcoded in the
skin. Hans and I discussed this issue once before and never really
resolved the issue fully.

Except it occurs to me now, you could put the div info in the page and
that way it would all show/hide using the nozone command.  For example
in page side2, put:

<div id=side2>
* menu
* menu
* menu
* whatever
</div>

Then that div can be styled and the likes. But not appear when
[[side2]] is turned off in the skin. Whereas <div
id=side2>[[side2]]</div> in the skin would not do this.

There are likely other solutions, but let me know if one of these
won't work for you.

Cheers,
Dan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to