Skip to main content

Questions tagged [tag]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
2 answers
76 views

Recreate {% cache %} content without clearing first

We have a setup where we use Craft's {% cache %} tag to improve performance of certain computing-cost-intensive pages. The expected way to do this is by using the {% cache %} tage and probably improve ...
Matthias Redl-Mann's user avatar
0 votes
0 answers
32 views

How to build front-end dropdown to sort images with {% tag %} function?

how can I build a front-end HTML dropdown selector with the "tag" function in CraftCMS 4.x? I'd like the user to be able to sort a couple of masonry images that are associated with an entry ...
MvVijfeijken's user avatar
0 votes
1 answer
122 views

Get entries where tag = value

Let's say I have a tag group with handle genre. I can make an entry contain information about this tag by creating a field of type tag that uses this group. So I would have a field with handle ...
Álvaro Franz's user avatar
3 votes
1 answer
37 views

Setting valueless boolean attributes with the tag function

When using the tag function, how does one handle valueless attributes which could also be null? For example, it's great we can do… {% set idVar = 'idstring' %} {% set nameVar = 'namestring' %} {% ...
Jonathan Schofield's user avatar
0 votes
0 answers
155 views

How to handle two Redactor fields in one entry page in Craft 3.3?

I have an entry for blogs page. It contains 2 Redactor fields named content and body. I upgraded Craft 2 to Craft 3.3. Then the old editor changed to Redactor plugin, but that Redactor worked for body ...
Rakhi Vijayan's user avatar
1 vote
1 answer
665 views

Is it possible to include category slugs in the entry URL format?

Is it possible to include category or tag slug in the entry URL format? Would you please let me know the tags that make it, if possible?
Hiromi Ando's user avatar
2 votes
1 answer
249 views

List entries without specific tag

I am trying to output a list of entries from a channel section that DO NOT have a certain tag. I am able to output the entries that have the tag assigned by setting the tag as a variable and using ...
Tad Ward's user avatar
  • 317
2 votes
1 answer
68 views

Populating TAG page when using the kebab filter

I have a page that displays entries based on a specific tag. It works well until I apply the kebab filter. Here's my link to the page: {% for tag in tag %} <li><a href="{{ siteUrl }}...
Ricardo Henriquez's user avatar
2 votes
2 answers
2k views

How to filter entries based on Tags

I am working on a site that requires a filter option based on tags. Each entry will have two sets of tags (e.g., colors and shapes) {% for tag in craft.tags.group('colorTag') %} {% for tag in craft....
Ricardo Henriquez's user avatar
2 votes
1 answer
198 views

Best method to handle %20 in tag URLs with multiple words

On my page of all tags, it works great except for tags that have more than one word. The URL is replacing the spaces with %20 as one would expect. http://www.colorcomputergames.com/tags/ I tried ...
DevServe's user avatar
  • 303
2 votes
1 answer
137 views

Predefined Tags For Editors

Is it possible to set up predefined tags in craft which can then be used as either a select list or checkbox selection by editors, so as to only give them the option of adding preset tags as opposed ...
Lettie's user avatar
  • 2,033
0 votes
1 answer
240 views

Display tag related to entry in current locale

I've got this code snippet I'm working with and I can't get tags pulled out for related entry in current locale. Maybe worth to mention, that tags is matrix field. {% set entries = craft.entries %...
Dominik Krulak's user avatar
5 votes
1 answer
400 views

How do I force a 301 http status code using the redirect tag?

Using Craft's redirect template tag creates a redirect with a 302 (Moved Temporarily) http status code. How can I force a 301 (Moved Permanently) status code?
Ben Croker's user avatar
  • 7,526