Copied to clipboard

Flag this post as spam?

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


  • David Hyslop 27 posts 181 karma points
    Apr 15, 2016 @ 10:01
    David Hyslop
    1

    Hi

    I'm trying to make a meta data value inherit down my site.

    So I've got this value

    <meta name="category" content="@Umbraco.Field("ccCategory")" />
    

    We set the value on the section page and it needs to inherit down the website.

    Section page (Has Value)

         Sub Page (Inherits value)
         Sub Page (Inherits value)
    

    Does anyone know how to do this.

    Thanks

  • Dennis Adolfi 1082 posts 6446 karma points MVP 5x c-trib
    Apr 15, 2016 @ 10:51
    Dennis Adolfi
    100

    Hi David. Is this what you are looking for?

    <meta name="category" content="@Umbraco.Field("ccCategory", recursive: true)" />
    
  • David Hyslop 27 posts 181 karma points
    Apr 15, 2016 @ 11:05
    David Hyslop
    1

    So simple, works perfect Thanks Dennis

  • Dennis Adolfi 1082 posts 6446 karma points MVP 5x c-trib
    Apr 15, 2016 @ 11:11
    Dennis Adolfi
    0

    Glad i could help David. :)

    Have a great day, and good luck with the rest of your Umbraco site!

Please Sign in or register to post replies

Write your reply to:

Draft