Feeding a GetItem Value into a Macro Custom Control Paramater Options
BenHill
Posted: Monday, April 30, 2007 10:41:12 PM
Rank: Newbie

Joined: 4/30/2007
Posts: 2
Greetings!

Say, this may not be possible, but I was wondering:

I have a custom control that takes a string parameter. I have built a macro to encapsulate it.

Is there a way to configure a template such that a GetItem value (specified by the user on the node's general properties) can be fed into the parameter of the custom control's macro?

I tried this embedded ugliness on the template in question:

<?UMBRACO_MACRO macroAlias="LorienCall" Text=<?UMBRACO_GETITEM field="LorienText"/> />

...but for probably very good reasons it did not work.

Thanks for making such a great CMS!!

Ben
neehouse
Posted: Tuesday, May 01, 2007 3:06:23 AM

Rank: Umbracoholic

Joined: 7/20/2006
Posts: 1,076
Location: Charleston, West Virginia, United States
What you want to do is use text="[#propertyName]".

Also, [@param] gets querystring parameters, and [%param] gets session params.

In version 3 (and possibly 2.1.7), [$param] gets a recursive property.


• 2007/2008 MVP • 2008/2009 MVP • Certified • Licensing • Support • Development • Hosting •
BenHill
Posted: Tuesday, May 01, 2007 3:21:02 AM
Rank: Newbie

Joined: 4/30/2007
Posts: 2
Thanks, Casey!
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.