Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: Categories/Subcategories for Blog posts #2

Closed
connecteev opened this issue Nov 23, 2014 · 3 comments
Closed

Request: Categories/Subcategories for Blog posts #2

connecteev opened this issue Nov 23, 2014 · 3 comments

Comments

@connecteev
Copy link

Hi,

Love the elegance of larabase so far. I would love to see nested categories (categories and subcategories) in the blog, both for "clean" URLs for the end-user, and for SEO. Most blogs have this feature these days.

Details:

  • Categorizing Posts: When adding / editing a blog post, you can select the category (or sub-category) the post belongs to. (Ideally, a blog post can belong to multiple sub-categories, with a "default" subcategory tree. The blog URL would be based on the default sub-category tree.)
  • The front-end (blog URL) would use: /{category1}/{sub-category2}/{sub-sub-category3}/article1.htm
    Example: /getting-pregnant/trying-to-conceive/article1.htm /getting-pregnant/trying-to-conceive/article2.htm
    Optional / Advanced feature: The Back end could allow the admin to select URLs that are either flat, or nested. If 'flat' is selected for the URL structure, the front-end for the 3 examples above would have URLs like: /trying-to-conceive/article1.htm /trying-to-conceive/article2.htm In general: /{sub-sub-category3}/article1.htm
  • Managing Categories: A page in the admin lets you manage categories / subcategories...a hierarchical list of categories (so, you can add sub-categories to the tree). Nice to have: You can drag/drop categories and subcategories anywhere in the tree.
    (Step Request: Social Login w/ FaceBook, Twitter, Google #3 is nice to haves a workaround, the admin could add the categories and subcategories to the database table directly)

The schema and sample data for categories would look something like this:
CREATE TABLE categories ( id int(10) unsigned NOT NULL AUTO_INCREMENT, id_parent int(10) unsigned DEFAULT NULL, name varchar(63) COLLATE utf8_unicode_ci NOT NULL, url varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, is_featured tinyint(1) NOT NULL DEFAULT '0', is_active tinyint(1) NOT NULL DEFAULT '1', PRIMARY KEY (id) ) ENGINE=InnoDB AUTO_INCREMENT=132 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

Hope this isn't too much information :) This would definitely push the project forward.

Best,
Kunal

@connecteev
Copy link
Author

See some old screenshots from wordpress here: https://wordpress.org/plugins/hierarchical-link-categories/screenshots/

@chiraggude
Copy link
Owner

Closing this issue as blog posts can be categorized and tagged.

@connecteev
Copy link
Author

Dont think they can be added to multiple categories..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants