Questions tagged [slug]
The slug tag has no summary.
81 questions
0 votes
1 answer
57 views
Possible to add the created or post dates to the slug?
We are looking to concatenate the post date/created date with the title in the slug. Is it possible to make changes to the slug in this way?
1 vote
1 answer
291 views
Could not generate a unique URI based on the URI format
We have a section of products. Their title is always the raw ISBN Number. I think this makes it hard for craft to auto increment them. Example: But this is not the main problem. Since some update, ...
1 vote
1 answer
95 views
Slug: German "Umlauts" (beyond limitAutoSlugsToAscii) // db storage
Is there a chance to avoid German "Umlauts" (äöüß) for the slug? I'm aware of this: https://craftcms.com/docs/4.x/config/general.html#limitautoslugstoascii But the editors can edit the slug ...
1 vote
2 answers
139 views
Product URL missing category slug on production site
I upgraded a Craft CMS 3 site to version 4. The Product URI Format for my products look like this: Before I re-save a product, the URL displays correctly the way it looked in Craft 3: But when I re-...
1 vote
1 answer
566 views
How do I generate a slug based on another field?
Is it possible to somehow generate a SLUG not from the title field, but, for example, from your own created field? Example: A website for analyzing complex mathematical solutions. Each entry in the ...
1 vote
1 answer
305 views
How to get list of pages where the asset is used?
I have a list of assets link with assets id. eg: 23453 => 'https://some_cool_domain/assets/file_name.jpg' I need to find all the pages where this asset is being used. I am new to craftcms. I tried ...
2 votes
1 answer
312 views
Export related entries by slug - not id
I am using the included exporter tools in Craft. I am trying to export content from a preprod to a production env. When I export content from preprod, I noticed that related element (entries, ...
1 vote
1 answer
288 views
DOM hash url in entry slug
I try to set the slug of an entry to a url using a hash. https://url.spec.whatwg.org/#dom-url-hash However it seems not possible by default, craftcms changes the hash to a dash. I need that as ...
1 vote
1 answer
601 views
Special Characters in Slugs
I need to output a slug that will include characters like < and |. I realise that these can't be literal, so I had hoped to be able to swap them out for the URL encoded equivalents. For example, ...
1 vote
1 answer
200 views
nested sections
how can i achieve the following result? i have a structured section called products like /hardware/apple/iPhone which gets the template /templates/productpage.twig now i need need to load a different ...
1 vote
1 answer
95 views
Error accessing entry when title has special characters
I came across a weird bug with a title containing a "%" character not converting into a proper slug. So the website editor created the title "Berlenga: a 100% sustainable island" ...
0 votes
0 answers
246 views
Internal Server Error when updating slug
I'm getting an internal server error when I try to update the my entry's slug on prod, but not on dev or locally. It's happening across entries, it doesn't seem to be specific to a certain entry. Any ...
1 vote
1 answer
110 views
Can slug and title changes be propagated to multiple sites?
I'm noticing that if I change the title or the slug of an entry after creation, that change isn't propagated to my other Craft sites. Is there a way to propagate title and slug like other fields?
0 votes
0 answers
344 views
How to allow multiple entries to have the same slug?
Users create an account and their profile (domain.com/userName) is a template pulling info from craft users. Each user can create entries, all stored in a Structure section (domain.com/userName/...
0 votes
0 answers
93 views
Commerce product slug creates duplicates - can they also be autogenerated?
The slug for products is generated from the Title, for example in my case "Green Shirt". Seems like these are not unique, and if I create a product later on, also called "Green Shirt", they both get "...