[2.0.0beta2] Categories

Discussion corner for Developers of Serendipity.
Post Reply
Lux
Regular
Posts: 764
Joined: Fri Aug 12, 2005 4:36 pm
Location: Grüt, Zürich, Switzerland
Contact:

[2.0.0beta2] Categories

Post by Lux »

Hi!

When creating a new entry, the new "category chooser" works pretty well for a small amount of categories.

When the display of categories is larger then the screen height, it does not work well any more.

So maybe think about two options, expand/collapse categories and subcategories or make the categories "searchable" like the tags.

Cheers

Dirk
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: [2.0.0beta2] Categories

Post by yellowled »

Lux wrote:When the display of categories is larger then the screen height, it does not work well any more.
I think that damn thing has been the subject of the most discussions in the development process altogether. It is, however, nice to hear that the interface basically works. :)
Lux wrote:So maybe think about two options, expand/collapse categories and subcategories or make the categories "searchable" like the tags.
Just to clear that up – what bothers you about the category selector with many categories is not the fact that you have to scroll the page, but the fact that the list is getting long? (Both would be perfectly valid, I'm just asking because both would require different approaches to a solution.)

I'm not sure expand/collaps would actually help here, but it's an option. I actually like the idea of a filter here, I'm just not sure if that would work well on smaller devices, and we always have to keep those in mind.

YL
Lux
Regular
Posts: 764
Joined: Fri Aug 12, 2005 4:36 pm
Location: Grüt, Zürich, Switzerland
Contact:

Re: [2.0.0beta2] Categories

Post by Lux »

yellowled wrote:Just to clear that up – what bothers you about the category selector with many categories is not the fact that you have to scroll the page, but the fact that the list is getting long? (Both would be perfectly valid, I'm just asking because both would require different approaches to a solution.)
The point is that I like to have quick access to my categories.

In the old world, I was able to type the first letter of the category name to jump through the drop down list.
yellowled wrote:I'm not sure expand/collaps would actually help here, but it's an option. I actually like the idea of a filter here, I'm just not sure if that would work well on smaller devices, and we always have to keep those in mind.
Agreed!

The vast majority of my articles are in only one category. For more "search terms" I use tags. But I know that it is possible to put a single article in more than one category. This makes it rather complicated.

Cheers

Dirk
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: [2.0.0beta2] Categories

Post by yellowled »

Lux wrote:In the old world, I was able to type the first letter of the category name to jump through the drop down list.
You mean in the expanded dropdown list, right? I'm pretty sure that's a rarely used shortcut, at least I'd be surprised if more users knew this is even possible (I didn't know before you mentioned it).
Lux wrote:But I know that it is possible to put a single article in more than one category. This makes it rather complicated.
Not necessarily. The popup holds a list of all categories. If we'd add an input field at the very top which acts as a “live filter” which shows just the categories matching your input in real time, you could still select multiple categories. I don't think, however, that would work well with show/hide …

Also, this could be a pretty big overhead (because it requires additional JS).

YL
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: [2.0.0beta2] Categories

Post by garvinhicking »

You mean in the expanded dropdown list, right? I'm pretty sure that's a rarely used shortcut, at least I'd be surprised if more users knew this is even possible (I didn't know before you mentioned it).
Really? I use it all the time.

I believe some sort of "type-ahead" filter would be good to have. We could use jquery to iterate the category list... I believe this shouldn't be too hard. I'll put this on my list for next week. I think when the JS only fires on entering stuff in the input field it shouldn't have too much impact, and not too many lines of code.

I'll cook something up as a draft.
# 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/
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: [2.0.0beta2] Categories

Post by yellowled »

garvinhicking wrote:Really? I use it all the time.
My blog only has 5 categories. :)

YL
Lux
Regular
Posts: 764
Joined: Fri Aug 12, 2005 4:36 pm
Location: Grüt, Zürich, Switzerland
Contact:

Re: [2.0.0beta2] Categories

Post by Lux »

yellowled wrote:
garvinhicking wrote:Really? I use it all the time.
My blog only has 5 categories. :)
Pah! Amateur! :lol:

Dirk
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: [2.0.0beta2] Categories

Post by yellowled »

Lux wrote:Pah! Amateur! :lol:
I prefer the term “person with a monothematic blog”. :P

YL
Lux
Regular
Posts: 764
Joined: Fri Aug 12, 2005 4:36 pm
Location: Grüt, Zürich, Switzerland
Contact:

Re: [2.0.0beta2] Categories

Post by Lux »

yellowled wrote:
Lux wrote:Pah! Amateur! :lol:
I prefer the term “person with a monothematic blog”. :P
Agreed! :-D
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: [2.0.0beta2] Categories

Post by garvinhicking »

Just committed as https://github.com/s9y/Serendipity/comm ... ec531c1241 -- what do you think? Discussion maybe in the issue tracker: https://github.com/s9y/Serendipity/issues/123

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/
Lux
Regular
Posts: 764
Joined: Fri Aug 12, 2005 4:36 pm
Location: Grüt, Zürich, Switzerland
Contact:

Re: [2.0.0beta2] Categories

Post by Lux »

garvinhicking wrote:Just committed as https://github.com/s9y/Serendipity/comm ... ec531c1241 -- what do you think? Discussion maybe in the issue tracker: https://github.com/s9y/Serendipity/issues/123
Hi Garvin,

do you have a test blog, where I can get access to?

Cheers

Dirk
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: [2.0.0beta2] Categories

Post by yellowled »

Lux wrote:do you have a test blog, where I can get access to?
You've got mail. :)

YL
Lux
Regular
Posts: 764
Joined: Fri Aug 12, 2005 4:36 pm
Location: Grüt, Zürich, Switzerland
Contact:

Re: [2.0.0beta2] Categories

Post by Lux »

garvinhicking wrote:Just committed as https://github.com/s9y/Serendipity/comm ... ec531c1241 -- what do you think? Discussion maybe in the issue tracker: https://github.com/s9y/Serendipity/issues/123
Looks pretty good for me. Thank you!

Cheers

Dirk
Post Reply