Copied to clipboard

Flag this post as spam?

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


  • wolulcmit 357 posts 693 karma points
    Mar 22, 2011 @ 12:10
    wolulcmit
    0

    bug or feature?

    I've noticed that it only works if the page you're on actually has that field... so it doen't work recursively
    ie if I put in my master template [#siteName] it only gets rendered if I'm at the root node, as the other textPages don't have a field called siteName

    I guess my question is are you going to add the posibility of the shortcode looking for the property recursively up the tree?

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Mar 22, 2011 @ 12:15
    Lee Kelleher
    1

    Hi Tim,

    The same syntax as macro parameters is used. So for recursive fields, use "$" instead of "#".

    [$siteName]

    Cheers, Lee.

  • wolulcmit 357 posts 693 karma points
    Mar 22, 2011 @ 12:18
    wolulcmit
    0

    ahh ok, fantastic... thanks!

  • Psib3r 70 posts 119 karma points
    Nov 09, 2011 @ 12:14
    Psib3r
    0

    Does this work on properties I create myself?  For instance I want a value in a property that I created on the master page to be used in the pages underneath it, I posed a similar question about Global terms, I can see shortcodes being a way round it, if it works, which it doesn't seem to be.

    On my master page I created a Generic property called Branches, which I set as a textstring and set to a default value of the number of branches for a company.  In the home page which uses that template I want to use [#Branches], but it does not work, I just litteraly get [#Branches], am I missing something obvious here?

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Nov 09, 2011 @ 12:53
    Lee Kelleher
    0

    Hi Psib3r,

    Can you confirm that the property alias is "Branches" (with a capital "B")?  My guess is that it's a lowercase "b".

    Try...

    [#branches]

    ... or to make it recursive across all pages, use the dollar symbol ...

    [$branches]

    Cheers, Lee.

  • Psib3r 70 posts 119 karma points
    Nov 09, 2011 @ 16:24
    Psib3r
    0

    Sorry that was just an example, ok I seem to have it working, although I had set the value in my master page I still needed to set it in the actual page to get it to work. Is there any way of getting it to work by having the value set in my master page and it feeding down to the page?

     

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Nov 09, 2011 @ 16:30
    Lee Kelleher
    0

    Did you try...

    [$branches]

    ?  Key part being the $ dollar prefix.

  • Psib3r 70 posts 119 karma points
    Nov 09, 2011 @ 16:47
    Psib3r
    0

    yes, I think it's all down to propergation, id I use the dollar all I get is [$branches] appearing in the page, when I look at the page properties I believe it's because this value is null.  And it's null because I created the pages before I added the properties, so they never propogated tha value down through the pages.  If I change the original property to a textstring, and add the value throughout the tree, then change it back to a label so it can't be editited, using the [#branches] works.

    It's kind of annoying as all I want is a global value to be able to insert into a page where ever I want it, and Macro's are useless because of the div issue.  Anyway thank you for your help, I will just have to use it like this until someone or myself comes up with some sort of global inline insert type thing :)

Please Sign in or register to post replies

Write your reply to:

Draft