Try our conversational search powered by Generative AI!

PropertyLinkCollection inserting links

Vote:
 

Hi

 A client is using the PropertyLinkCollection and finds that he wants the last added item to always appear at the top. So I need to change the  way that items are added to the collection. Does anyone have any suggestions on the best way to approach this?

Many thanks

Stuart

#31250
Jul 14, 2009 14:19
Vote:
 

Hi Stuart.

You could try to use PropertyDataControlAdapters and override the rendering the of EPiServer.Web.PropertyControls.PropertyLinkCollectionControl.

Take a look at this blog post:

http://labs.episerver.com/en/Blogs/Anders-Hattestad/Dates/2009/4/Change-LinkCollection-with-PropertyDataControlAdapter/

Hope this helps!

Br, Tore

#31262
Jul 15, 2009 9:31
Vote:
 
Many thanks for pointing that out Tore
#31345
Jul 22, 2009 11:34
Vote:
 

Hi

I took the advice offered and had a look at the article by Anders. I have written a bit of code that catches and updates the link collection. When this is displayed using a call to databind the links for reordering, and deleting the items in linkscollection cause a out of bounds exception.

Has anyone had any success in updating these so they are displayed correctly.

Many thanks

 Stuart

#31383
Jul 24, 2009 19:05
* 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.