The new categorytemplates plugin
-
Col. Kurtz
- Regular
- Posts: 450
- Joined: Thu May 26, 2005 10:43 am
- Location: Bonn, Germany
- Contact:
The new categorytemplates plugin
After install (with ne latest nightly built) it screws up all templates. See here.
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: The new categorytemplates plugin
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
Regards,
Garvin
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
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: The new categorytemplates plugin
I just checked the code of the plugin:
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.... 
Regards,
Garvin
Code: Select all
$serendipity['smarty_vars']['head_link_stylesheet'] = serendipity_rewriteURL('plugin/categorytemplate_' . $cid, 'baseURL', true);
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
Col. Kurtz
- Regular
- Posts: 450
- Joined: Thu May 26, 2005 10:43 am
- Location: Bonn, Germany
- Contact:
-
Col. Kurtz
- Regular
- Posts: 450
- Joined: Thu May 26, 2005 10:43 am
- Location: Bonn, Germany
- Contact:
Re: The new categorytemplates plugin
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....
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Can you open your include/functions_permalink.inc.php file and check the serendipity_rewriteURL function.
It should look like this:
Now please remove that "&& !$forceNone" part in the first query, so that it looks like this:
I also committed this to the snapshot now.
Regards,
Garvin
It should look like this:
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;
}
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
Col. Kurtz
- Regular
- Posts: 450
- Joined: Thu May 26, 2005 10:43 am
- Location: Bonn, Germany
- Contact: