Exporting tags: only the tag node, not it's children | Community
Skip to main content
October 16, 2015
Solved

Exporting tags: only the tag node, not it's children

  • October 16, 2015
  • 2 replies
  • 686 views

In my system we have tags closely associated to content and to replicate that content effectively within a sharable package, I have to export some level of tags with the content so it can be replicated on other systems.

The problem is that we have many thousand tags with a deep hierarchy so when I filter out (in crx package manager) a high-level tag node, it's grabbing all of the children of the tag which significantly bloats the package size.

Is there any way to export only the tag desired and not it's children. I can do it with content by selecting the jcr:content node of the desired content page, but with tags there is only the tag node itself. Is there a way to spec this in the package filter to only take the tag and not recurse lower than the the spec in the filter?

The only work-around I've found is to take a child node of the desired node which is a somewhat shallower ancestry than others, this feels like a hack.

Thanks much!

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 JustinEd3

You can do this with an exclusion like this:

<workspaceFilter version="1.0"> <filter root="/etc/tags/geometrixx-outdoors/activity"> <exclude pattern="/etc/tags/geometrixx-outdoors/activity/.*"/> </filter> </workspaceFilter>

2 replies

JustinEd3Adobe EmployeeAccepted solution
Adobe Employee
October 16, 2015

You can do this with an exclusion like this:

<workspaceFilter version="1.0"> <filter root="/etc/tags/geometrixx-outdoors/activity"> <exclude pattern="/etc/tags/geometrixx-outdoors/activity/.*"/> </filter> </workspaceFilter>
user91293Author
October 16, 2015

solid!

we're having some luck using /etc/tags/path/to/tag/.content.xml but we're not sure if this wouldn't have adverse impact on a system with tags below this path..I love the exclude option for this.

thanks so much!