Page 1 of 1
Show all categories? Two is hidden from frontpage
Posted: Tue Sep 30, 2008 3:27 pm
by alpay
Hello all and thanks in advance....
I'm using the regular Categories plugin, as well as the "start page categories" event plugin to do some category hiding.
I have 2 of 6 total categories hidden from my frontpage. I'd like to give the reader the option to see all categories at once, I just want their first pageview when they arrive at my blog to show 4 categories...
The problem is, the "Show all categories" link simply points to the frontpage (which has the 2 hidden cats). I can select all with checkboxes and select go but I don't know what url encoded command the form button is sending in order to retrieve every category. Can anyone tell me the format? or maybe have another method?
I don't mind making an "ALL" category, but then I'd want to remove the "Show all categories" button.
You can see what I am talking about at
blog.LitStudios.com
Thanks. much appreciated.
Re: Show all categories? Two is hidden from frontpage
Posted: Tue Sep 30, 2008 6:40 pm
by garvinhicking
Hi!
Yes, the "Show all categories" link actually simply refers to what you defined as the startpage, so by hiding some categories you actually made the "all categories" refer to what you think are "all categories" on the startpage.
You could try to use index.php?serendipity[category]=all instead, this works as a shortcut to selecting really all categories?
HTH,
Garvin
Posted: Tue Sep 30, 2008 6:46 pm
by alpay
Thanks for the reply Garvin... I tried "index.php?serendipity[category]=all" but no dice... it's still acting the same way. What you describe is exactly the kind of thing I was hoping for. does the above quote look correct?
when i used
http://blog.litstudios.com/index.php?se ... egory]=all, it failed to include
http://blog.litstudios.com/index.php?/c ... Geeknology
Thanks
Alpay
Posted: Tue Sep 30, 2008 6:51 pm
by garvinhicking
Hi!
Hm, okay - that link actually only displays all categories instead of the startpage category, EXCEPT the categories you have hidden.
To REALLY disable the whole logic of the plugin, you would need to use this URL:
http://blog.litstudios.com/index.php?se ... odule]=all
I'm not exactly sure though if this might create trouble when paginatiing through multiple pages...
Regards,
Garvin
Posted: Tue Sep 30, 2008 7:00 pm
by alpay
AWESOME, it works like I hoped! and it doesn't seem to be breaking anything... I'm going to find the template for the categories nugget(?) and replace the linked url as mentioned above... thanks so much for the solution.
Posted: Tue Sep 30, 2008 9:17 pm
by alpay
Sorry to be a pest... I can't seem to find the categorytemplate plugin to edit the url... could you point me in the right direction please? I checked the plugins folder, everything is obviously named but I see nothing about categories - which is strange, i def see the categories plugin from the admin gui.
Thanks.
Posted: Tue Sep 30, 2008 11:06 pm
by Don Chambers
In think that is one of the internal plugins - check /include/plugin_internal.inc.php
Posted: Wed Oct 01, 2008 4:58 am
by alpay
You're right! It was in there, took me a minute to find the right line but I got it working.
You guys are my hero's... for anyone searching for this in the future:
in file /include/plugin_internal.inc.php, i located
Code: Select all
$serendipity['serendipityHTTPPath'] . $serendipity['indexFile'] . '?frontpage',
and changed it to
Code: Select all
$serendipity['serendipityHTTPPath'] . $serendipity['indexFile'] . '?serendipity[adminModule]=all',
it looks like it's also an easy affair to make the form button (the Go! button) go to this url when no checkboxes are ticked, I left it as is however.
Thanks guys... as I continue to populate my blog, this will make me feel better about the way I'm presenting my DIY projects vs. blog links to other people's work.... Thanks again. thanks a million.
Alpay