The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [tags]

Tags are folksonomies for your entries, users, and assets.

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

Craft Query by Category and Tag

I am trying to find the last four Channel entries (Named: Post) with a Category relatedTo "Support" (id: 458) AND Tag relatedTo: "Widget1" (id: 469) I've had success using Category or Tag but not both:...
1
vote
0answers
36 views

get tags related to entry

I'm working on Craft plugin which should find entries with special tags. In my action I have a string: $entries = Entry::find()->section('Projects')->type(['Projects']); and it returns all ...
0
votes
0answers
10 views

Can I link to a tag from Redactor?

Title says it all. I have tags that I use to relate entries to each other. When typing inside a Redactor field I would like to be able to write something like #engineering and have that tag become a ...
0
votes
0answers
10 views

filter tags by level

I have a tag field in a section. We'd like to filter the tags in a tag cloud according to what level they are in - so all the children or siblings of the current entry will show up, but not all tags. ...
1
vote
1answer
59 views

Filter entries by tags

Still very new to Craft but just can't figure this problem out, it's a level above me at the moment. I have an FAQ page as a 'single' that I would like to display all entries from a channel by ...
1
vote
1answer
168 views

Product Filtering with Tags

I've built a product filtering system using tags and currently have 2 available tag groups under different fields. Size and Type Currently if I select 1 tag from both size and type, it shows all ...
0
votes
1answer
58 views

How to add tags in craft CMS 3

This is my first template that im working on in craft cms3, i've managed to make the most of the homepage and other tabs of website dynamic using the CMS, but I can't figure out how do I make tags and ...
1
vote
2answers
149 views

Filtering by categories AND tags with full match

We're trying to filter by categories AND tags in the one form. However can't seem to get things working as we would like. Essentially, we have a form that pulls in the tags and allows multiple ...
4
votes
2answers
273 views

How to delete tags in Craft CMS 3

