Copied to clipboard

Flag this post as spam?

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


  • Hywel Bromby 33 posts 63 karma points
    Aug 24, 2009 @ 16:11
    Hywel Bromby
    0

    Master Page Defaults

    Hi not sure if this is possible, but:

    Is it possible to have 1 master page for the site with values that can be changed in the content section? and that are displayed on ALL pages onthe site (that have the master page template as their master page)

    eg

    my masterpage displays a log that is to be displayed throughout

  • Chris Koiak 700 posts 2626 karma points
    Aug 24, 2009 @ 16:59
    Chris Koiak
    0

    Hi Hywel,

    Yes this is possible. I'm not sure I've understood you correctly, but either

    1) The current page properties can be accessed by any template/master page being used. You should be able to create an xslt that reads a property from the current page and uses that to perform any output logic.

    2) You can create content at a top level of your site (homepage or website root node) that can be accessed via xslt

    <xsl:variable name="logValue" select="$currentPage/ancestor-or-self::node[@level=1]/data[alias='logValue']"

     

    Cheers,

    Chris

  • Hywel Bromby 33 posts 63 karma points
    Aug 24, 2009 @ 18:19
    Hywel Bromby
    0

    Thanks for the info, but it was answered in another topic apparently all i needed to do was add recursive="true" into the item in the template. Worked as intended. thanks anyways

Please Sign in or register to post replies

Write your reply to:

Draft