Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,361,278
Community Members
 
Community Events
168
Community Groups

Exclude current page when using a content by label macro in Confluence Cloud

How can I exclude the current page in a 'Content by Label' macro in Confluence Cloud? I'm having a hard time finding information about that.

3 answers

Hello.

You can create an exclusion label and add it to the pages you want to exclude. For example "donotshow" and add it to the filter as "-donotshow" (with "-" before the label). In this case, the filter will exclude to all pages with the fist label that do not have the second label.

Documentation https://support.atlassian.com/confluence-cloud/docs/insert-the-content-by-label-macro/#ContentbyLabelMacro-AND-OR-andNOToperators 

Hi @Spencer Holt ,

If you have the Table Filter and Charts for Confluence app installed for your Confluence instance, I can suggest using the following workaround:

Fri 2-1.png

  • Set the reversed filter for the Title column (click on the "=" to exclude page titles). For example, here we don't show "The Table Filter Macro (new)" page. You may exclude your current page and any pages you wish

Fri 2-2.png

  • You may also filter other columns as well to get more precise results

Fri 2-3.png

Hope this will help your case.

Right now I doubt that my organization will purchase a new plugin/app, but thank you for the information.

0 votes

Hi,

I found a solution, that works for me. It is not perfect, because each time you edit the content by labels macro, you have to do the manipulation* again.

 

1. Choose the filter "With title"

2. Add the title of the page and put a "-" in front. The page will now be excluded. 

*ATTENTION: each time you edit the macro "Content by label" you have to reput the "-" in front of the Title. I don't know why the "-" disappears.

and of course, if you change the name of the page, you'll have to adapt it in the macro aswell....

Unbenannt.JPG

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
Community showcase
Published in Confluence

Watch 4 Confluence apps compete for Best App Demo in September's Appy Hours

Calling all collaborators! Appy Hours on the Atlassian Community is a monthly event where 4 Partner and app vendor presenters go head-to-head with 5-minute demos for the title of Best App Demo. I...

585 views 0 13
Read article

Atlassian Community Events