Expand my Community achievements bar.

Display only selective tags in a dialog field

Avatar

Level 2
We have a requirement to show only selective tags in our dialog field. So , we want to display tags for tags path : /etc/tags/facebook/work. Here, the requirement is that user wants to directly browse work tags only.
I tried the following config option in the widget - 
  •  With tagsBasePath to get only Facebook work tags displayed 
Digging into the code, it shows the error as - 
  1. Uncaught TypeError: Cannot read property 'name' of undefinedwidgets.js:1573
    1. CQ.tagging.TagInputField.CQ.Ext.extend.checkMaximumwidgets.js:1573
    2. CQ.tagging.TagInputField.CQ.Ext.extend.addTagwidgets.js:1028
    3. CQ.tagging.TagInputField.CQ.Ext.extend.toggleTagwidgets.js:1543
    4. CQ.tagging.TagInputField.CQ.Ext.extend.onTagNodeClickedwidgets.js:2106
    5. EXTUTIL.Event.firewidgets.js:4776
    6. EXTUTIL.Observable.fireEventwidgets.js:4417
    7. CQ.Ext.tree.TreePanel.CQ.Ext.extend.proxyNodeEventwidgets.js:58445
    8. CQ.Ext.data.Node.CQ.Ext.extend.fireEventwidgets.js:59747
    9. CQ.Ext.tree.TreeNodeUI.CQ.Ext.extend.fireEventwidgets.js:61206
    10. CQ.Ext.tree.TreeNodeUI.onClickwidgets.js:87770
    11. CQ.Ext.tree.TreeEventModel.onNodeClickwidgets.js:59075
    12. CQ.Ext.tree.TreeEventModel.delegateClickwidgets.js:59035
  •            
  • With the namespaces , I can only restrict it till /etc/tags/facebook since here the namespace is Facebook.​ Going ahead and creating a new namespace altogether for work itself isn’t a feasible option as well!
  • Plus, configuring the appropriate ACL isn't a feasible option.

Any alternative approaches to go about this?

0 Replies