Entry highlighting

Entry highlighting

by Seguis Com -
Number of replies: 6

Hi there,

Our moodle version: 2.8.6+

Database: I know version 3.0 does highlight new entries needing approval; can I manually add do this for our version... is there a preset anyone could possibly share?

I have tried adding <table class="mod-data-default-template ##approvalstatus##”> in the css template, as well as the list and single view templates. Did not work.

Thanks,

Seguis

Average of ratings: -
In reply to Seguis Com

Re: Entry highlighting

by William Lu -

Hi Seguis,

If you do want to manually add a highlight to an area, you need to add a field for that and the users have to select a value when they add a new entry. Try attached preset and let me know if it is what you want or not.




In reply to William Lu

Re: Entry highlighting

by Seguis Com -

Thank you William - that preset works well!

In reply to Seguis Com

Re: Entry highlighting

by William Lu -

Hi Seguis,

It is nice to hear your feedback. 

Not log after you asked this question Madhu posted a much better solution.

https://moodle.org/mod/forum/discuss.php?d=345289#p1392541

I made a simplified version for you.

As in Madhu's preset, use dropdown menu will be easier to specify a set of choices.


Thanks to Madhu.



In reply to William Lu

Re: Entry highlighting

by philippe dutour -

HI,

I'm very interested to know how i can have choice for background color when i want to make a new entry.

Thank's a lot

In reply to philippe dutour

Re: Entry highlighting

by William Lu -

Hi Philippe,

Thanks to your question. 

Look like the class "highlight" is obsolete from Moodle3.2+, so we have to use style="background-color:[ [ColourName] ]"

You can get a list of colour names here.

 http://htmlcolorcodes.com/color-names/

I suggest you select some light colours.




To highlight a cell according to a selection automatically, better use Madhu's method in this thread.