I want to be able to use the content by label macro specifiy that the ancestor id as the page itself.
I can manually do this per macro by typing in the name of the page but I want to put the macro in a template and not have to edit the field each time. I know @self is reserved for the space a page exists within but is there an equivalent variable for the a page?
Managed to do with the following user macro:
## Body Processing: No macro body
## @param CQL:title=CQL|type=string|required=false|desc=CQL to filter children with
## @param firstcolumn:title=firstcolumn|type=string|required=false|desc=Title of first column
## @param headings:title=headings|type=string|required=false|desc=Columns to display
<ac:structured-macro ac:name="detailssummary" ac:schema-version="2">
<ac:parameter ac:name="sortBy">title</ac:parameter>
<ac:parameter ac:name="cql">$paramCQL and ancestor = "$content.getIdAsString()"</ac:parameter>
<ac:parameter ac:name="firstcolumn">$paramfirstcolumn</ac:parameter>
<ac:parameter ac:name="headings">$paramheadings</ac:parameter>
</ac:structured-macro>
(Thanks to James Garratt - https://jira.atlassian.com/browse/CONF-38701)
Not yet, please vote for this issue: https://jira.atlassian.com/browse/CONF-39340
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It doesn't seem like this is possible (there's no reference to the current page in CQL), but if you don't type but instead click in the field for ancestors, doesn't the page you are editing pop up as the first option?
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.