Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By harikris2007 on
Hello Friends,
I tried to change the color of the text under the "Published" column of the node content listing.
I need the published text to be in green color and the unpublished text to be in red color.
Theme for admin: seven
In the view I have edited the output of the following field:
Administration: Nodes (Content)
Configure field: Content: Published
Rewrite Output :
[status]
Please check the screen shot for a better understanding.
Comments
You'll need to create a new
You'll need to create a new sub-theme of seven, then set that as your admin theme. After that, you can make the changes you need to the .unpublished class to change the color.
Thank you Jaipan
Thanks for the update.
Is it true?
Unfortunately, yes. We were
Unfortunately, yes. We were having a discussion, and they shut it down. You can see it in the thread that is linked.
Yes i see.
We should move to http://drupal.stackexchange.com/.
Try this steps for your
Try this steps for your purpose:
1) For editing the view of administration page you have to install drupal module Administration Views.
2) For adding table color row of red and green, add module Views Table Highlighter.
Step for configuring the table:
1. Change the 'FORMAT' from 'Table' to 'Table Highlighter' in view
2. Put the highlighter PHP code in settings of table highlighter
Hope this helps you!
Try this steps for your
Try this steps for your purpose:
1) For editing the view of administration page you have to install drupal module Administration Views.
2) For adding table color row of red and green, add module Views Table Highlighter.
Step for configuring the table:
1. Change the 'FORMAT' from 'Table' to 'Table Highlighter' in view
2. Put the highlighter PHP code in settings of table highlighter
Hope this helps you!
Thanks Naresh
Thank you very much.
It works for me.Well done!
B/w Do you know any best module to implement like option for contents? Similar like https://www.drupal.org/project/likebtn
Welcome
Thanks Harikris for appreciating the efforts I put in to solve the issues. Would check that up and let you know the best solution.
Have a great day ahead!
may..be
hi
may be the https://www.drupal.org/project/flag module with css my customizing selectors : the "flag-action" and "unflag-action"