Developer forum

Forum » Development » Code First Item Type Link property

Code First Item Type Link property

Tom Kamphuis
Reply

Hi Guys,

Is there a way to tell the Link editor to only give the UI option for choosing a page instead of the other DW link types? Our current code is as follows:

[Group(StringConstants.ItemTypeConstants.StandardFields)]
[Name("Producten van derden locatie")]
[Link]
public string ThirdPartyProductsFolder { getset; }

I get three options to choose from but I only want to show one. Anybody any idea?

Cheers,
Tom


Replies

 
Vladimir
Reply
This post has been marked as an answer

Hi Tom, 

Add this featureto next 8.6.1 hotfix, so you will able to write:

        [Name("Producten van derden locatie")]

        [Link(EnablePageSelection = true, EnableFileSelection = true)]

  public string ThirdPartyProductsFolder { get; set; }

Best regards,

Vladimir

Votes for this answer: 1
 
Tom Kamphuis
Reply

Thanks Vladimir, I'll check it out!

 

You must be logged in to post in the forum