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
|
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.
|
Rank: Enthusiast
Joined: 2/6/2007 Posts: 10
|
d'oh should have tried using the #
Thanks anyway
|