Try our conversational search powered by Generative AI!

How can a set default value on Link collection property?


In admin mode I try to set a default value on a link collection property with no success:

"Object reference not set to an instance of an object".

I have tried with different strings like <links>.... <ul>... etc.

Any ideas?



Sep 02, 2009 10:34

Hi Örjan!

 I have investigated this and come to the conclusion that this is a bug in the implementation of PropertyLinkCollection and I have filed a bug report for this. You should be able to add default links in the form "<links><a href="a">a</a></links>". A possible work around that seems to work is to go to admin -> "Edit Custom Property Types" and change the base type for "Link collection" from "Link collection" to "Long string".

Linus Ekström
EPiServer Development Team

Sep 21, 2009 15:06
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.