pass node name as macro parameter Options
traditionone
Posted: Friday, August 08, 2008 9:47:13 PM
Rank: Newbie

Joined: 6/6/2008
Posts: 11
Location: NC
From a template, I need to pass the node name into a macro as a parameter. What is the syntax to do this?
Dirk
Posted: Friday, August 08, 2008 10:17:21 PM

Rank: Addict

Joined: 9/27/2007
Posts: 977
Location: Belgium
Here you go:

Code:

Parameter="[#pageName]"


For example, using Tim's star rating package

Code:
<?UMBRACO_MACRO macroAlias="xtraStarRatingBar" RatingBarUniqueId="[#pageName]" IsInline="0" IsSmall="0" ShowOnly="0" ShowText="1" Text="" ErrorText="Oops! Only one vote allowed!" ThankText="Your vote has been registered. Many thanks for your feedback!"></?UMBRACO_MACRO>


Hope that helps.

Regards,
/Dirk


level 1 certified - umbraco blog at netaddicts.be - working on an integrated forum4umbraco
traditionone
Posted: Friday, August 08, 2008 11:05:02 PM
Rank: Newbie

Joined: 6/6/2008
Posts: 11
Location: NC
Thanks. That is what I was looking for.
Arnim
Posted: Tuesday, August 19, 2008 12:06:20 AM

Rank: Devotee

Joined: 5/31/2007
Posts: 44
Location: Kirchheim Teck, Germany
@Dirk: Believe it or not - same question for me! Thanx for your straight plain answer!

Greets, Arnim.

What the heck is PHP? ;-)
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.