on 07-18-2018 10:16 AM
Hi all,
I am trying to add additional buttons to the existing smartedit toolbars. I have generated a new extension from ysmarteditmodule, read through the generated sample files and compared those with the files in the existing cmssmartedit extension.
Without seeing smartedit, I would have thought that the sample files would add some analyze button to the existing toolbars. However, that button comes up in the toolbar of the analysis perspective it creates instead. It's adding the button to the toolbar with ID "experienceSelectorToolbar" and I cannot spot anything that would point to a certain perspective anywhere. In short, I have no clue what makes that button show up in the toolbar of the sample analysis perspective rather than the toolbar of eg. the advanced edit perspective. Not the toolbar ID it seems.
Is there even a way to add a button to the existing toolbar defined in eg. cmsmartedit, ie. a toolbar defined in a different extension? Or does it automatically scope everything to the current extension?
Thanks in advance for any help!
Cheers, Sven
There should be a configuration for perspectiveService.register() to register features to a perspective.
To add a feature to the existing basic edit perspective, you need something like this:
// The key must match one of the existing perspective keys defined in cmssmartedit.
perspectiveService.register({
key: 'se.cms.perspective.basic',
nameI18nKey: 'se.cms.perspective.basic.name',
features: ['sampleToolbarButton']
});
See the follow docs for more information:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
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.