Thanks, finally i suceeded in rendering the image. But the issue is
now the value of the selctionlist is displayed on the template. How to
hide the value?.

On Oct 8, 4:02 pm, psreddy <[email protected]> wrote:
> HI Jian,
>
> Thanks for your response. I tried with code that you provided and also
> using
> <img src="<%!!Context:CurrentPage.Elements.GetElement(<%Statement_img
> %>).GetHtml()!!%>"
>     alt="Statement ">  in both the ways image is not getting
> rendered.  I have given a source to the image place holder.
> What would be the issue?.
>
> On Oct 8, 1:45 pm, Jian Huang <[email protected]> wrote:
>
> > Hi,
>
> > 1.  move "<%Selectionlist%> (Optionlist place holder)" out of the
> > rendertag
> > 2.  spelling, Context instead of Contest
>
> > There is actually a slight more efficient way
>
> > <reddot:cms>
> >     <if>
> >     <query valuea="<%Selectionlist%>"
> > operator="==" valueb="Statement">
> >  <htmltext>
> >    <img src="<%Statement_img%>"
> >     alt="Statement ">
> > </htmltext>
> >      </query>
> >      </if>
> > </reddot:cms>
>
> > Best,
>
> > -Jian
>
> > On Oct 8, 1:05 pm, psreddy <[email protected]> wrote:
>
> > > I am trying to select an image in the header of the template based on
> > > the selected value in the optionlist. But I am unsuccessful. Please
> > > help me.
>
> > > <reddot:cms>
> > >    <%Selectionlist%> (Optionlist place holder)
> > >     <if>
> > >     <query valuea="<%!!
> > > Contest:CurrentPage.Elements.GetElement(Selectionlist)!!%>.Value"
> > > operator="==" valueb="Statement">
> > >  <htmltext>
> > >    <img src="<%!!
> > > Context:CurrentPage.Elements.GetElement(Statement_img).GetHtml()!!%>"
> > >     alt="Statement ">
>
> > > </htmltext>
> > >      </query>
> > >      </if>
> > > </reddot:cms>

-- 
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.

Reply via email to