Skip to main content

Questions tagged [entry-slug]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
32 views

Can't reference custom field in Section's Entry URI Format

Craft 3.7.33 I've got a channel Section called "Stories", and a plain text custom field, subTitle, which I want to use in the Entry URI Format. Right now, that is stories/{slug}. When I ...
Sandwich's user avatar
  • 636
2 votes
1 answer
227 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, ...
emilie zawadzki's user avatar
1 vote
1 answer
122 views

Updating an entry slug while viewing the entry on the front-end

I'm currently working on an app and functionality as part of the app allows users to edit entries via a front-end form. As part of editing the entry, users can update the entry title (and the slug ...
Kieron Keenan's user avatar
1 vote
1 answer
115 views

Using a language cookie with Craft

I work on a large, complex site that uses a cookie banner to store a language cookie. We have 11 different languages on the site. We use craft for only one part of our site, with our base URL for ...
Xarlos's user avatar
  • 11
1 vote
1 answer
498 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, ...
theAdhocracy's user avatar
1 vote
1 answer
55 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" ...
Frederico Leonardo's user avatar
0 votes
0 answers
192 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 ...
Lisa's user avatar
  • 1
2 votes
1 answer
572 views

Entry UrI Format and ternary operators

I tried setting up a URL format that takes the hierarchy of a structure into account, but deals with the magic __home__ slug transparently. So I did this: {parent.uri == '__home__' ? '' : parent....
jishi's user avatar
  • 273
1 vote
2 answers
860 views

How to remove something from the slug/url

I got entries in the folder /cms/web/videos/ and the url display this: http://domainname.com/cms/web/videos/barco-auro. I want it to be this: http://domainname.com/videos/barco-auro. How do I create ...
Sebastiaan Schillebeeckx's user avatar
1 vote
1 answer
455 views

Unique URI error

I am getting the following error when trying to save a structured entry: Could not generate a unique URI based on the URI format. Title of entry is: Hells Gate Mud Bath & Spa Slug: hells-gate-...
Pedro's user avatar
  • 171
1 vote
1 answer
587 views

_entry.twig isn't reading css while index does

This is the template im using and the index of the file is taking the css and printing it nicely however, the _entry.twig is only loading text, please check out the screenshots. Below is the index of ...
Shabaz Khan's user avatar
2 votes
1 answer
160 views

How to set index page as parent of a structure

I don't know if it's possible, but what I would like is to have a structure with 3 levels linked to a single entry that would act as the index. The problem is the examples I've seen are only with 1 ...
Tyrannogina regina's user avatar
1 vote
1 answer
153 views

Same content on different slugs

I hope someone can help me to understand this. I have a Channel called eg. "My channel". In that channel i have two entries: Post 1 and Post 2. Those two entries have different titles and content. ...
Joe's user avatar
  • 79
1 vote
0 answers
51 views

Use sequential numbers for entry slug

I have a channel where I need each entry's URI include the year and then a sequential number, like this: 2018/1/ 2018/2/ 2018/3/ 2019/4/ I have no problem getting the year, but is there a way to get ...
artmem's user avatar
  • 1,022
1 vote
1 answer
1k views

Search using Slug as query parameter

I created Search that uses entry slug, but it fails if the slug has more than one dash "-" in it. Has anyone come across this and/or have any ideas for getting around it? I need to use the slug ...
Roi Agneta's user avatar
  • 1,463
1 vote
1 answer
184 views

Channel entry: Slug from field pattern?

I have defined an entry for a channel, let's say of persons, to have some fields, let's say firstname, lastname and bio, but no title. When I created the first real entry, craft complained it had no ...
Urs's user avatar
  • 639
1 vote
1 answer
314 views

Dynamic Navigation with Condition to check slug

I'm trying to achieve one pretty simple thing, but putting it into my dynamic nav is making it a little difficult. I want to have a little number of the total amount of entries in my channel "listings"...
mateostabio's user avatar
1 vote
1 answer
694 views

Unable to update slug in Craft 3 for single enteries

I have created some entries for type single but now I am not able to update their slug even I have updated the title
Kantesh Hotchandani's user avatar
1 vote
1 answer
479 views

Bulk regenerate slugs

I’ve already got a ton of content put in by the client, and there’s quite a bit of accented characters (é, à, ...) in the titles, and thus also in the slugs where they get url encoded, which my client ...
mrsmn's user avatar
  • 731
1 vote
1 answer
688 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 ...
Clive Portman's user avatar
2 votes
1 answer
63 views

Receive all used slugs

I want to create a Excel file with all used slugs in my Craft website. I've searched for a plugin but without succes. I also tried to find a useful table in the Craft database, also without succes. ...
Mr. Sam's user avatar
  • 287
0 votes
1 answer
71 views

Can structure entries have their own entries?

I have a bunch of categories within a section on my website, but I want each category item within that section to be able to have an additional slug. For example: mywebsite.com/categories/category/...
Amy's user avatar
  • 407
1 vote
1 answer
2k views

How to change the Slug in case of copied entries?

I have a channel, where entries do NOT have their own URLs. But a slug is created automatically every time I save an entry. And I have auto-generated titles. Often I save an existing entry as a new ...
MISC's user avatar
  • 1,019
0 votes
2 answers
2k views

How can I force a slug to update on save

I'm using the auto generate entry titles from custom fields option, eg {eventVenue}-{seriesName}-{eventDate} But sometimes the eventVenue isn't known at the time of creating the entry, so you can ...
Paul Frost's user avatar
  • 1,060