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?
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?
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?
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 :)
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?
Hi Tim,
The same syntax as macro parameters is used. So for recursive fields, use "$" instead of "#".
Cheers, Lee.
ahh ok, fantastic... thanks!
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?
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...
... or to make it recursive across all pages, use the dollar symbol ...
Cheers, Lee.
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?
Did you try...
? Key part being the $ dollar prefix.
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 :)
is working on a reply...