Hi

Assuming your child page is the first child page and connected via an 
element called con_container (otherwise, change accordingly):

<query 
valuea="Context:CurrentPage.GetElementByName(con_container).Value[Int32:0].GetElementByName(opt_security).Value"
 operator="==" 
valueb="String:Private">

Barring a typo, this will check the 'opt_security' element of the first 
child page connected to the 'con_container' element, and see if equals 
'Private'.

A working example in my project is:

Context:Pages.GetPage(Guid:<%inf_GUID%>).GetElementByName(con_slider).Value[Int32:0].Headline

which gets the headline of the first page connected to con_slider (but uses 
the GUID of a page instead of CurrentPage).

Thanks

Neil

On Wednesday, 18 March 2015 02:18:03 UTC, [email protected] wrote:
>
> I'm writing a render tag and I want the value to be based on another 
> template's placeholder.
>
> In my parent (Base) template I have this
>
> <reddot:cms>
>   <if>
>     <query valuea="<%opt_security%>" operator="=" valueb="String:Private">
>       <htmltext>
>  No Security
>     </htmltext>
>     </query>
> <query type="else">  
>     <htmltext>
>  Yes Security 
>     </htmltext>
>     </query>
>   </if>
> </reddot:cms>
>
> In my child template I have a placeholder <%opt_security%> where the user 
> sets it to "Private" by selecting from the option list.  
>
> I want that "Private" setting to move up to the Base template so that the 
> <%opt_security%> gets the value from the Child template and not the Base 
> template.
>
> Is this possible?
>

-- 
You received this message because you are subscribed to the Google Groups 
"RedDot CMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/reddot-cms-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to