Asset replication with tags

Avatar

Avatar
Validate 1
Level 2
ganthimathir591
Level 2

Like

1 like

Total Posts

18 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
ganthimathir591
Level 2

Like

1 like

Total Posts

18 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
ganthimathir591
Level 2

18-12-2018

I am trying to replicate Assets with associated tags. But only assets are getting Activated. So I  separately replicated tags first and then the assets. Is this an expected behavior?

Replies

Avatar

Avatar
Level 1
sriramac4777511
Level 1

Likes

0 likes

Total Posts

4 posts

Correct reply

0 solutions
View profile

Avatar
Level 1
sriramac4777511
Level 1

Likes

0 likes

Total Posts

4 posts

Correct reply

0 solutions
View profile
sriramac4777511
Level 1

18-12-2018

Yes. As you need separate set of permissions to replicate assets and tags. In your case you have permission to replicate both assets and tags. But that is always not the case.

Avatar

Avatar
Validate 1
Level 2
ganthimathir591
Level 2

Like

1 like

Total Posts

18 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
ganthimathir591
Level 2

Like

1 like

Total Posts

18 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
ganthimathir591
Level 2

18-12-2018

OK, thank you for your response !

Avatar

Avatar
Give Back 50
Employee
Vish_dhaliwal
Employee

Likes

189 likes

Total Posts

356 posts

Correct reply

123 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile

Avatar
Give Back 50
Employee
Vish_dhaliwal
Employee

Likes

189 likes

Total Posts

356 posts

Correct reply

123 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile
Vish_dhaliwal
Employee

18-12-2018

If you have the right set of permissions, you should see all the tags that would be replicated with the asset.

pub-tags.PNG

Avatar

Avatar
Validate 1
Level 2
ganthimathir591
Level 2

Like

1 like

Total Posts

18 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
ganthimathir591
Level 2

Like

1 like

Total Posts

18 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
ganthimathir591
Level 2

18-12-2018

Thank you. I tried your solution and it works as you mentioned while doing it manually. But I am trying to replicate asset with tags programatically. In that case I could not see the tags getting replicated with assets. I have given enough permissions to the system user.

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,442 likes

Total Posts

3,322 posts

Correct reply

941 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,442 likes

Total Posts

3,322 posts

Correct reply

941 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

18-12-2018

Hi,

You may need to replicate tags separately then. You can get assets tags using TagManager com.day.cq.tagging.TagManager  and Replicated them also.

Avatar

Avatar
Validate 1
Level 2
ganthimathir591
Level 2

Like

1 like

Total Posts

18 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
ganthimathir591
Level 2

Like

1 like

Total Posts

18 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
ganthimathir591
Level 2

18-12-2018

Thank you, I could replicate tags seperately.

Avatar

Avatar
Validate 1
Level 3
GaneshM
Level 3

Likes

15 likes

Total Posts

49 posts

Correct reply

9 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 3
GaneshM
Level 3

Likes

15 likes

Total Posts

49 posts

Correct reply

9 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
GaneshM
Level 3

18-12-2018

Hi,

If you are using workflow to activate the pages/assets, the best practice is create custom process to activate the page/assets associated resources.

You can use the ResourceCollectionUtil to collect the resources associated given page.

Ex:

ResourceCollection rcCollection = ResourceCollectionUtil.getResourceCollection((Node)session.getItem(path), rcManager);

List resPaths = rcCollection.list(new String[] {  "dam:Asset","cq:tags" });

iterate resPaths to get the node path and replicate.

Thanks!