CSS classes for categories and locales
12 Mar
2012
12 Mar
'12
7:51 a.m.
This came up on discussion over on openguides-oxford. We'd like to be able to put a distinctive style on pages for places that have now closed. Rather than hardcoding this for a "Closed" or "Now Closed" category, Dom and I thought a better solution would be to simply add classes for all categories and locales that a page is in. So for example, http://oxford.openguides.org/wiki/?The_Jam_Factory would have HTML: <div id="content" class="cat:baby_changing_facilities cat:free_wifi cat:pubs cat:restaurants cat:wifi loc:park_end_street loc:west_central"> rather than the simple <div id="content"> that's currently there. Thoughts? Objections? Kake
5379
Age (days ago)
5379
Last active (days ago)
0 comments
1 participants
participants (1)
-
Kake L Pugh