Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 167
1 vote
Accepted

Possible to have a single entry page with multilingual slugs and only one index.html?

/craft'; // Tell Craft to serve the FRENCH content define('CRAFT_LOCALE', 'fr'); With the single, you set the slug yourself within the section's settings (one slug for each locale that section is available …
Clive Portman's user avatar
1 vote
1 answer
703 views

Do slugs absolutely have to be unique?

I know Craft appends slugs with -1 if they already exist but I'm working on an app where the addition makes things awkward for us (we have to match the slug to a third-party service). … I was under the impression they had to be unique but it seems you can edit an entry and change the slug to be the same as one that already exists. …
Clive Portman's user avatar
2 votes
Accepted

Advanced routing

it to get the ID like so: {% set segment = craft.request.lastSegment | split('-') %} {% set id = segment[0] %} {% set entry = craft.entries.id(id).first %} That should work for either of your {id}-{slug … Though in practice I'd probably fetch the entry using the slug and not the ID as I think it looks prettier and I don't like IDs in URLs. …
Clive Portman's user avatar