I have one Generic parameter same for all the levels (say parameter name is : Content)
When ever any of childnodes dont have any value in this parameter then value present in the level 1 node should be taken.
eg: if Subnode1 dont have any value written in parameter Content then the value writte in parameter content of Node1 should be taken .....if Sub1Child1 or Sub1Child2 dont have any value written in parameter Content then the value writte in parameter Content of Node1 should be taken.
Showing parameters of parents
Hi,
I have one herirachy something like this.
Node 1
> Subnode 1
>> Sub1Child1
>> Sub1Child2
> Subnode 2
>>Sub2Child1
>>Sub2Child2
> Subnode 3
Node 2
I have one Generic parameter same for all the levels (say parameter name is : Content)
When ever any of childnodes dont have any value in this parameter then value present in the level 1 node should be taken.
eg: if Subnode1 dont have any value written in parameter Content then the value writte in parameter content of Node1 should be taken .....if Sub1Child1 or Sub1Child2 dont have any value written in parameter Content then the value writte in parameter Content of Node1 should be taken.
here Node 1 is always level 1 parameter ....
Please help me,
Hi,
To insert in your template you can just use this code (note the recursive parameter)
<umbraco:Item field="Content" recursive="true" runat="server"/>
Rich
hi Rich,
I am doing this using xslt so this wont work for me ....Here is my xslt code
Here....first i check that rightupperSpot has any value or not ...if not then it should get the value of 1st level node only.....
This code works good for 2nd level node ...but not for 3rd level node .....
Hi vaibhav,
To always grab the Content value from the level 1 node, just do this:
/Chriztian
Hi Chriztian,
It is not showing anything when i u like u said.... any other way to do it ?
is working on a reply...