Check out http://www.reddotcmsblog.com for more info.
On Jun 27, 6:04 pm, Walter Willis <[email protected]> wrote: > Thanks so much Jeff. That's exactly what I was looking for! I'll test it > to see how it works. How does one find these "undocumented" render tags? > Are they just tricks of the trade, discovered by trial and error? > > Walter > > > > On Mon, Jun 27, 2011 at 1:46 PM, Jeff Stine <[email protected]> wrote: > > Well, there is an undocumented function in render tags where you can > > set the value of a Store item using an output tag. It is rather messy, > > but your code would be something like: > > > <reddot:cms> > > <output type="object" object="Store:Set(strShowLang,< > > %opt_show_variant_enu%>)" /> > > <if> > > <query valuea="<%info_language%>" operator="==" valueb="DEU"> > > <output type="object" object="Store:Set(strShowLang,< > > %opt_show_variant_deu%>)" /> > > </query> > > <query type="else"> > > <if> > > <query valuea="<%info_language%>" operator="==" > > valueb="CHS"> > > <output type="object" object="Store:Set(strShowLang,< > > %opt_show_variant_chs%>)" /> > > </query> > > <query type="else"> > > <if> > > <!-- ...repeat for each language --> > > </if> > > </query> > > </if> > > </query> > > </if> > > <if> > > <query valuea="Store:strShowLang" operator="==" valueb="show"> > > <htmltext> > > <!-- Good chunk of HTML goes here ... --> > > </htmltext> > > </query> > > </if> > > </reddot:cms> > > > On Jun 23, 3:29 pm, Walter <[email protected]> wrote: > > > Hello, > > > > Is it possible to set variables using Render Tags - without PreExecute? > > I > > > have the following template code that I'd like to remove PreExecute > > script > > > from. The purpose of the code is to allow editors to quickly show/hide > > > certain page fragements on the language variants, yet still control it > > all > > > from the main language variant. I'd like to do the same thing with > > Render > > > Tags - (obviously without having duplicate the HTML content 11 times > > within > > > the template). > > > > Thanks. This is my first post, but I've stalked this group for a year > > now. > > > :) > > > Walter > > > > ------------------------------- > > > > <!IoRangePreExecute> > > > <% > > > strShowLang = "<%opt_show_variant_enu%>" > > > IF "<%info_language%>" = "DEU" THEN > > > strShowLang = "<%opt_show_variant_deu%>" > > > ELSEIF "<%info_language%>" = "CHS" THEN > > > strShowLang = "<%opt_show_variant_chs%>" > > > ELSEIF "<%info_language%>" = "ESM" THEN > > > strShowLang = "<%opt_show_variant_esm%>" > > > ELSEIF "<%info_language%>" = "ITA" THEN > > > strShowLang = "<%opt_show_variant_ita%>" > > > ELSEIF "<%info_language%>" = "KOR" THEN > > > strShowLang = "<%opt_show_variant_kor%>" > > > ELSEIF "<%info_language%>" = "PLK" THEN > > > strShowLang = "<%opt_show_variant_plk%>" > > > ELSEIF "<%info_language%>" = "PTG" THEN > > > strShowLang = "<%opt_show_variant_ptg%>" > > > ELSEIF "<%info_language%>" = "SVE" THEN > > > strShowLang = "<%opt_show_variant_sve%>" > > > ELSEIF "<%info_language%>" = "TRK" THEN > > > strShowLang = "<%opt_show_variant_trk%>" > > > ELSEIF "<%info_language%>" = "FRA" THEN > > > strShowLang = "<%opt_show_variant_fra%>" > > > END IF > > > %> > > > > <% IF strShowLang = "show" THEN %> > > > > <!-- Good chunk of HTML code goes here.... --> > > > > <% END IF %> > > > <!/IoRangePreExecute> > > > > ------------------------------- > > > -- > > 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. > > -- > Walter 8-) > I will boast in the Lord my God! -- 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.
