The new categorytemplates plugin
Posted: Sun Jul 31, 2005 9:41 pm
After install (with ne latest nightly built) it screws up all templates. See here.
User and developer community
https://board.s9y.org/
Code: Select all
$serendipity['smarty_vars']['head_link_stylesheet'] = serendipity_rewriteURL('plugin/categorytemplate_' . $cid, 'baseURL', true);
garvinhicking wrote:This is because you are using the new category-plugin and your CSS URL doesn't work:
http://www.die-partei-bonn.de/s9y/plugi ... te_default
Have you enabled mod_rewrite URL rewriting without having mod_rewrite available?
Because usually the URL should look like this:
http://www.die-partei-bonn.de/s9y/index ... te_default
I admit I dont understand what you are trying to tell me. Stupid me.garvinhicking wrote: I just checked the code of the plugin:
Code:
$serendipity['smarty_vars']['head_link_stylesheet'] = serendipity_rewriteURL('plugin/categorytemplate_' . $cid, 'baseURL', true);
This should always return a "index.php?/..." URL because of the last parameter. I don't see how it can happen that you get the URL like in your template....
Code: Select all
function serendipity_rewriteURL($path, $key='baseURL', $forceNone = false) {
global $serendipity;
return $serendipity[$key] . (($serendipity['rewrite'] == 'none' && !$forceNone) || ($serendipity['rewrite'] != 'none' && $forceNone) ? $serendipity['indexFile'] . '?/' : '') . $path;
}
Code: Select all
function serendipity_rewriteURL($path, $key='baseURL', $forceNone = false) {
global $serendipity;
return $serendipity[$key] . ($serendipity['rewrite'] == 'none' || ($serendipity['rewrite'] != 'none' && $forceNone) ? $serendipity['indexFile'] . '?/' : '') . $path;
}