Hi,
I am using episerver cms 6 R2 edition. I'm looking for a property to hold internal (links to pages in CMS) and external url (external websites...).
I tried "propertyUrl" like the following.
[PageTypeProperty(Type = typeof(PropertyUrl), EditCaption = "Länk för höger topp bild", SortOrder = 325, Required = false)] public virtual string PuffRightTopLink { get; set; }
When I'm access the property like this, getting error - Unable to cast object of type 'EPiServer.Core.PageReference' to type 'System.String'.
<a href="<%= CurrentPage.PuffRightTopLink %>" > </a>Any help is appreciated. thanks.
If you look at the the property in admin mode, is it set to a property url? Looks like it is set to a PageReference.
PageTypeBuilder will not update the type of a property if you change it in code, that has to be done in the admin area.
Hi,
I am using episerver cms 6 R2 edition. I'm looking for a property to hold internal (links to pages in CMS) and external url (external websites...).
I tried "propertyUrl" like the following.
When I'm access the property like this, getting error - Unable to cast object of type 'EPiServer.Core.PageReference' to type 'System.String'.