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

DeerTrees: Upgrade blocks system #5

Closed
lupinia opened this issue Sep 17, 2016 · 1 comment
Closed

DeerTrees: Upgrade blocks system #5

lupinia opened this issue Sep 17, 2016 · 1 comment

Comments

@lupinia
Copy link
Owner

lupinia commented Sep 17, 2016

The initial blocks/layout system was a reasonable first step, and it does an ok job for most cases; different types of content (leaves) have priority ratings, and different priorities based on whether they'll be in the main content area or the sidebar. However, the number of edge-cases created by this system has significantly increased the complexity; there's a special flag indicating whether the current view is the homepage, categories and tags have to have a "content priority" setting that overrides the defaults (which can cause more problems than it solves), and I still have no particularly good way of handling special cases like /photo (which should primarily show an array of all highlighted images, not just the ones in child/descendant categories).

I'm still determining what the ideal solution would look like, but I suspect it will involve replacing the content-priority setting with an option to define custom functions/classes that the category and tag views can include. I want to keep the system flexible enough to be content-agnostic, because the "folders that can contain files of any type" paradigm is very important to me, and the DeerTrees app was created to be something that any project could potentially incorporate.

Regardless, this is in the works, and may involve a rebuild of the DeerTrees app, but it's definitely an area that's not quite where I want it to be, and I feel I can do better.

@lupinia lupinia self-assigned this Sep 17, 2016
@lupinia lupinia removed their assignment Sep 17, 2016
@lupinia lupinia closed this as completed Sep 17, 2016
@lupinia lupinia reopened this Sep 17, 2016
lupinia added a commit that referenced this issue Feb 3, 2017
…he Blocks system used in the DeerTrees views. Full details here: http://www.lupinia.net/code/projects/django/deertrees.htm  This change additionally implements a management command to choose and set a thumbnail for categories that need one.
@lupinia
Copy link
Owner Author

lupinia commented Feb 3, 2017

This has been implemented.

@lupinia lupinia closed this as completed Feb 3, 2017
@lupinia lupinia self-assigned this May 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant