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

Custom template does not render in latest entries, it defaults to entry_list.html #66

Open
khrizo opened this issue Apr 30, 2018 · 0 comments

Comments

@khrizo
Copy link

khrizo commented Apr 30, 2018

django 1.11.12
django cms 3.5.xx

CMSPLUGIN_ZINNIA_TEMPLATES = [
('cmsplugin_zinnia/entry_custom.html', 'Entry custom'),
]

in class CMSLatestEntriesPlugin(ZinniaCMSPluginBase): I added

def get_render_template(self, context, instance, placeholder):
    return instance.template_to_render or 'cmsplugin_zinnia/entry_list.html'

seems to be working.

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