Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Conditional page bgcolor based on label

Erik_Mace November 3, 2016

Hi, 

If any pages in my site has a "deprecated" label for example, I want the page background to change to red.

Is this possible? 

Thanks, Erik

1 answer

0 votes
Milo Test
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.
November 3, 2016

Perhaps with a user macro. 

Otherwise, instead of adding a label, just add the Style macro with this in the body:

#title-text a::after {
content: '-DEPRECIATED';
}

#title-text {
background: red;
}
 
@page {
background: red;
}
 
.wiki-content {
background: red;
}

 

TIP: Once you set up the Style macro, you can just copy and paste the whole macro.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events