Conditionalizing sidebar content (please help)

Options

I am working on a new wrapper for our site, just something to give it a facelift.

The new wrapper would have a right sidebar that constrains the regular PageBuilder content width to smaller than the 660px Convio design guidelines recommend. I've discussed with Convio admins, and they say this should be fine, but for donation forms and the calendar (and a couple other components), it is recommended I conditionalize that right sidebar so it only appears on certain pages. Or, more accurately, does not show up on certain pages.

So, my question: Does anyone know what session tags I would use to do this? (I'm assuming it's session tags)

I've worked in Convio for a while now, but this is the first time I have encountered something like this. My apologies if this is one of those "duh" questions.

Thanks!

Tagged:

Comments

  • I should clarify that the donation forms and calendar, et al, are the pages the right sidebar could not appear, in order to accommodate the width of those components.

  • jdp :

    I should clarify that the donation forms and calendar, et al, are the pages the right sidebar could not appear, in order to accommodate the width of those components.

    You could simply build two different wrappers, of course.

    Or you could build your sidebar as a reusuable page.

    Then in your Wrapper you can do something like...

    ] :: Donation2 :: ] :: ] ]]

    ...which simply means "if the URL contains 'Donation2' then show the 'side_don' sidebar, otherwise show the 'side_reg' sidebar.

    OR something more complex like...

    ] :: Donation2 :: ] :: ] :: Cal2 :: ] :: ] ]]]]

    ...which means "if the URL contains 'Donation2' then show the 'side_don' sidebar, if the URL contains 'Cal2' then show the 'side_cal' sidebar, otherwise show the 'side_reg' sidebar.

    (Is the unique URL component in Calendars 'Cal2'? I can't recall, but you get the idea.)

    Or...

    ] :: Donation2 :: :: ] :: Cal2 :: :: ] ]]]]

    ...which means "if the URL contains 'Donation2' then show nothing, if the URL contains 'Cal2' then show nothing, otherwise show the 'side_reg' sidebar.

    Check out the S Tag reference for a good guide to conditionals.

    http://community.customer.convio.com/servlet/JiveServlet/previewBody/2102-102-16-4271/stags_12_03_09.pdf

    BPM

  • Brian Mucha:

    You could simply build two different wrappers, of course.

    Or you could build your sidebar as a reusuable page.

    Then in your Wrapper you can do something like...

    ] :: Donation2 :: ] :: ] ]]

    ...which simply means "if the URL contains 'Donation2' then show the 'side_don' sidebar, otherwise show the 'side_reg' sidebar.

    OR something more complex like...

    ] :: Donation2 :: ] :: ] :: Cal2 :: ] :: ] ]]]]

    ...which means "if the URL contains 'Donation2' then show the 'side_don' sidebar, if the URL contains 'Cal2' then show the 'side_cal' sidebar, otherwise show the 'side_reg' sidebar.

    (Is the unique URL component in Calendars 'Cal2'? I can't recall, but you get the idea.)

    Or...

    ] :: Donation2 :: :: ] :: Cal2 :: :: ] ]]]]

    ...which means "if the URL contains 'Donation2' then show nothing, if the URL contains 'Cal2' then show nothing, otherwise show the 'side_reg' sidebar.

    Check out the S Tag reference for a good guide to conditionals.

    http://community.customer.convio.com/servlet/JiveServlet/previewBody/2102-102-16-4271/stags_12_03_09.pdf

    BPM

    You could simply build two different wrappers, of course. -- Yeah, was thinking this might be best option, but still curious of how to do the conditionals.

    Check out the S Tag reference for a good guide to conditionals. -- Just looked through it. But, like I mentioned, haven't really gotten too much into thise stuff.

    Thanks! Your reply was very helpful.

  • jdp :

    You could simply build two different wrappers, of course. -- Yeah, was thinking this might be best option, but still curious of how to do the conditionals.

    Check out the S Tag reference for a good guide to conditionals. -- Just looked through it. But, like I mentioned, haven't really gotten too much into thise stuff.

    Thanks! Your reply was very helpful.

    Our site uses conditionals in the wrapper to display a different image on the masthead depending on which section the page is in.

    To do this I just added a section prefix to each page name, so that "oh_do_pagename" pages shows the 'Our Heroes - Donors' header, while "wg_ig_pagename" pages shows the 'Ways to Give - Individual Gifts' image.

    Once you get used to them, the conditionals are not that daunting - and you can do some neat stuff.

    I also use them to bold the current page name in the sidebar navigator. Our sidebar navigator is a single reusuable page, its not in the content itself so it doesn't know which page is current. So I just use that same S tag and a conditional to change the class of the href if it is the current page. Like so...

    <p class="NavLink"><a ]::smileysurprised:h_pf_grace::class="Selected"::]] href="PageServer?pagename=oh_pf_grace">Grace</a></p>

    <p class="NavLink"><a ]::smileysurprised:h_pf_josiah::class="Selected"::]] href="PageServer?pagename=oh_pf_josiah">Josiah</a></p>

    Regards, BPM

Categories