Multiple if/else?

114 views
Skip to first unread message

Joel Kinzel

unread,
Dec 21, 2012, 1:33:04 PM12/21/12
to reddot-c...@googlegroups.com
I seem to remember somewhere that something like this would word: 

    <!IoRangeList>
    <li>
        <reddot:cms>
            <if>
                <query valuea="Context:Pages.GetPage(<%info_pageGuid%>).Template.Name" operator="==" valueb="String:External Link">
                    <htmltext><a href="<%stf_externalUrl%>"><%stf_menuLabel%></a></htmltext>
                </query>
                <query valuea="Context:Pages.GetPage(<%info_pageGuid%>).Template.Name" operator="==" valueb="String:News Article">
                    <htmltext><a href="<%list_pages%>"><%hdl_pageHeadline%></a></htmltext>
                </query>
                <query type="else">
                    <htmltext><a href="<%list_pages%>"><%stf_menuLabel%></a></htmltext>
                </query>
            </if>
        </reddot:cms>
    </li><!/IoRangeList>

But clearly it does not. Am I imagining things (wishful thinking)? How do you handle these situations?

Tony Chung

unread,
Dec 21, 2012, 2:30:37 PM12/21/12
to reddot-c...@googlegroups.com
Which part isn't working? Does  Context:Pages.GetPage(<%info_pageGuid%>).Template.Name  return a value?

Do the first two work, but the else doesn't?

-Tony


--
You received this message because you are subscribed to the Google Groups "RedDot CMS Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/reddot-cms-users/-/6WCPHPFWd8MJ.
To post to this group, send email to reddot-c...@googlegroups.com.
To unsubscribe from this group, send email to reddot-cms-use...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/reddot-cms-users?hl=en.

Joel Kinzel

unread,
Dec 21, 2012, 2:49:48 PM12/21/12
to reddot-c...@googlegroups.com
Wow, well your question sparked something, I forgot that you have to specify that you're passing a GUID, like so: Context:Pages.GetPage(Guid:<%info_pageGuid%>).Template.Name

Seems everything is working now...thanks!
Reply all
Reply to author
Forward
0 new messages