Questions tagged [tag]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3 votes
1 answer
32 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' %} {% ...
user avatar
0 votes
0 answers
85 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 ...
user avatar
1 vote
1 answer
573 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?
user avatar
2 votes
1 answer
238 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 ...
user avatar
  • 317
2 votes
1 answer
66 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 }}...
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....
user avatar
2 votes
1 answer
168 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 ...
user avatar
  • 303
2 votes
1 answer
126 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 ...
user avatar
  • 2,023
0 votes
1 answer
233 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 %...
user avatar
5 votes
1 answer
261 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?
user avatar
  • 6,341