Member parameters in User Control Options
adricuadros
Posted: Wednesday, October 01, 2008 4:57:37 PM
Rank: Newbie

Joined: 10/1/2008
Posts: 2
Location: Mexico
Hi,

I'm new to Umbraco and have a very similar question to manuraidu. I need to pass the member email to the user control for a very important process in my app. I know that in the macro i can use something like this

<xsl:value-of select="umbraco.library:GetCurrentMember()/@email"/>

But I need to pass this parameter from the template. I really have no idea how to do this, will someone please help me?
Dirk
Posted: Wednesday, October 01, 2008 5:16:10 PM

Rank: Umbracoholic

Joined: 9/27/2007
Posts: 1,123
Location: Belgium
Hi adricuadros (Phew, took some spelling mistakes to get that right),

Don't see why you'd want to pass the current member's email as a parameter to the user control from the template. As the user control will be running in the context of umbraco, you're free to use the exact same syntax in the user control. After all, the umbraco.library:* are all static functions publicly available.

Hope that helps.

Regards,
/Dirk


level 1 & 2 certified - umbraco MVP 2008/2009 - umbraco blog at netaddicts.be - working on an integrated forum4umbraco
adricuadros
Posted: Wednesday, October 01, 2008 6:30:37 PM
Rank: Newbie

Joined: 10/1/2008
Posts: 2
Location: Mexico
Thanks,

I can see now how wrong I was. haha.

It worked like you said.
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.