Are these documented? anyhow….they didn’t work, and I can see why now from the below.
In the end, it looks like I have to, just from inherent encoding limitations, as you suggested, restrict my category names. I can certainly be creative enough to do so, or do without, which is fine by me — more than reasonable, and I would be hard pressed to expect more.
Anyway, this is what I got (no doubt revealing my ignorance as far as html css etc. goes). Boring, but interesting to me:
Starting categories:
this is a text%20with spaces
Kindergarten%20(3-5)
Kindergarten (3-5)
Kindergarten (3-5)
The second and third replace the space with a%20
and
respectively.
On the eme-categories page the %20
s appear, but the
show as spaces. But, as shown below, the
s are preserved, clearly.
After inserting class=“ #_EVENTCATEGORIES_CSS #URL_EVENTCATEGORIES_CSS #ESC_EVENTCATEGORIES_CSS”
into my calendar <li>
and checking the actual classes using chrome dev tools as rendered by chrome, results were as follows:
#_EVENTCATEGORIES_CSS:
this is a text%20with spaces Kindergarten%20(3-5) Kindergarten (3-5) Kindergarten (3-5)
#URL_EVENTCATEGORIES_CSS:
this%20is%20a%20text%2520with%20spaces%20Kindergarten%2520%283-5%29%20Kindergarten%C2%A0%283-5%29%20Kindergarten%20%283-5%29
#ESC_EVENTCATEGORIES_CSS:
this is a text%20with spaces Kindergarten%20(3-5) Kindergarten (3-5) Kindergarten (3-5)
Step 3 was try to write css rules for these.
Though I didn’t test thoroughly, and I am not an expert in this, none of the above work as it seems like the %20
,
etc. do not work as css classes. Parentheses are verbotten. I don’t know the rules for allowable chars in css class names but perhaps they are quite limited?
In any case if it ever comes up in the future:
Dream 1: If instead of using the actual category names, there was a way I could generate a list with a standard prefix, such as “cat1 cat3 cat4” with the numbers representing the ids, (something like adding a prefix to #_EVENTCATEGORYIDS, minus commas), then I could easily use those for the class names.
Dream 2, better than dream 1: you add a field to the categories settings page to explicitly set the css classes for it.
Since I am not using the category descriptions anywhere, for fun (!) I tried putting #_EVENTCATEGORYDESCRIPTIONS as my class…except commas…