Pararameters to Usercontrol Options
manuraidu
Posted: Thursday, September 25, 2008 7:35:55 AM
Rank: Newbie

Joined: 9/9/2008
Posts: 18
Location: India
Hai,

I know how to pass parameters to usercontrol.

But my need is i want to pass the current page as parameter to the usercontrol

I did Like this.
<?UMBRACO_MACRO macroAlias="TestOmmsotvMail" curPage="<?UMBRACO_GETITEM field="pageName"/>"></?UMBRACO_MACRO>

But its not working. Is there any other way to dothis one.


Please send me the reply as soon as possible
Dirk
Posted: Thursday, September 25, 2008 8:09:37 AM

Rank: Umbracoholic

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

Replace
Code:
<?UMBRACO_MACRO macroAlias="TestOmmsotvMail" curPage="<?UMBRACO_GETITEM field="pageName"/>"></?UMBRACO_MACRO>

with
Code:
<?UMBRACO_MACRO macroAlias="TestOmmsotvMail" curPage="[#pageName]"></?UMBRACO_MACRO>

if you need to pass the current page's name or
Code:
<?UMBRACO_MACRO macroAlias="TestOmmsotvMail" curPage="[#pageID]"></?UMBRACO_MACRO>

if you just wish to pass its id.

Regards,
/Dirk


level 1 & 2 certified - umbraco MVP 2008/2009 - umbraco blog at netaddicts.be - working on an integrated forum4umbraco
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.