Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Setting a non existing TagId on a page node

Avatar

Level 5

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.

1 Accepted Solution

Avatar

Correct answer by
Level 10

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.

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

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.