getting an Link from the Page id Options
thahammer
Posted: Thursday, August 28, 2008 4:57:32 PM

Rank: Aficionado

Joined: 8/28/2007
Posts: 132
Location: Bavaria
I need an Link to an Upper node (Parent node) over an Picture at least.

i tried it like this, cause if i write it direct without an Variable i always get an Error.
I see the ID of the parent Page, but the Link always shows me:

http://test1.dummy.eu/(umbraco.library:NiceUrl(@id))

Quote:

<xsl:variable name="myID" select="$currentPage/parent::node/@id "/>

<a href="(umbraco.library:NiceUrl(@id))"><xsl:value-of select="$myID" /></a>


I Love umbraco
Dirk
Posted: Thursday, August 28, 2008 7:30:00 PM

Rank: Umbracoholic

Joined: 9/27/2007
Posts: 1,136
Location: Belgium
Hi,

Little mistake here:

Code:
<a href="(umbraco.library:NiceUrl(@id))">


must be replaced by

Code:
<a href="{umbraco.library:NiceUrl(@id)}">


Mind the {} instead of ()

Regards,
/Dirk


level 1 & 2 certified - umbraco MVP 2008/2009 - umbraco blog at netaddicts.be - working on an integrated forum4umbraco
thahammer
Posted: Friday, August 29, 2008 9:50:19 AM

Rank: Aficionado

Joined: 8/28/2007
Posts: 132
Location: Bavaria
Thanks, that was only One of more Errors in the Makro. I got it now! :d/

I Love umbraco
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.