Copied to clipboard

Flag this post as spam?

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


  • deepika 4 posts 24 karma points
    Aug 14, 2014 @ 08:55
    deepika
    0

    Change Content Dynamically in inside child page content

    i Create on property in MasterPage

    like SpecialName

    in Index Page Content i use This Property like 

    for example 

    my Special Name is {SpecialName}

    if i set specialname is "Mr. X".

    so its display in browser 

    my Special Name is Mr. X

     i write content in child page like "my Special Name is {SpecialName}  "

    when i access page in browser replace {specialname} in i use in master page property "specialname" content

    Thank you

     

     

  • John C Scott 473 posts 1183 karma points
    Aug 14, 2014 @ 12:43
    John C Scott
    0

    If you click this file in the browser based editor it will add the field for you 

    So in XSLT you will get something like:

    <p>my Special Name is <xsl:value-of select="$currentPage/SpecialName"/></p>

    It would probably be simpler to do this though directly into the template, in the latest MVC version you will get something like

    <p>my Special Name is @Umbraco.Field("SpecialName") </p>

    and in the older web forms you'll get

    <p>my Special Name is <umbraco:Item field="formLayoutFooter" runat="server" /> </p>

    So it will get it right for you depending on the context of where you click the Insert button

    Also there are some great introductions to all this on Umbraco.TV

    hope that helps :)

     

     

     

Please Sign in or register to post replies

Write your reply to:

Draft