Great, all of this helped and I've got something working now. I just
have a new issue ;)
Take a look at this:
<ul class="current">
<li><a href="<%!!
Context:CurrentPage.Elements.GetElement(stf_ShortName).GetHtml() !!
%>"><span>LINK NAME HERE</span></a></li>
</ul>
I really would like to grab in the information in an anchor instead of
a standard field, but that hasn't worked out. The content for most of
the tabs that will be controlled by the navigation manager will be
anchors like "#about" The exception to that is the site's home tab.
For this, I need to put in a real URL. The code works fine if I hard
code a URL like "http://www.gsu.edu/" but when I click on this inside
of RedDot, I'll grab a page outside of CMS which isn't going to work
for editing. The question is, how do I fix this problem? If I go the
anchor route, it seems to strip the # out of the URL I enter.
Dave
On Jun 1, 8:07 pm, sb <[email protected]> wrote:
> Try removing the "<%!! !!%>" delimiters from the query and just use
> the string : <query valuea="Context:CurrentPage.Elements.GetElement
> ( stf_ShowImage).GetHtml()" ... etc
>
> On Jun 1, 2:38 pm, Dave R <[email protected]> wrote:
>
> > Hey,
> > I've got an odd situation here. I need to pull some standard fields in
> > from a linked page via the navigation manager. These fields are going
> > to contain "hooks" for some specific JavaScript functionality. Here's
> > what I have so far:
>
> > Special Fields
> > ------------------------------------------------------------------------
> > stf_ShowImage = Used to determine if the img_TabImageOff and
> > img_TabImageOn imags are present.
> > stf_ShortName = A shortened name that will be used as an anchor
> > img_TabImageOff = An optional image that may or may not be present
>
> > Current Code:
> > ------------------------------------------------------------------------
> > <reddot:cms>
> > <if>
> > <query valuea="<%!! Context:CurrentPage.Elements.GetElement
> > ( stf_ShowImage).GetHtml() !!%>" operator="==" valueb="1">
> > <htmltext>
> > </ul>
> > <ul class="current">
> > <li><a href="#<%!!
> > Context:CurrentPage.Elements.GetElement(stf_ShortName).GetHtml() !!
> > %>"><span><!IoRangeConditional><img src="<%!!
> > Context:CurrentPage.Elements.GetElement( img_TabImageOff).GetHtml() !!
> > %>" alt="Ga State Home" width="16" height="17" border="0"
> > class="flamebar" /> <!/IoRangeConditional><%!!
> > Context:CurrentIndex.Headline !!%></span></a></li>
> > </ul>
> > <ul>
> > </htmltext>
> > </query>
> > <query type="else">
> > <htmltext>
> > </ul>
> > <ul class="current">
> > <li><a href="#<%!!
> > Context:CurrentPage.Elements.GetElement(stf_ShortName).GetHtml() !!
> > %>"><span><%!! Context:CurrentIndex.Headline !!%></span></a></li>
> > </ul>
> > <ul>
> > </htmltext>
> > </query>
> > </if>
> > </reddot:cms>
>
> > Right now, it's not displaying. I had it displaying almost what I
> > wanted without the if/else statement. So, what do I have wrong here?
> > I suspect that it has to do with this line:
>
> > <query valuea="<%!! Context:CurrentPage.Elements.GetElement
> > ( stf_ShowImage).GetHtml() !!%>" operator="==" valueb="1">
>
> > Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---