core icon indicating copy to clipboard operation
core copied to clipboard

Allow setcontent with the where keyword to accept a locale parameter for slugs.

Open I-Valchev opened this issue 2 years ago • 1 comments

{% setcontent mypage = "pages" where {locale: "mylocale", slug: "myslug"} %} It is intended to work like this: it searches for a slug match in the language set by the locale parameter and returns the record if it exists in that locale.

From our Kampsite

I-Valchev avatar Aug 27 '21 07:08 I-Valchev

When I submitted this, my intend was to avoid translation conflicts by for example translated slugs in pages and create an alternate access method to the record ID. I am open to different approaches if you already have something like this on the road somewhere.

Puddingboy avatar Sep 16 '21 07:09 Puddingboy