Skip to main content
3 votes
Accepted

Syntax for URL route instead of using url parameter

Using routes You can define a route like this in your config/routes.php: return [ '<country:{slug}>/<city:{slug}>/<productType:{slug}>' => ['template' => '_category'], ]; ...
MoritzLost's user avatar
  • 11.5k
2 votes

Craft 5 Matrix Field have URL?

Yes, you can do that in multiple ways. You can create a section and add the entry type for your staff members to it, then set the URI setting of the section to something like /staff/{slug}. ...
MoritzLost's user avatar
  • 11.5k
1 vote
Accepted

Running Craft on a subpath

Das Problem lag an der Craft CMS Version < 4.8.1 / 4.8.2. Konnte mit 4.8.3 geloest werden.
Leonardo's user avatar
  • 471
1 vote

Redirect url validation failure

I got this working. I refactored my logic to use craft's {{ redirectInput(urlParam) }} instead of writing out my redirect param that seemed to properly generate the hashed return URL and pass the ...
justinholtweb's user avatar
1 vote

Element-API: Access the first url of an asset array

I was wondering this myself, and I figured there had to be an easier built-in Craft solution rather than using pure PHP like HendrikEng suggested, and it turns out there is! Just use $entry->...
kmgdev's user avatar
  • 1,199

Only top scored, non community-wiki answers of a minimum length are eligible