adobe - How do I manipulate the component groups allowed in sidekick according to different websites in my CQ5 instance? -
I tried the above but due to the incompleteness of the article, I failed. What really happens when the page loads?
Which JS calls?
How can I override the 'Update' function of ComponentList.js?
How do I call it?
I tried to use the listeners and failed (due to the bad first time with the listener?)
Each client side component also becomes a cell search path and finally a CQ.wcm.Cell & gt; Assigned The array of allowed components is stored in a CQ.VCM. Component list is an example page per class.
Insert dialog and sidekick get the last list of components from that object.
The "updatecomponentlist" listener can be registered using normal editing. On the CONFECTION listeners container component,
read components list from design path according to document sidekick and To modify it, to add the
updatecomponentlist event listener to a container component in the editing config, you have to add the client side to you.
I can not tell you the interior, but I can tell you manipulate the component list in SideKick
- You have to expand and with the purpose of this answer, Strong> myparsys
- Add a cq: listeners node inside the cq: editConfig MyParsys node.
Inside the node Seek: Audiences add updatecomponentlistener property and its value should be the work given here
Function MyHandler ( Cell, allowed, component list) {// If necessary, manipulate the 'permission' array (if allowed, permission is allowed) Push ('Your component group');
- Use the myparsys component in your page
The only catch here is that it does not work if
permission < / Code> parameter is a string that occurs when you have a single component or a single group that is allowed in your design path for that page. So to make it work always, keep the allowed component list empty in your design path and change the allowable components in the runtime.
In addition to this document, it is not supported properly
Please note that the "runtime" manipulation of the component list is not currently supported. & Gt; To wit. If the list of permitted components depends on the client side change, then this & gt; Can not Promoting to Dialogue
This means that in the design dialogue, the components that you have allowed runtime will not be shown to the authors chosen.
So I ask you to consult with a proper CQ developer or to the official CQ Forum or Adobe forums that this use is recommended for the case or not.
Comments
Post a Comment