Expand my Community achievements bar.

SOLVED

Overriding 'Create Tag' dialog for customization

Avatar

Level 10

Hi,

I would like to know how to override /libs/cq/tagging/widgets/source/widgets/admin/TagAdmin.Actions.js to customize "Create Tag" dialog, 

If anybody has done similar tag dialog customization previously, please let me know.

Thanks 

1 Accepted Solution

Avatar

Correct answer by
Level 10

Get an idea from [1] & similarly implement for your use case.  Alternatively override [A] at [B] and make your changed in [B].  The key is make sure properties of /apps/cq/tagging/widgets matches with /libs/cq/tagging/widgets

[1]   http://experience-aem.blogspot.com/2013/10/aem-cq-56-create-and-view-button-on-new-page-dialog.html

[A]  /libs/cq/tagging/widgets/source/widgets/admin/TagAdmin.Actions.js

[B]   /libs/cq/tagging/widgets/source/widgets/admin/TagAdmin.Actions.js

View solution in original post

3 Replies

Avatar

Correct answer by
Level 10

Get an idea from [1] & similarly implement for your use case.  Alternatively override [A] at [B] and make your changed in [B].  The key is make sure properties of /apps/cq/tagging/widgets matches with /libs/cq/tagging/widgets

[1]   http://experience-aem.blogspot.com/2013/10/aem-cq-56-create-and-view-button-on-new-page-dialog.html

[A]  /libs/cq/tagging/widgets/source/widgets/admin/TagAdmin.Actions.js

[B]   /libs/cq/tagging/widgets/source/widgets/admin/TagAdmin.Actions.js

Avatar

Level 10

Yes right, 

While doing the implementation suggested in solution I on the link [A] by you,

My code is 

(function(){     var customTag = CQ.tagging.TagAdmin.createTag;        CQ.tagging.TagAdmin.createTag = function(){ var d = customTag(); } })();

However In this case my code is not able to find "tagsBasePath" define in [1], 

Not sure whats missing

[1] /libs/cq/tagging/widgets/source/widgets/admin/TagAdmin.js

Avatar

Level 10

Use [B] instead of the one mentioned in the above comment

[B]   /apps/cq/tagging/widgets/source/widgets/admin/TagAdmin.Actions.js