Hi,
I'm new to Confluence CLI, and would like to replace Page Tree macros with Children Display macros across a Confluence space. Is there a CLI query that can do it?
I was looking at https://bobswift.atlassian.net/wiki/spaces/CSOAP/pages/48398579/How+to+Globally+Search+and+Modify+Content
But it's not clear to me how the Page Tree to Children Display replacement would be written as a query.
Thanks,
Iliya
You could do something similar to Example 2 on the page that you linked to.
What you are doing is changing the storage format, which you can view by clicking "View Storage Format" under the ••• Menu. You will see what you need to change is
ac:name="pagetree"
to
ac:name="children"
and you should be able to use the example provided there.
Another option you have is to install this user macro:
https://streamline.atlassian.net/wiki/spaces/STRMLN/pages/5144578/Search+and+Replace+User+Macro
that allows you to have a preview of what you're going to search/replace. That might be easier for you :)
Thanks very much, Stephen! I tried your user macro, and it worked.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Glad to hear! If you found my answer helpful, please click on the checkmark next to my answer ;)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.