[2.0.0beta2] Categories

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

[2.0.0beta2] Categories

Post by Lux » Thu Apr 17, 2014 1:58 pm

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

User avatar
yellowled
Regular
Posts: 7007
Joined: Fri Jan 13, 2006 12:46 pm
Location: Eutin, Germany
Contact:

Re: [2.0.0beta2] Categories

Post by yellowled » Thu Apr 17, 2014 2:10 pm

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
amazon Wishlist - Serendipity-Podcast (German only, sorry)

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

Re: [2.0.0beta2] Categories

Post by Lux » Thu Apr 17, 2014 3:11 pm

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

User avatar
yellowled
Regular
Posts: 7007
Joined: Fri Jan 13, 2006 12:46 pm
Location: Eutin, Germany
Contact:

Re: [2.0.0beta2] Categories

Post by yellowled » Thu Apr 17, 2014 3:42 pm

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
amazon Wishlist - Serendipity-Podcast (German only, sorry)

User avatar
garvinhicking
Core Developer
Posts: 30014
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: [2.0.0beta2] Categories

Post by garvinhicking » Thu Apr 17, 2014 3:58 pm

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/

User avatar
yellowled
Regular
Posts: 7007
Joined: Fri Jan 13, 2006 12:46 pm
Location: Eutin, Germany
Contact:

Re: [2.0.0beta2] Categories

Post by yellowled » Thu Apr 17, 2014 4:04 pm

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

YL
amazon Wishlist - Serendipity-Podcast (German only, sorry)

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

Re: [2.0.0beta2] Categories

Post by Lux » Thu Apr 17, 2014 5:09 pm

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

Dirk

User avatar
yellowled
Regular
Posts: 7007
Joined: Fri Jan 13, 2006 12:46 pm
Location: Eutin, Germany
Contact:

Re: [2.0.0beta2] Categories

Post by yellowled » Thu Apr 17, 2014 6:53 pm

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

YL
amazon Wishlist - Serendipity-Podcast (German only, sorry)

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

Re: [2.0.0beta2] Categories

Post by Lux » Thu Apr 17, 2014 8:27 pm

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

User avatar
garvinhicking
Core Developer
Posts: 30014
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: [2.0.0beta2] Categories

Post by garvinhicking » Thu Apr 24, 2014 3:24 pm

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/

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

Re: [2.0.0beta2] Categories

Post by Lux » Thu Apr 24, 2014 4:02 pm

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

User avatar
yellowled
Regular
Posts: 7007
Joined: Fri Jan 13, 2006 12:46 pm
Location: Eutin, Germany
Contact:

Re: [2.0.0beta2] Categories

Post by yellowled » Thu Apr 24, 2014 5:41 pm

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

YL
amazon Wishlist - Serendipity-Podcast (German only, sorry)

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

Re: [2.0.0beta2] Categories

Post by Lux » Fri Apr 25, 2014 6:08 am

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