Imagine being paid to improve your favorite CMS!

It could be you! Umbraco HQ are hiring and are looking for both talents and senior developers. Wonderful workplace, friendly colleagues and competitive salary.

Copied to clipboard

Flag this post as spam?

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


  • Elad Lachmi 112 posts 144 karma points
    Mar 10, 2011 @ 05:21
    Elad Lachmi
    0

    Master template default value inheritance

    Hi,

    I have a master template which has a footerText property.

    I wanted this property to be editable by users, but I don`t expect it to change much.

    My problem is that now in every page that uses this template, I need to set this value individualy. I was wondering if there is any way to set a default value to this field in the template level, and if I need in a certien page to change this text, I`ll set it for that page only.

    Thank you!

    -Elad

  • Jan Skovgaard 10758 posts 21132 karma points admin mvp c-trib
    Mar 10, 2011 @ 08:19
    Jan Skovgaard
    1

    Hi Elad

    How do you insert the footerText? By using umbraco:item? If so then you need to check the "recursive" property when you insert the field in the template.

    You can also edit it manually by adding recursive="true" so it ends up looking like this

    <umbraco:Item field="footerText" recursive="true" runat="server"></umbraco:Item>

    This should do the trick for you if your templates have been setup properly.

    /Jan

  • Elad Lachmi 112 posts 144 karma points
    Mar 10, 2011 @ 08:50
    Elad Lachmi
    0

    Yep. Just what I was looking for.

    Thank you!

  • Manjunatha Govindappa 18 posts 86 karma points
    Aug 11, 2017 @ 04:00
    Manjunatha Govindappa
    0

    it saved my time as well

Please Sign in or register to post replies

Write your reply to:

Draft