That's totally not going to work. The rendertag is evaluated prior to publication and can'tinteract with a client session.

Regards,
Richard.

Sent from my mobile. Sorry if it's brief.

 Andry Poernomo <[email protected]> wrote: 

Hi Richard,

I'm trying to build an A-Z index page. Something like:
http://find.curtin.edu.au/indexaz/index.cfm.

The query string will be on each link from A to Z. Ie. <a
href="?index=A">A</a> <a href="?index=B">B</a> and so on. The page will then
load the following navigation

<reddot:cms>
    <if>
        <query valuea="Context:CurrentIndex.Headline.Substring(Int:0,
Int:1).ToUpper()" operator="==" valueb="QueryString("index") here">
            <htmltext>
                <li><a href="<%!! Context:CurrentIndex.GetUrl() !!%>"><%!!
Context:CurrentIndex.Headline !!%></a></li>
                <navigation:nextlevel>
            </htmltext>
        </query>
    </if>
</reddot:cms>

The <li> will then be sorted using a javascript.

Doesn't sound like a good plan, does it... Any good advice on how I should
implement this?

Andry


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Richard Hauer
Sent: Monday, 14 November 2011 7:38 PM
To: [email protected]
Subject: RE: RedDot <if> statement and querystring

You might have more luck replacing
  Response.QueryString("A")
with
  System.Web.HttpContext.Current.Request.QueryString("A")


I'm still not sure it will work because the render tags are being executed
in a Windows Service and don't have access to the HttpContext object.
Or that's my guess anyways - worth a try.

Conceptually though you're not really doing the right thing anyway - what
querystring are you trying to read? Runtime? SmartEdit? SmartTree? Preview?
PreExecute? RDExecute? They're all different.
I suspect you're trying to do something you simply can't do and you'd be
better off putting your question to the group by starting with what you're
actually trying to do.

Regards,
Richard Hauer


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Andry
Sent: Monday, 14 November 2011 10:29 PM
To: RedDot CMS Users
Subject: RedDot <if> statement and querystring

Hi guys,

Has anyone worked with a combination of reddot <if> statement and
querystring before?

I need to create an A-Z index page and page search by category.

something like...

<reddot:cms>
    <if>
        <query valuea="Context:CurrentIndex.Headline.Substring(Int:0,
Int:1).ToUpper()" operator="==" valueb="<% Response.QueryString("A") %>"
            <htmltext>
                <li><a href="<%!! Context:CurrentIndex.GetUrl() !!%>">< %!!
Context:CurrentIndex.Headline !!%></a></li>
                <navigation:nextlevel>
            </htmltext>
        </query>
    </if>
</reddot:cms>

Thanks guys... :)

Andry

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

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

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

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