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

auto add content items. #182

Closed
wants to merge 1 commit into from
Closed

Conversation

atkinson
Copy link

How to use:

Change the setting:

FIBER_AUTO_CREATE_CONTENT_ITEMS = True

Then for every show_content tag in your template:

{% show_content "some-slug" %}.

... fiber will auto create a placeholder ContentItem object.

@nvandijk
Copy link
Contributor

Hi Atkinson,
Thanks for your pull request. I have manually merge your commit in the dev branch (9cfe26c). I removed the extra function call:

return show_content(context, content_item_name)

This caused an extra sql query when the ContentItem was created

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

Successfully merging this pull request may close these issues.

3 participants