Skip to content

CarouselSlidePlugin refers to wrong "slide.html" Template #313

@invi84

Description

@invi84

With 2.0.0 and and changes in regards to #220, the following line breaks the retrieval of the correct slide.html Template for the CarouselSlidePlugin:

https://github.com/django-cms/djangocms-frontend/blame/2.0.0/djangocms_frontend/contrib/carousel/cms_plugins.py#L89

instance.parent seems to refer to the CMSPlugin model which does not have a "template" field (should refer to CarouselPlugin).

Therefore get_plugin_template() falls back to first_choice() and retrieves the wrong (first) slide.html, if you have multiple Carousel Templates defined in DJANGOCMS_FRONTEND_CAROUSEL_TEMPLATES.

Downgrading to 1.3.5 fixes the behaviour.

(django-cms==4.1.9)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions