I'm working on implementing categories in Telescope. Here's what I have so far.

URL Scheme

Categories vs Tags

As I define it, tags are just user-generated categories. I'm not sure yet if Telescope should support both independently, or if there should just be a setting to allow users to add their own categories.

Comments

Rishabh KaulRishabh Kaul
last year

Awesome. This is exactly what I was looking for.

Reply
Sacha GreifSacha Greif
4 years ago

Categories now work! It involved refactoring a good chunk of the subscriptions code, hopefully it'll be easier to understand now.

Reply
wonkanobiwonkanobi
4 years ago

This is great news! I'm going play around further to learn what I can do with it. How hard do you reckon it would be to substitute the radio buttons with an autocomplete field with prepopulated categories? I think it can get a little bit messy there if you have more than a few categories to choose from.

Reply
Sacha GreifSacha Greif
4 years ago

I don't think it would be hard at all, as long as you just pre-populate the list from the start with all categories. Any jQuery widget will do the job.

Reply
Sacha GreifSacha Greif
4 years ago

So here's the state of things. Right now I can't implement categories properly because of the way subscriptions work.

The way things are now, the subscriptions are not reactive, i.e. we set them once at launch and we're done. For categories to work, we would need the subscription themselves to be reactive, and not just their content.

The easiest way to do this would be to use nested autorun blocks, but it doesn't quite work properly just yet. You can read about this very issue here: https://github.com/meteor/meteor/issues/785

So it looks like we'll have to wait until the next Meteor version before we can have our categories, but hopefully that won't take too long :)

Reply
wonkanobiwonkanobi
4 years ago

I'm seeing categories as the last big update before mass adoption. Absolutely stellar work, mate!

Reply
Sacha GreifSacha Greif
4 years ago

We're almost there :)

Reply
willixh
4 years ago

Sacha,

Which branch to merge to access this feature - if available? Thanks

Reply
Sacha GreifSacha Greif
4 years ago

It would be branch "categories", but I should warn you it's not finished. You can assign categories but not filter posts by them yet.

Reply
TigranSloyan
4 years ago

Categories and Tags are very similar concepts in that they provide a way to group topic/objects together and provide structure to the application data. However, there is also an important distinction: Categories are supposed to provide broad structure, whereas tags deal with more narrow/specific topics. But even though tags are very specific, you still need them for various purposes -- especially for keyword search functionality.

For example say we have a Telescope based site on entrepreneurship. Topics like Lean Startup, Angel Investors, Pitching should be predefined categories, whereas things like dropbox, telescope, paul graham, etc should be tags addable by authors submitting the posts.

Reply
Ddalerka
4 years ago

Just to reiterate and reconsider:

  • What is the feasible purpose the tags should serve?
  • If the full-text search is very good (relevant), will tags be needed at all?
  • is it just for filtering and search results and/or sub-grouping?
  • anybody famliar with pros/cons of Drupal's taxonomy approach?
Reply
Sacha GreifSacha Greif
4 years ago

Well, I think Tigran made a good case for tags. I'd rather have them and let the user decide if they want to use them or not than make the decision for them anyway.

Reply
HackingChineseHackingChinese
3 years ago

What's the status of tag development? I'm hesitating if I should use Telescope or not based only on this. I think that having only a category system makes it much too hard to sort posts. I want a system where the visitor can find whatever it is they're after and a category system is simply too crude. Curious to hear if anything has happened in this area in the past year!

Reply
Sacha GreifSacha Greif
3 years ago

Well, if you want to improve the category/tag system for your needs feel free to fork the app and submit a pull request. But I don't have any big improvements to what's already there planned for the next couple months, sorry.

Reply
HackingChineseHackingChinese
3 years ago

Thank you anyway! I would gladly do this on my own if I could, but I don't have the relevant skills. I might consider hiring someone to do it, though, depending on how complicated it turns out to be. I will follow the suggestions I found around here and post in the Meteor Google group!

Reply
Sacha GreifSacha Greif
4 years ago

Good points! I'll probably start with fixed categories and add user-defined tags later on then.

Reply
TigranSloyan
4 years ago

P.S. Allowing subcategories can also be a good idea for more complicated sites.

Reply