Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Content By Label Macro - control what to show if nothing is found?

Rene Schade January 3, 2019

If you use the "Content By Label" macro and no matching pages are found, the following is shown:


content_by_label.png

I would like this to be *empty* => nothing is shown if nothing is found.

Is there a trick to do this?

thanks!

2 answers

1 accepted

0 votes
Answer accepted
Victor Mutambuki
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 3, 2019

Rene,

Unfortunately no. The notice is useful to alert the user that their/the intended label isn't/wasn't used.

Victor

0 votes
Rene Schade January 10, 2019

I implemented a small workaround, that made the problem acceptable from my side. I simply decided to remove the box using CSS (for that specific space):

.macro-blank-experience { 
    display: none;
}

It only removes the box and e.g. "List title"

That trick may come in handy for other as well :)

Mike Creed August 10, 2023

Where did you put this in the code?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events