Questions tagged [slug]
80 questions
3
votes
3 answers
Trouble with transliteration in slug caused by hardcoded charmap in craft.js
I've been struggling with automatic slug generation in Czech language: there are letters such as "š" or "č" and Craft has a charactere map hardcoded in craft/app/resources/js/craft.js, resp. craft/app/resources/js/compressed/craft.js, which tells…
Jan Klan
- 215
- 2
- 7
3
votes
1 answer
Error: URI already taken
I've got a content type for team members but whenever I try to add one it gives me an error saying "the URI 'team' has already been taken".
I assume the URI is made from the slug, which is where I get the error.
The title of the team members is made…
Mosh
- 153
- 9
2
votes
1 answer
Querying database for slug match?
Does anyone know how to query the database to find entry data based on a slug? The only table field I see that contains slug data is in craft_entryversions.data in json format. Anyone ever tried querying for matches?
MrT
- 61
- 5
2
votes
1 answer
Use of duplicate slugs, without -1
Is there a way/workaround for using "duplicate" slugs?
Example:
shop.com/candy (category page with listing of candy's)
shop.com/about-us/candy (plain page with info about the production process etc)
Normally Craft will automatically generate for…
Romberto
- 51
- 4
2
votes
1 answer
Auto generating slug with custom fields or ID
I'm not sure I've seen this exact question, but I'm curious how I can include custom and/or auto-generated parts of a slug. It's not the URI creation, but the slug itself.
For Instance:
{slug}-{id} would turn into lorem-ipsum-dolor-sit-amet-123456…
John Johnson
- 586
- 3
- 13
1
vote
1 answer
Could not find a unique URI for this element
Suddenly, I can't add any entry to a structure.
When I try to save a record, I've got "Could not find a unique URI for this element“. Although, the slug is perfectly valid and unique, but whatever I type in the slug field, same message "Could not…
scandella
- 53
- 5
1
vote
1 answer
Possible to have a single entry page with multilingual slugs and only one index.html?
How can I be able to have a single section page (so that clients can't create another one of this) that only needs 1 index.html template across different languages AND be accessible through following different…
mdmngz
- 157
- 6