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

Conditions to be published #3

Open
brenes opened this issue Sep 20, 2014 · 0 comments
Open

Conditions to be published #3

brenes opened this issue Sep 20, 2014 · 0 comments

Comments

@brenes
Copy link
Member

brenes commented Sep 20, 2014

Right now the menus in this engine are static and they have no reason to not be published if they have their draft attribute to false.

But there are some scenarios where publishing one menu item depends on external information (e.g. a menu item attahet to a product category may be not shown if the category has no available products).

It would be great to have a mechanism to implement this conditionals, although there are cache considerations that must be taken into account: What about the whole leaves_with_draft? scope to avoid queries? What the Rails fragment cache? Should we implement some expiring mechanism?

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

1 participant