on 12-27-2016 3:40 PM
We tried doing these in the following ways: Overriding the bean, modifying the renderer as well as corresponding jsp too.
Hello Naveen, I would recommend creating another type but if the requirement is to modify the way CMSLinkComponent is displayed, I would take advantage of the fact that CMSLinkComponentController is not there and create it,
extending AbstractCMSComponentController<CMSLinkComponentModel>
@Override
protected String getView(CMSLinkComponentModel component) {
return "path to the new jsp";
}
It's important to take into account that if you are working on an addon it extends AbstractCMSAddonComponentController and the path to the file would look something like this: addon:/yourcomponentsaddon/cms/cmslinkcomponent
Hope it helps!
Regards, Guille
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.