Marco Properties Not Working Options
andydaniels
Posted: Tuesday, February 06, 2007 11:47:49 AM
Rank: Enthusiast

Joined: 2/6/2007
Posts: 10
I have just started to evaluate Umbraco to see if its suitable for use on my site and I'm having a problem which seems pretty straight forward so it might just be me being a div.

On my site at the minute I have a .Net User Control which I've added to Umbraco as a Macro. The control has a property which is 'AccountId' which is a string, but the value needs to be able to convert to a Guid. I will need users of umbraco to be able to enter the 'AccountId' on the contents page. So I have set up the macro parameter to be a property with the following details:

Alias = AccountId
Name = AccountId
Type = propertyTypePicker

I have tried various different names, alias and type to no avail.

I've then set up a template containing the macro.

<?UMBRACO_MACRO macroAlias="SimpleBidForm" AccountId="Account"></?UMBRACO_MACRO>

I've then set up a Document Type with the property with the following details (again I have tried naming the property various different names to no avail):

Name = Account Identity
Alias = Account
Type = Textstring
Mandatory = True

If I create a page and enter the value in property it doesn't pick it up and the value of the property in my control is null.

Come on guys what have I missed? Many thanks

Andrew
andydaniels
Posted: Tuesday, February 06, 2007 11:49:29 AM
Rank: Enthusiast

Joined: 2/6/2007
Posts: 10
Also if use [@AccountId] as the macro value in the template and pass in an AccountId in the QueryString to the page it works fine.
andydaniels
Posted: Tuesday, February 06, 2007 12:32:26 PM
Rank: Enthusiast

Joined: 2/6/2007
Posts: 10
d'oh should have tried using the #

Thanks anyway
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.