Hi,
I'm trying to find the Macro Usage for a specific Space. Sadly the macroName: * cql doesn't work. Is there another way to list used macros?
Best
Patrick
For the interested with Database or XML Access:
- get SpaceID
select spaceid from spaces where spacekey = 'SPACENAME';
- get Content with Maco Usage
COPY(
SELECT bc.body,c.spaceid,bc.contentid,c.contentid,c.content_status,c.title
FROM bodycontent bc
INNER JOIN content c ON c.contentid = bc.contentid
WHERE c.spaceid = '123123213' and bc.body ~ '<ac:structured-macro ac:name')
to '/tmp/export.txt';
- Grep the Export
grep -Po "ac:structured-macro ac:name=\K[^ ]+" export.txt | sort | uniq
Alternative to Database is the entities.xml in the Export.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.