Exclude current page when using a content by label macro in Confluence Cloud
Asked by Spencer Holt:

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.


Answers:
author: p.borloz
body: 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](https://community.atlassian.com/t5/image/serverpage/image-id/206716i4E6B1699B4F582C8/image-size/large?v=v2&px=999 "Unbenannt.JPG")

comments: author: Nicole Buysse
body: Somehow this did not work for me.


author: Benj Hingston
body: Might not be your case, but for me I had to ensure the label existed. This example is with the title so there might be a little nuance that differs from labels. The negation wouldn't properly work for labels that didn't exist. It would just create a new label with a dash infront.


author: Petr Vasich
body: 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>


author: Nicole Buysse
body: I found following solution, which is actually quite simple:

* I entered the label I wanted to show the pages for.
* Then I clicked on **Show** (options)   

  ![Show.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/251885i29AC25B61EFA33BF/image-size/large?v=v2&px=999 "Show.jpg")  

  <br />

* A small options menu opens. en TADAAA... here you can select **Exclude current page,** besides a few other options **:-)**
* Press **Save,** or click **Hide** to hide the options menu again, and then press **Save**

![Options.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/251886i5874C29DA600BC6F/image-size/large?v=v2&px=999 "Options.jpg")

It works for me :-)

comments: author: p.borloz
body: Hi, I was baffled when I saw the second image in your post and had to try it for myself. This feature has been requested for more than 17 years now.. Quite disappointed, that this seems to not be implemented in the cloud version of Confluence.

May I ask which version of Confluence you are using?


author: Nicole Buysse
body: Hi there. I was using confluence in the office. We use Confluence Data Center 7.13.7

Kr

Nicole


author: Debra Graham
body: [@Nicole Buysse](/t5/user/viewprofilepage/user-id/4492354) - I too used this in the Server version of Confluence. However, it is not available in the Cloud version.


author: Katerina Kovriga {Stiltsoft}
body: Hi [@Spencer Holt](/t5/user/viewprofilepage/user-id/3942567) ,

If you have the [Table Filter and Charts for Confluence](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?hosting=cloud&tab=overview) app installed for your Confluence instance, I can suggest using the following workaround:

* Use the [Content Report Table](https://youtu.be/Svxz1MJBMv4) macro (it shows the same information, but in a tabular form)
* Enable [live filtration](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+Table+Filter+macro) for the macro

![Fri 2-1.png](https://community.atlassian.com/t5/image/serverpage/image-id/131342iE9046F7761286D77/image-size/large?v=v2&px=999 "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](https://community.atlassian.com/t5/image/serverpage/image-id/131343iC82D6AF5864850DF/image-size/large?v=v2&px=999 "Fri 2-2.png")

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

![Fri 2-3.png](https://community.atlassian.com/t5/image/serverpage/image-id/131344iA2EBEC843A508093/image-size/large?v=v2&px=999 "Fri 2-3.png")

Hope this will help your case.

comments: author: Spencer Holt
body: Right now I doubt that my organization will purchase a new plugin/app, but thank you for the information.


Tags: cloud

confluence-cloud