render tag if/else and redDots

396 views
Skip to first unread message

tportman

unread,
Sep 28, 2011, 4:33:23 PM9/28/11
to RedDot CMS Users
I've got a good ole if/else render tag setup that is SUPPOSED to show
a block of "reddots" if opt_display is "yes". But I can't get any
reddots to show at all..help!


<reddot:cms>
<if>
<query valuea="<%opt_display%>" operator="=="
valueb="String:yes">
( ( also tried: <query
valuea="Context:CurrentPage.Elements.GetElement(opt_display).Value"
operator="==" valueb="String:yes"> ))
<htmltext>
whole bunch of reddots live here
</htmltext>
</query>
<query type="else">
<htmltext>
no reddots live here
</htmltext>
</query>
</if>
</reddot:cms>

Jian Huang

unread,
Sep 28, 2011, 5:34:37 PM9/28/11
to RedDot CMS Users
Hello,

Two things wrong with the rendertag.

1. Elements.GetElement is resource intensive, please use the
placeholder directly within rendertag instead.

2. red dots inside rendertag cause it to crash the entire block.

Search this forum or recent reddot cms blog for solution.

Highly recommend against changing main.config.

Best,

-Jian

tiffany portman

unread,
Sep 28, 2011, 5:45:30 PM9/28/11
to reddot-c...@googlegroups.com
Thanks Jian, if you have a better solution or an idea that you think might work and would share I would be very grateful
 

 
--
You received this message because you are subscribed to the Google Groups "RedDot CMS Users" group.
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.




--
312-515-0480
www.tiffanyportman.com
TheTiffa...@gmail.com

Jian Huang

unread,
Sep 28, 2011, 6:34:29 PM9/28/11
to RedDot CMS Users
General idea is to move red dots outside and use if conditional to
product javascript that show/hide red dot.

<div id="<%inf_page_id%>">
red dots in here
</div>
<reddot:cms>
<if>
<query valuea="<%opt_display%>" operator="!=" valueb="String:yes">
<htmltext>
<script type="text/javascript">
// NOTE you need JQuery to do this
$("#<%inf_page_id%>").hide();
</script>
</htmltext>
</query>
</if>
</reddot:cms>

On Sep 28, 5:45 pm, tiffany portman <thetiffanyport...@gmail.com>
wrote:
> Thanks Jian, if you have a better solution or an idea that you think might
> work and would share I would be very grateful
>
> TheTiffanyPort...@gmail.com

thetiffa...@gmail.com

unread,
Sep 28, 2011, 6:40:20 PM9/28/11
to reddot-c...@googlegroups.com
Dude...so simple yet so powerful, thank you thank you!!!
Sent from my Verizon Wireless BlackBerry

Markus Giesen

unread,
Sep 29, 2011, 12:15:56 AM9/29/11
to RedDot CMS Users
Otherwise, see if you can implement this workaround/hotfix:
http://www.reddotcmsblog.com/workaround-placing-red-dots-inside-of-opentext-cms-render-tags

Cheers,
Markus

tiffany portman

unread,
Sep 29, 2011, 8:22:45 AM9/29/11
to reddot-c...@googlegroups.com
thanks Markus I was curious why render tags/RedDot wouldn't play well together. What I didn't get is if I use a container with RedDots no prob but throw just the RedDots in without the container and see nothing.
 
so now I hunt for JQuery...or just use a container w/transfer elements.
TheTiffa...@gmail.com
Reply all
Reply to author
Forward
0 new messages