I am just wondering a simple way of not printing part of the design on certain customisations.
At the moment I am using a show_if design area and just choosing in the customisation to not print it. That works fine. Except now I actually need to use a show_if area and it seems to stuff up if there is other design areas in the show_if area.
Any ideas how to achieve what I am after?
[quote]I am just wondering a simple way of not printing part of the design on certain customisations.
At the moment I am using a show_if design area and just choosing in the customisation to not print it. That works fine. Except now I actually need to use a show_if area and it seems to stuff up if there is other design areas in the show_if area.
Any ideas how to achieve what I am after?[/quote]
Do you mean not displaying chunks of the design?
We do this a lot by creating a customisation and attaching a stylesheet to the customisation using display: none for the various elements that we don't want to show.
[quote]Do you mean not displaying chunks of the design?
We do this a lot by creating a customisation and attaching a stylesheet to the customisation using display: none for the various elements that we don't want to show.[/quote]
yeah I agree, we use customisations and css to manage what should/should not display…seems to work well for us…
I'm not very happy about using css to hide content that should not be on the page. This has undesirable effects on accessability and page file size. I'm currently looking into developing a new design area but the documentation is pretty poor. In the mean time I have resorted to dirty hacks such as including my content in an asset_linage content block and setting print=no for customisations that I don't want it displayed in.
Have you tried declaring your MySource_Area elsewhere in the parse file, setting it to not print with the print="no" attribute and then printing it in the desired place with a MySource_Print declaration?
[codebox]<MySource_AREA id_name="any_mysource_area" design_area="nest_content" print="no"/>
<MySource_AREA id_name="logged_in" design_area="show_if" print="no">
<MySource_SET name="condition" value="logged_in" />
<MySource_THEN>
<MySource_PRINT id_name="any_mysource_area" />
</MySource_THEN>
</MySource_AREA>[/codebox]
You can't declare a MySource_AREA inside a MySource_AREA (the only exception being menus and sub menus) you can however do the above.
Make sense?
[quote]Have you tried declaring your MySource_Area elsewhere in the parse file, setting it to not print with the print="no" attribute and then printing it in the desired place with a MySource_Print declaration?
[codebox]<MySource_AREA id_name="any_mysource_area" design_area="nest_content" print="no"/>
<MySource_AREA id_name="logged_in" design_area="show_if" print="no">
<MySource_SET name="condition" value="logged_in" />
<MySource_THEN>
<MySource_PRINT id_name="any_mysource_area" />
</MySource_THEN>
</MySource_AREA>[/codebox]
You can't declare a MySource_AREA inside a MySource_AREA (the only exception being menus and sub menus) you can however do the above.
Make sense?[/quote]
I think you have missed the point. We want the area to display to everyone, logged in or not. Except where a customisation chooses to hide it. your suggestion would work if the we could have a condition that always return true.
In the customisation for each design area is the ability to show the area or not (see james' nest content example). To hide simply customise the nest content design area through the admin interface and set print to no. You can set that per customisation.