2.0.x & 2.2.X
I'm trying to assign module css and application/rss+xml via $xoops_module_header and running into what seems like a goofy issue.
1st, in non cached mode the module is valid xhtml, in cached mode.... well....
When assigning $xoops_module_header in my php file and not putting any reference to it in the .html template (which is listed in xoops_version.php & working fine) I get a properly inserted (in head) stylesheet. When running w/o cache enabled, this culminates in a lovely valid page.
Once I enable module wide cache, my style dissapears (due to the $xoops_module_header template assignment being called after header.php).
Of course this can be easily remedied by including
<{$xoops_module_header}>
in the .html template, but wait!
Now the (working, but misplaced) style sheet link appears in the body (not the head)and the page will of course not validate that way. In addition, inline notification checkboxes also turn xhtml uncompliant....but the page caches like a champ and displays properly.
Tried using a smarty postfilter which works in 2.2, but it seems to have a 2.0.X incompatibility.
Almost forgot, when NOT cached, With $xoops_module_header in the .html (smarty) template, the style sheet, and the rss feed link both load 2x (not a shocker, but just more info).
Seems like I'm missing something basic, but I can't figure out what...
If someone knows of a method to include a linked stylesheet and avoid the "cache OR compliant" issue, across webservers, please enlighten me.
Is there a correct way to have my cache and eat my xhtml too?
Thanks,
Trip