Navigate to pages without using page name Options
azzlack
Posted: Friday, February 08, 2008 1:56:28 PM

Rank: Devotee

Joined: 8/5/2007
Posts: 94
Location: Bergen, Norway
On my page I have various links to aspx pages. Most importantly search-results.aspx, articles.aspx and email-a-friend.aspx.

However, I am trying to implement multi language sites, and I have some problems with these links, since they navigate away from the current tree and into the english language tree.

Is there a way to navigate to a page without using the page name?

For example going for the document type in the current tree?

The only workaround I can see is too replace email-a-friend with a dictionary entry.

Like this:
Code:
<a class="EmailFriend" title="<?UMBRACO_GETITEM field="#emailFriendLink"/>" href="/email-a-friend.aspx?id=<?UMBRACO_GETITEM field="pageID"/>"><?UMBRACO_GETITEM field="#emailFriendLink"/></a>


Becomes this:
Code:
<a class="EmailFriend" title="<?UMBRACO_GETITEM field="#emailFriendLink"/>" href="/<?UMBRACO_GETITEM field="#emailFriendPage"/>.aspx?id=<?UMBRACO_GETITEM field="pageID"/>"><?UMBRACO_GETITEM field="#emailFriendLink"/></a>


But then I have to edit the dictionary every time i change the page's name.

www.eyecatch.no
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.