PDA

View Full Version : Category question


kohli11
10-24-2005, 11:59 AM
Hi,

as far as I understand I allways have a 'default'-Category which I may rename... So far so good.
But there is also a category called 'all'. How can I delete this category?
I made some new categories and later deleted all for testing reasons. But there is allways the 'all'-category and it doesn't show up in the admin - category panel?

Stephan

GeoS
10-24-2005, 12:17 PM
It is hardcoded in PP code.

kohli11
10-24-2005, 12:23 PM
...this means I can not remove it?!? Or..yes I can if I change the code?


;-)

Stephan

GeoS
10-24-2005, 12:42 PM
Yes, You can if you make code change on own hand.

Connie
10-24-2005, 12:44 PM
Stephan,

this just offers the choice to list all thumbnails again, to call again the browse-page with "all" thumbs

kohli11
10-24-2005, 01:16 PM
...therefore there is the 'default'-category!?


Stephan

Joe[y]
10-24-2005, 02:21 PM
no. default category is not necessarily for all images - it's more just a temporary category. i changed mine to 'portraits' and only assigned it to portraits. default is not a replacement for 'all'.

if you want to remove the all selection from the category select box on a browse page go to index.php and change the lines:

$browse_select = "<select name='browse' onchange='self.location.href=this.options[this.selectedIndex].value;'><option value=''>$lang_browse_select_category</option><option value='index.php?x=browse&amp;category='>$lang_browse_all</option>";

to

$browse_select = "<select name='browse' onchange='self.location.href=this.options[this.selectedIndex].value;'><option value=''>$lang_browse_select_category</option>";

kohli11
10-24-2005, 03:23 PM
Thanks Joe[y]!

Stephan