Hi everyone,
I try to find a solution to the following tricky problem:
Is this possible? Has anyone done something similar and give me some advice?
Thank you
Thomas
Community moderators have prevented the ability to post new answers.
How I see it, you should use jQuery and make it act on some keyword, or use text-data or list-data to specify which type of data it is. Which one would work for you best?
Just a little more documentation in case someone is looking for something similar: 1) Add a CSS stylesheet on the page: .greenBG { background: green: } 2) Add a script like this on the page: <script type="text/javascript"> AJS.toInit(function(){ AJS.$("td:contains('green')").parent().addClass('greenBG'); }); </script>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Thomas,
this comment is quite interesting. Is it still working with e.g. version 6.5.x?
Where do you place CSS? Administration > Look and Feel > Stylesheet?
The jQuery is part of the user macro?
I have tried something with Confluence classes but I don't get it run:
$("td:contains('1')").addClass('highlight-red confluenceTd');
Thanks for your help
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Glad I could help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you so much for pointing me to the jQuery direction!! It is working great. Pleasae convert your comment to an answer, so I can accept it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, it should get its background color by inserting the row and keep that color. The color is representing a different kind of data, e.g. the red colored rows are somehow different from the green ones. Ideally, the color should be changed by edititing the table data.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So only the new rows are highlighted? And color from previously colored rows are removed?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The color should persist after saving the page.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Should the background color only be changed during editing or it should persist after saving the page?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.