Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

Add Custom Property



I want to add Custom property called "CssClass" in LinkItemCollection propery. How can i do that? Can anyone please suggest me clean way to achieve this ?



Dec 05, 2017 12:30

What are you trying to do?

Modifying the existing LinkItemCollection property is pretty hard so that should be your last option. There are probably easier ways to do it that is good enough. 

If you want to use that CSS class for the whole list of links then the easiest way is to create a new string property on the same page type. If you then create a new display template for the link item collection you can use that other property to set the CSS class of the list. If you need the same on multiple pages it makes sense to combine the two properties into a local block so it's easier to reuse.

Makes sense? 

Dec 05, 2017 12:54

No, I need to add different class for each link. Is that possible ?

Dec 05, 2017 13:01

Maybe use rich text editor instead? It should be rare that editors need to set CSS classes manually on anything 

Dec 05, 2017 14:55
This thread is locked and should be used for reference only.
* 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.