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.
Only local images are allowed.

Comments

Jaypan’s picture

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.

harikris2007’s picture

Thanks for the update.

Is it true?

The Drupal organization has shut down discussion on improvement of the forums: https://www.drupal.org/node/2536122

It's time to start a new forum somewhere else. The Drupal organization does not care about the forums.

Jaypan’s picture

Unfortunately, yes. We were having a discussion, and they shut it down. You can see it in the thread that is linked.

harikris2007’s picture

dev18.addweb’s picture

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

 if ($node_status=='1') { return 'green'; } else { return 'red'; }

Hope this helps you!

dev18.addweb’s picture

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

 if ($node_status=='1') { return 'green'; } else { return 'red'; }

Hope this helps you!

harikris2007’s picture

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

dev18.addweb’s picture

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!

delacosta456’s picture

hi
may be the https://www.drupal.org/project/flag module with css my customizing selectors : the "flag-action" and "unflag-action"