Dont use <%!! !!%> within the query tag, just use it directy: <query valuea="Context:CurrentPage.Elements.GetElement > (anc_link).Value[Int:0].Elements.GetElement(sf_heading).GetHtml()" operator="==" valueb="2">
--- Julio Canadas - Senior Developer - Oshyn, Inc. - Powering Innovation 213.784.1332 | Cell +(593) 994.05208 | www.oshyn.com Oshyn's latest: http://www.lstudio.com | http://www.neamb.com Follow Oshyn on... Twitter: http://www.twitter.com/Oshyn_Inc LinkedIn: http://www.linkedin.com/companies/oshyn-inc bobbykjack wrote: > Christopher, > > I have a couple of remaining issues I hope you (or anyone else) might > be able to help with: > > 1. Specifically on conditionals, I'm having problems with the > following render tag code: > > <reddot:cms> > <htmltext> > <%!! Context:CurrentPage.Elements.GetElement(anc_link).Value[Int: > 0].Elements.GetElement(sf_heading).GetHtml() !!%> > </htmltext> > <if> > <query valuea="1" operator="==" valueb="2"> > <htmltext>yes</htmltext> > </query> > <query type="else"> > <htmltext>no</htmltext> > </query> > </if> > </reddot:cms> > > This is - evidently - a test, and I get the output I'd expect, namely: > the value of the appropriate sf_heading element, followed by "no". > However, whenever I take the next step in getting this conditional to > work: > > <reddot:cms> > <htmltext> > <%!! Context:CurrentPage.Elements.GetElement(anc_link).Value[Int: > 0].Elements.GetElement(sf_heading).GetHtml() !!%> > </htmltext> > <if> > <query valuea="<%!! Context:CurrentPage.Elements.GetElement > (anc_link).Value[Int:0].Elements.GetElement(sf_heading).GetHtml() !! > %>" operator="==" valueb="2"> > <htmltext>yes</htmltext> > </query> > <query type="else"> > <htmltext>no</htmltext> > </query> > </if> > </reddot:cms> > > everything breaks. Not only do neither "yes" nor "no" appear (implying > the entire conditional is broken in some way), but the very first bit > of output (the sf_heading) also stops appearing. > > 2. I'm doing all this without the Navigation Manager, because I have > no idea how that works, and it feels like it will take more time to > learn everything about 'Navigation Manager' than I have available. As > I understand it, render tags should work (at least some of them - > everything except for references to 'Indexes'?) without Navigation > Manager set up, but could this be a reason why the conditional isn't > working? > > Many thanks for any time you can spare, > > - Bobby > > On Jul 15, 8:52 am, reddotrich <[email protected]> wrote: >> Sids, >> >> The only one I am aware of is the Navigation Manager PDF that comes >> with the install of Red Dot. >> >> On Jul 15, 7:29 am, Sids <[email protected]> wrote: >> >>> <b>"Also, is there any kind of reference manual for Render Tags in >>> existence? "</b> >>> Any thoughts guyz?? Is der any?? > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "RedDot CMS Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/RedDot-CMS-Users?hl=en -~----------~----~----~----~------~----~------~--~---
