Skip to content

[BUG] CMS4 render_model doesn't work for title attributes #7689

@vasekch

Description

@vasekch

Description

In branch develop-4 using render_model template tag (docs) throws 'PageAdmin' object has no attribute 'title_frontend_editable_fields'

Error is in file pageadmin.py

edit_fields = [field for field in raw_fields.split(",") if field in self.title_frontend_editable_fields]

It seems that in v4 BasePageAdmin class was removed, which used to have title_frontend_editable_fields = ['title', 'menu_title', 'page_title']

title_frontend_editable_fields = ['title', 'menu_title', 'page_title']

I'm not sure where this should go in v4.

Steps to reproduce

  1. Template code
        {% render_model request.current_page "page_title" as page_title %}
  1. Login to admin and click on edit page
  2. Double click the title
  3. Get pop-up with 500 error

Expected behaviour

Admin modal edit for page_title field.

Actual behaviour

500 error in modal window.

Screenshots

obrazek

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions