Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Template Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Read $Title Field from RedirectPage


Go to End
Reply


2 Posts   1209 Views

Avatar
Andre

Community Member, 140 Posts

15 April 2009 at 9:22pm

Hi there, I'm trying to read the "Page Name" ($Title, $MetaTitle) from a RedirectPage inside a Navigation, but I always get the result of Navigation label ($MenuTitle). What am I doing wrong, how can I fix it?

for Example:
Page Name = thispage
Navigation Label = blablabla

            <% control Menu(1) %>
                  <li id="$Title" class="$LinkingMode"><a href="$Link" id="link-$MetaTitle"><div style="display: none;">$MenuTitle</div></a></li>
            <% end_control %>

will result to

                  <li id="blablabla" class="link"><a href="/target/" id="link-blablabla"><div style="display: none;">blablabla</div></a></li>

instead of, what I expected

                  <li id="thispage" class="link"><a href="/target/" id="link-thispage"><div style="display: none;">blablabla</div></a></li>

Avatar
Andre

Community Member, 140 Posts

15 April 2009 at 10:29pm

I did the following and now its working

<li id="{$Title.XML}" class="$LinkingMode"><a href="$Link" id="{$Title.XML}-link"><div style="display: none;">$MenuTitle</div></a></li>