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
[BUG] CMS 4.1 slug is readonly when changing Page title #7866
Comments
We experienced the same problem. This is caused by adding the language tabs to the admin detail view of In my opinion this does not make sense, because this is an editor opened for a specific page in a specific language. Therefore offering another tab to edit the page title in another language is confusion for other users. I patched this in our own version of django-CMS, so that no language tabs are shown anymore. I would suggest that we shall remove the language tabs in the upstream branch as well. |
I believe this was fixed in the latest develop-4. Correct me if I am wrong. |
@jrief I think this is a separate problem. Switching the language tabs does result in the expected setting of read-only fields. @aacimov For a draft page, the slug should be editable, however. It is not a django admin read-only field, which would not render a widget. I find a text input widget which has the |
So far, I've failed to reproduce this on django CMS 4.1.1. @aacimov Can you try? |
Working as expected. I do have only 1 language in my current project where I am testing. I will try to reproduce in a multilingual website and let you know. |
@fsbraun I can confirm this is still not working in 4.1.1. It seems to me I am getting a little crazy since I am sure it was working when I was using the latest develop-4 version. |
@aacimov Can you verify the steps above? I tested with a brand-new project ( |
I am apparently going crazy. Tried again after upgrading PyCharm and now it works. I really don't know what to say. |
I found and fixed it :-) |
Description
On already existing page you can change the title afterwards but not its slug (it has a readonly attribute in HTML).
Steps to reproduce
Expected behaviour
You should be able to change the slug field or it should get prepopulated from the new title.
Actual behaviour
Slug field is not editable.
Additional information (CMS/Python/Django versions)
Do you want to help fix this issue?
The text was updated successfully, but these errors were encountered: