Overriding 'Create Tag' dialog for customization | Community
Skip to main content
edubey
Level 10
October 16, 2015
Solved

Overriding 'Create Tag' dialog for customization

  • October 16, 2015
  • 3 replies
  • 863 views

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 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sham_HC

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

3 replies

Sham_HC
Sham_HCAccepted solution
Level 10
October 16, 2015

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

edubey
edubeyAuthor
Level 10
October 16, 2015

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

Lokesh_Shivalingaiah
Level 10
October 16, 2015

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

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