cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

smartedit populate custom attribute that does not extend CMSItem but GenericItem

Former Member
583

Hi all,

I'm facing an issue with a custom attribute in a component. This attribute is a complex object which extends a GenericItem, not a CMSItem. I tried to follow the second option of this post and I was able to expose my controller in my custom smartedit extension and to retrieve the list of data in the dropdown list. However, I'm still trying to fix two main issues:

- when I choose one of the items in the dropdown list, the field is marked as invalid (red box) and I can't remove the choice in order to keep the attribute empty;

- when the REST call is made, the URL is automatically generated by smartedit: "https://localhost:9002/mycustomsmartedit/looks?catalogId=CURRENT_CONTEXT_CATALOG&catalogVersion=CURR..." but CURRENT_CONTEXT_CATALOG and CURRENT_CONTEXT_CATALOG_VERSION are not "translated" when the controller is hit (I receive literally CURRENT_CONTEXT_CATALOG_VERSION and not for example Staged).

Am I missing something? The trial of the wiki is incomplete and doesn't say anything about rendering an attribute which is not CMSItem.

Thanks,

Roberta.

Accepted Solutions (0)

Answers (0)