AI OnAI Off
The BackingType attribute doesn't seem to help either:
[BackingType(typeof(PropertyDocumentUrl))]
[UIHint(UIHint.Document)]
[Display(
GroupName = SystemTabNames.Content,
Order = 315)]
[CultureSpecific]
public virtual Url FileAttachment { get; set; }
The reason why i want the property type to be URL to Document is that when you render the property using EPiServer:Property tag the renderer renders a link with the filename (name of the file .pdf)- not the path to the file (/Documents/name%20of%20the%20file.pdf). I guess i could find an alternative way to do this, but this falls under the nice to have category.
Does this work the way you want: http://world.episerver.com/Modules/Forum/Pages/thread.aspx?id=63123
Nice one! That seemed to work.
My issue doesn't seem to be related to the problem stated in that thread though. The issue in that one was that the dialog that popped up was incorrect if i understood correctly.
Thanks ;)
I've been trying to create a property that links to a document programmatically in various ways:
The property type doesn't seem to be affected based on the UIHint propery I define for it. All the UIHint attributes get the property type: URL to page/externall adress when you look at them under the Admin mode. Any idea how to change this to URL to Document type?
Cheers,