-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Setting folder collections path overrides slug value #4092
Comments
I am also facing similar issue. Here is my configuration.
When I publish an article, it creates a file under the folder as
|
Hi @kundanjha101, your issue seems different as it doesn't include the relation widget. If that doesn't work, please open a new issue. |
Yes. The above configuration works for me. |
I've the same issue as @hursey013, when accessing the slug value in a relation field. It's not the end of the world, and I can understand the reason why it works like that, but it's inconsistent with the rest of the application and requires messy logic that shouldn't be necessary. Really, the whole slug/file-name thing in the CMS is bit clumsy, but I notice in other issues that there's been considerable discussion about it. |
Hi, My issue is that if I use the following configuration for the slug slug: "{{speciality}}/{{proceduresCategories}}/{{procedure}}" It creates the correct folders and filename but the CMS front-end is unable to read the collection content. Content is created but you cannot go back to edit the content as it not listed. Using the path configuration like path: "{{speciality}}/{{proceduresCategories}}/{{procedure}}" the second folder, proceduresCategories, is not created at all. Very frustrating, any idea how to get around this issue. |
@hursey013 I'm facing the exact same issue. Did you find a workaround? EDIT: As a temporary fix, I changed the relation to a select widget using fixed options with the expected values (you have to update the list when the collection changes). Far from good a solution, but it's something. |
Describe the bug
When using the folder collections path option, the value of
slug
becomes that ofpath
rather than just the slugified version oftitle
oridentifier_field
.To Reproduce
path
topath: "{{slug}}/_index"
title
valueField: {{slug}}
Expected behavior
The value of of the relation widget to be just the slugified version of
title
, instead it's the entire path as defined inpath
(my-title-slug/_index
).Screenshots
Applicable Versions:
CMS configuration
The text was updated successfully, but these errors were encountered: