Skip to main content
edubey
Level 10
Oct 16, 2015 2:28 AM UTC
Solved

Overriding 'Create Tag' dialog for customization

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.
Sham_HC
Sham_HCAccepted solution
Level 10
Oct 16, 2015 2:28 AM UTC

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

Lokesh_Shivalingaiah
Level 10
Oct 16, 2015 2:28 AM UTC

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

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

Translate
edubey
edubeyAuthor
Level 10
Oct 16, 2015 2:28 AM UTC

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

Translate
Sham_HC
Sham_HCAccepted solution
Level 10
Oct 16, 2015 2:28 AM UTC

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

Translate