<reddot:cms>
    <if>
        <query valuea="Escape:HtmlEncode(String:<%stf_title%>).Length"
operator="&gt;" valueb="Int:0">
            <htmltext>
            <%stf_title%>
            </htmltext>
        </query>
        <query type="else">
            <htmltext>
            <%hdl_title%>
            </htmltext>
        </query>
    </if>
</reddot:cms>


On 10 May 2014 00:48, Nathan Daugherty <ndaughe...@profitstars.com> wrote:

> I want to set up a title tag to be either one placeholder or another,
> based on whether the first has any content. This is what I've tried...
>
> <reddot:cms>
> <if>
> <query valuea="Context:CurrentPage.Elements.GetElement(stf_title).Value"
> operator="!=" valueb="">
> <htmltext>
> <title><%stf_title%></title>
> </htmltext>
> </query>
> <query type="else">
> <htmltext>
> <title><%hdl_title%></title>
> </htmltext>
> </query>
> </if>
> </reddot:cms>
>
> On line 2, I've also tried valueb="String:"
>
> I want it to have the stf_title if that element has any content,
> otherwise, output the other.
>
> What am I missing?
>
> Thanks!
>
> --
> 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 reddot-cms-users+unsubscr...@googlegroups.com.
> To post to this group, send email to reddot-cms-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/reddot-cms-users.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 reddot-cms-users+unsubscr...@googlegroups.com.
To post to this group, send email to reddot-cms-users@googlegroups.com.
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