Coder Social home page Coder Social logo

[Suggestion] Post Categories about wink HOT 9 CLOSED

themsaid avatar themsaid commented on August 29, 2024 4
[Suggestion] Post Categories

from wink.

Comments (9)

Menelion avatar Menelion commented on August 29, 2024 3

@Lloople Sorry, but semantically tags are other thing than categories: category is something broad, like "travel", "gadgets", "clothing", "recipes"; tags, on the other part, are useful for searching, and one tag per post has kinda little sense.

from wink.

vimalmistry avatar vimalmistry commented on August 29, 2024 2

I like this package but I can not use because there is no category functionality.
Tag is fine. Let' me explain

I have blog I am posting things like
news, snippets, tutorials etc => this are categories or we can say type.
Tag like laravel ,vuejs ,react etc can be used in any post. but Type is only one for per post.
Post => belongs to one => Category/Type/OrList
Post => many to many => Tags

from wink.

alvarezskinner avatar alvarezskinner commented on August 29, 2024 1

What i have ended up doing, is having a hardcoded array which has the tags that i consider or use as categories, and then in a foreach loop thru the tags, display as the category the first tag that is in that array and if not call it "general" category, not "pretty", requires you to be careful when adding tags, but its the only way i can think about, as i have several tags per post and then categories.

Seems like we have gotten to use to Wordpress and its categories and tags, i believe Ghost does the same as well? πŸ˜€

from wink.

themsaid avatar themsaid commented on August 29, 2024

I think having tags is enough, you can assign one or many tags to your post :)

from wink.

Menelion avatar Menelion commented on August 29, 2024

@themsaid I'm new to Wink, so please bear with me. As for categories, they can be parts of fancy URLs like my.blog/travel/trip-to-cyprus, or: my.blog/recipes/my-favorite-soup, where travel and recipes are category slugs.

from wink.

Lloople avatar Lloople commented on August 29, 2024

You can do that with tags as well. But be sure to assign just one tag per post or you would end up with duplicate content for SEO

from wink.

themsaid avatar themsaid commented on August 29, 2024

from wink.

devonzara avatar devonzara commented on August 29, 2024

I agree that tags are different than categories, but I don't think categories need to be implemented as a separate feature.

Instead, we could make use of the existing tag system by simply adding an is_category or is_topic boolean to each tag; and for those who wish to nest them, you could add a parent_id. I think this would be a simple solution that doesn't bloat Wink but acts as a compromise for those who do wish to have that added capability.

Until then, I too have hard-coded an array of tag slugs to act as categories for navigational purposes while retaining the ability to assign multiple tags to a post. Definitely not an ideal situation, but it suffices for the time being.

from wink.

connecteev avatar connecteev commented on August 29, 2024

Agreed!

from wink.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.