Setting a non existing TagId on a page node | Community
Skip to main content
New Participant
October 16, 2015
Solved

Setting a non existing TagId on a page node

  • October 16, 2015
  • 1 reply
  • 536 views

Is it possible to programmatically (using JCR API - node.setProperty("cq:tags", ..) ) set a non existent TagID (i.e. it's not found under etc/tags) on a Page node?

This seems to work on the author instance but not publish. Want to make sure this is something AEM comes with built in and is not custom built or version dependent.

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 edubey

Yes you can use But,

Are you expecting them to populate in dialog box like tags field does ?, It wont work in this case

OR

You just want set property to for some other purpose. It should be fine.

I hope you have replicated all code successfully to publish instance. Now when you execute this code in publish, can you manually go to that path and check for this property ( If you have access ) meanwhile when you execute code for this KEEP EYE on logs of publish instance.

Let me know what you see. One more, is there any special case why u want use "cq:tags"?, as you are free to use your any custom property name.

1 reply

edubey
edubeyAccepted solution
New Participant
October 16, 2015

Yes you can use But,

Are you expecting them to populate in dialog box like tags field does ?, It wont work in this case

OR

You just want set property to for some other purpose. It should be fine.

I hope you have replicated all code successfully to publish instance. Now when you execute this code in publish, can you manually go to that path and check for this property ( If you have access ) meanwhile when you execute code for this KEEP EYE on logs of publish instance.

Let me know what you see. One more, is there any special case why u want use "cq:tags"?, as you are free to use your any custom property name.