I want to delete some of the tags that are entered in the system. Since there is no way to do that in Control Panel, and there is not a valid plugin that can do this (know that from my previous ...
2
votes
2answers
227 views

Still not able to manage tags in Craft 3?

I have page where I display some items and there are filters by tag. So I make a list of all tags that are created. Then when the user click on some of the tag, he see only the product with that tag. ...
1
vote
1answer
12 views

Editing a tag not reflecting on all records.. kindof

We have hundreds of entries with the improperly spelled tag "accessibilty" (the third i is missing). A search for "accessibility" will not find them (spelled correctly). I edited the tag on a record ...
2
votes
2answers
172 views

How do I hide tags in a category that have no entries?

Entries can have one of two categories and one tag. (People = entries | program = categories | year = tag) On the pages I'd like to display entries related to the category and grouped by tag. ...
2
votes
1answer
85 views

Add Tags to a Newly Created Entry With PHP in Craft 3

I am able to successfully create new entries with PHP when I am using basic field values that are Rich Text or Plain Text fields, but am unsure how to add Tags to an entry. So my entry already has a ...
3
votes
1answer
148 views

Where are tags stored in the database?

Seeing as there currently isn't a way of deleting / managing tags in Craft3, I was wondering if someone could point me to where in the database these tags are stored so I can delete them manually. ...
0
votes
1answer
40 views

My `for` loop has fallen…and it can't get up

I want my <ul> to show a single tag representing all "active" entries ( "active" using a custom lightswitch field in the entry: fellowStatus. Each tag is a year (e.g. 2014, 2010, etc) E.g. if ...
1
vote
1answer
287 views

SEO titles/descriptions for tags and archive pages

I have a blog setup with a Categories, Archive and Tags. In my _layout template I've been using the following to pull in SEO titles from fields, or Page/Category Titles is that's not been defined. {%...
1
vote
1answer
65 views

Ajax - Create tag with custom ID programatically

I'm trying to create an jQuery/Ajax script to import data from a Wordpress API service and want to import the WP tags into my database. Everything works as expected when I loop through the data and ...
1
vote
1answer
232 views

How can I add programmatically a Tag after SAVE_ON event in case of Assets types

We have to update the Asset after the SAVE_ON event, and the Craft::$app->elements->saveElement($asset); Not seems to be working (it is getting timed out). So what is the best pratice to ...
0
votes
1answer
167 views

Get Entries That Match ALL of the tags specified

I have a search page where a user can check about 20 different checkboxes, where these checkboxes all relate to tags I have set up inside of Craft. I would like to perform the following search query: ...
1
vote
2answers
457 views

Help with tags input field on a front-end entry form

I need to make a "keywords" field on a front-end entry form that can create tags in the cms (Craft 2). I am fully aware of existing tickets regarding this issue like Brandon Kelly's but they're a ...
1
vote
1answer
34 views

Tag Localization: how to create a tag without translation fallback version?

I'm dealing with tag localization on an English/Spanish site and have figured out that if I create a new tag, both En and Es elements are created by default, which would be O.K. if I never had to ...
1
vote
1answer
68 views

Save an entry with tags

I have a project that the user choose a tag (tags are already created) and save the information. I try save a entry which has a tag field, all the stuff saves, but the tags don't. I try search ...
2
votes
1answer
62 views

Multiple Tag Groups/Sets for separate channels

I have two separate channel types, let's say "News" and "Reviews" and each of those can have tags. Is it possible to have separate tags for each of those? So News has it's own set of tags, that can't ...
1
vote
1answer
36 views

Search for non-existing tags shows all entries

I have 3 groups of tags that redirect to the same template. tags/index.html. All the routing and linking those tags to their group page works well. <a href="{{ siteUrl }}taggroup/{{ tag.slug }}" ...
1
vote
1answer
44 views

Trying to set a default asset folder using Craft tags

I'm trying to set a default asset folder for a field, as per the Craft docs on Dynamic Subfolder Paths. I'm trying to set the asset path for each blog article to be /our-journal/{date}/{slug}, where ...
4
votes
1answer
90 views

Sort entries by best match to multiple categories

I've got a channel where entries will be tagged with multiple categories. I want to use those categories to show related content for each entry. So if an entry has cat_a, cat_b and cat_c, I want to ...
1
vote
1answer
200 views

How to get a proper tag Url

I use the code "Link to the Tag URLs" from the following article: https://craftcms.com/support/tag-urls {% if entry.tags | length %} <h3>This entry is tagged with:</h3> <ul> {% ...
3
votes
1answer
116 views

Difference between {% includeCssFile %} or including it with <link>

I go a simple question. I wanted to start with building my craft template from html and changed all css and tags to to equivalent {% includeCssFile %} or {% includeJsFile %}. The page was working ...
1
vote
1answer
185 views

Get random entry tagged with

Looking to get a random entry from my database which is tagged with 'featured', is this possible at all? I've seen randomised by just the entry loop but nothing else.
1
vote
1answer
42 views

Craft ordering tags by 'name'

I've got a problem with some tasks. Craft tells me 'Deleting Stale Template Caches Failed' multiple times. When I look in the Deprecated Warnings, it tells me two things: Ordering tags by ‘name’ has ...
1
vote
1answer
264 views

How do I retrieve tags and tag data for an entry in Element API?

In Element API v1, I am setting up an endpoint that is trying to expose a news entry including the tags (title, id, slug) associated with it. Thought it could be set up similarly to how you can ...
1
vote
1answer
91 views

How do I add the Categories and tags related to each entry?

This is my basic entry layout and I just want to display the linked category and tag names as indicated… <div class="posts sidemeta"> {% for entry in craft.entries.section('news').find() %} <...
1
vote
1answer
61 views

Is it possible to allow a user choose tags in admin panel using checkboxes?

The system I'm building requires a flexible taxonomy, where users should be able to add new taxonomy stuff to entries really easy and freely as soon as the need arises. So tags seem to work best for ...
1
vote
1answer
58 views

How do I get tags to only display on posts that have that tag?

I’m trying to add tags to my blog posts. I’ve created a tags group with the handle ‘default’. In Setting/Fields I’ve got a field called bodyElements which is setup as a matrix, and within ...
1
vote
0answers
55 views

Plugins for Tags

Is there any plugin for Tag that will be like: Text field in a front-end entry form where user can add multiple tags. After pressing the save button, the plugin should: check for every tag, whether ...
4
votes
2answers
216 views

Most related articles

I am using the normal relatedTo property to find related articles, but I have an issue which is: craft.entries.section('section').relatedTo("tags").id('not ' ~ entry.id).limit(3) Lets say THIS ...
2
votes
1answer
166 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 ...
2
votes
1answer
37 views

When posting entries, how do I post tags as well as the title and url?

I'm trying to create a post where in the entry loop I can also post tags. <a href="URL">TITLE</a> TAGS But in my current understanding there's no way to get the post's tags where I'd ...
1
vote
1answer
22 views

Can I move existing tags, which are currently in a global tag group, to new the new tag groups I've set up?

I've set up new tag groups to help organise the c300b tags we have set up. How do I move the existing tags, which are already in use, to the new tag groups?
1
vote
1answer
189 views

Creating a smart restaurant menu

I'm building a website for a restaurant and I wanted to make the back-end as easy to use as possible. So I thought of a system like this. Allergens - Contains name and icon Ingredients - Contains ...
2
votes
1answer
259 views

Find related entries with the same tags

I would like to retrieve related entries that have the same tags, not just one similar tag, but all of them. At the moment I do something like: {% set tags = entry.tagActualite %} {% set ...
1
vote
1answer
112 views

Tagging all assets in a sub directory

I'm building a project with a lot of photo assets organized into sub directories of the main photos asset source. I'm trying to add tags to these assets so they are searchable when I try to use them ...
1
vote
1answer
275 views

How to display number of entries for a tag and not display if no entries?

I want to be able to display the number of entries that have a tag. Like: Fruit (9) Vegetables (4) I also want to avoid displaying any tags without any related entries. My code right now looks like ...
2
votes
1answer
133 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 ...
0
votes
1answer
487 views

Confused about tags

I'm tried to following the how-to implement tags but can't see to get it to work. The how-to: https://craftcms.com/support/tag-urls I created a new route, and in the URI field, I entered: tags/( ‘...
2
votes
1answer
363 views

Display entries that meet multiple tag params

how would I go about setting up a route and twig template to filter by multiple tags? Example URL scheme: example.com/tags/tag1/tag2/tag3 where tag1, tag2 and tag3 are tags defined in a tag field ...
0
votes
2answers
37 views

I can't get Tags and Archive pages to appear

Necessary disclaimer. Web design dilettante, so I ll probably have trouble following your answers if they get too technical. I am building a blog. I am am trying to use tags bellow posts and when ...
2
votes
1answer
230 views

Tag overview in the Craft backend

Is there a possibility or plugin that I can see all my tags that I am using on my Craft page? So that I can edit the tags when I, for example, wrote some tags wrong or just want to delete some and so ...
1
vote
1answer
378 views

How do I UNLOCK my account?

My account is locked and I cant figure out how to unlock it. I tried resetting the password, but have yet to receive an email with a new one. Is there an alternative way to logging back on? I recently ...
1
vote
1answer
139 views

Tags via AJAX actionTrigger

I pretty much followed this and the answer there really helped me a lot so far. Currently I'm stuck with either a 500 (Internal Server Error) or a 400 (Bad Request) Error. My craft/storage/runtime/...