Copied to clipboard

Flag this post as spam?

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


  • Jon 47 posts 290 karma points
    Jul 19, 2016 @ 09:11
    Jon
    0

    footerText from root node (NEWBIE)

    Hi :-)

    I've got a footerText in my frontpage-doctype that I want to be shown in my master-template(all pages of current language).

    I've found the root ... I think:

    var root = CurrentPage.AncestorOrSelf(1); 
    

    But how do I get the content of footerText? Something like:

    @root.footerText
    

    THX

  • Dennis Adolfi 1082 posts 6446 karma points MVP 5x c-trib
    Jul 19, 2016 @ 10:00
    Dennis Adolfi
    101

    Hi Jon.

    You can do @CurrentPage.Site().footerText in your master template.

  • Jon 47 posts 290 karma points
    Jul 19, 2016 @ 10:12
    Jon
    1

    Brilliant! Nice and simple!

    THX / Takker :-)

  • Dennis Adolfi 1082 posts 6446 karma points MVP 5x c-trib
    Jul 19, 2016 @ 13:21
    Dennis Adolfi
    0

    Awesome! Thank you Jon. Glad i could help! :)

    Best of luck to you with the rest of your Umbraco site!

    Have a great day! Take care!

Please Sign in or register to post replies

Write your reply to:

Draft