Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Amigo 243 posts 568 karma points
    Aug 27, 2010 @ 10:37
    Amigo
    0

    show hide content

    Hi,

    I need to create af functionality so i can show/hide content on a subpage.

    Something like create diffrent types of content on a page, but with a show/hide check box related to each content area.

    How can i do that?

  • Amigo 243 posts 568 karma points
    Aug 27, 2010 @ 10:41
    Amigo
    0

    sorry i created this one 2 times.... the delete function is not working when i try....

  • Sascha Wolter 615 posts 1101 karma points
    Aug 27, 2010 @ 13:16
    Sascha Wolter
    0

    Hi Thomas,

    create a new data type by using the Checkbox list type, give it 2 valus, one for the main site and one for the sub site. Add this to each document type where you want the users to be able to choose where it should appear. On the page template/Xslt script you then check which site you are on (if you are using the same template/script, otherwise that's redundant since you already know which site you are on) and check if the user has ticked the box for that site.

    I've implemented that e.g. for an Umbraco installation with 3 sites for a client, the news items are held outside of the 3 sites and they can tick on which site(s) they want the item to appear.

    You can obviously invert the selection (tick if you don't want it to show on a specific site) or use radio buttons instead.

    Hope that answers your question,
    Sascha

Please Sign in or register to post replies

Write your reply to:

Draft