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

Multiple category support #163

Open
fluffy-critter opened this issue Feb 19, 2019 · 2 comments
Open

Multiple category support #163

fluffy-critter opened this issue Feb 19, 2019 · 2 comments
Labels
enhancement New feature or request
Milestone

Comments

@fluffy-critter
Copy link
Collaborator

fluffy-critter commented Feb 19, 2019

Expected Behavior

Sometimes it’s useful to have a single entry live inside multiple categories. To this end it would be great if an entry could have multiple category headers.

Current Behavior

If multiple categories are specified, it’s undefined as to which will be used but only one will.

Possible Solution

Change the category column to an EntryCategory table with a set-type mapping. Change the queries accordingly. Difficulty will be in generating permalinks for an entry - when an entry is loaded we can set the default category then (eg set by the view) and the permalink method can take an override.

When an entry page is requested the redirect should see if the current category is in the set first of course. And the default category if unknown is just ???

Steps to Reproduce (for bugs)

Context

@fluffy-critter
Copy link
Collaborator Author

In the case of recursive views is it okay to pretend the entry lives in its parent categories too? If an entry lives in /a/b/c/123 and /a/b/d/123 and someone requests it as /a/123 what happens?

@fluffy-critter fluffy-critter added the enhancement New feature or request label Feb 19, 2019
@fluffy-critter fluffy-critter added this to the 1.0 milestone Feb 28, 2019
@fluffy-critter fluffy-critter modified the milestones: 1.0, low priority Jun 28, 2019
@fluffy-critter
Copy link
Collaborator Author

And is there even a use case for this?

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

No branches or pull requests

1 participant