When using static pages the frontpage is not the all categories page. This page is accessible with <index url>?frontpage
diff include/plugin_internal.inc.php.orig include/plugin_internal.inc.php
1514c1514
< $serendipity['serendipityHTTPPath'] . $serendipity['indexFile'],
---
> $serendipity['serendipityHTTPPath'] . $serendipity['indexFile'] . '?frontpage',
diff templates/default/plugin_categories.tpl.orig templates/default/plugin_categories.tpl
26c26
< <div class="category_link_all"><a href="{$form_url}" title="{$CONST.ALL_CATEGORIES}">{$CONST.ALL_CATEGORIES}</a></div>
---
> <div class="category_link_all"><br /><a href="{$form_url}?frontpage" title="{$CONST.ALL_CATEGORIES}">{$CONST.ALL_CATEGORIES}</a></div>
All categories URL should use "?frontpage"
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
We can'T divert all links to ?frontpage. The reason why '?frontpage' is required is to get to the s9y frontpage; but a "frontpage" once a staticpage startpage is defined is no longer the s9y frontpage.
For the categories plugin this is a seperate case, so there I agree it could need fixing.
Best regards,
Garvin
We can'T divert all links to ?frontpage. The reason why '?frontpage' is required is to get to the s9y frontpage; but a "frontpage" once a staticpage startpage is defined is no longer the s9y frontpage.
For the categories plugin this is a seperate case, so there I agree it could need fixing.
Best 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/
I post a diff for the "all categories" url. This is always the "?frontpage" with or without static page. When a static page is made the front page, it is "/" or "index.php" which points to this static page. Then "all categories" whithout the patch is invalid because it points to the static page. I have patch this diff on my own site precisely to use a static page as front page.
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
Thanks mverdier for clarifying - this was actually what I was trying to say. Yes, your patch makes sense!
Judebert, would you like to commit that?
Best regards,
Garvin
Thanks mverdier for clarifying - this was actually what I was trying to say. Yes, your patch makes sense!
Judebert, would you like to commit that?
Best 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/
-
carl_galloway
- Regular
- Posts: 1331
- Joined: Sun Dec 04, 2005 5:43 pm
- Location: Andalucia, Spain
- Contact:
May I ask a followup question?
In templates, if a separate startpage is required we use the {$startpage} or $view =="start" variables. This is fine, but the categories list (sidebar plugin) links to the same location when 'All Categories' link is followed.
Is there any possibility of changing the 'all categories' link in the sidebar categories list to point instead to archives/P1.html, which is really where logic says it should point to? This change would allow the start page and archives/P1.html page to be different, and gives a lot more scope for feature rich templates that could mimic high-end CMS's
In templates, if a separate startpage is required we use the {$startpage} or $view =="start" variables. This is fine, but the categories list (sidebar plugin) links to the same location when 'All Categories' link is followed.
Is there any possibility of changing the 'all categories' link in the sidebar categories list to point instead to archives/P1.html, which is really where logic says it should point to? This change would allow the start page and archives/P1.html page to be different, and gives a lot more scope for feature rich templates that could mimic high-end CMS's