Join us this Friday for AI in Action at the Virtual Happy Hour! This free virtual event is open to all—enroll now on Academy and don’t miss out.

 

Add custom string field to URL/LinkItemCollection property

Vote:
 

Hi,

I wanted to add a custom string property on the URL/LinkItemCollection property similar to "Remaining Url".

#300383
Apr 19, 2023 17:42
Vote:
 

See this blog post from Ynze for extending the URL editor, it's for CMS 11 but I don't see why it couldn't work for CMS 12

https://blog.ynzen.com/extending-the-hyperlink-editor-in-optimizely-11

#300423
Apr 20, 2023 6:53
Vote:
 

Thanks for the reply, Ron!.

It is working fine in CMS 12 but it adds the field as a custom link field and I want to use this custom field as a standard text field but the code group it in Links so I can either choose a link or the Custom field

#300425
Apr 20, 2023 6:59
Vote:
 

Did you add the dojo class for the custom field?

See the full example referenced in Ynze's blog

https://world.optimizely.com/blogs/Anders-Hattestad/Dates/2015/2/extending-the-hyperlink-with-custom-field/

#300447
Apr 20, 2023 21:41
* 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.