Questions tagged [tags]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
214 views

Is there a way to limit output of Tags related to an entry?

I've checked it with documentation but, tag model doesn't have limit() property as entries have. Wondering, If there is any way around to achieve it?
2
votes
2answers
581 views

Find Related Entries with Identical Tags

I'm trying to show related entries for a single item. I want to look up a specific tag(s), and search for any entries that share the same tag(s) then display those related items. I've read through ...
1
vote
2answers
722 views

Tag: Field Layout

I am managing Tags in Craft. For example, I have a tag called Theme with entries Light, Dark, Grayscale, etc. I want to be able to list all tag entries and then toggle their status on/off. I have ...
1
vote
1answer
821 views

Output section and tag name with URL in entry loop

I'm trying to loop through entries in specific sections and output Entry's: - URL - Title - Type - Asset's image - asset's URL - Section's name - Section's URL - Tag's ...
2
votes
3answers
735 views

Nested Matrix functionality for one block type using Tags

I have an entry with two matrix fields and I want to use relations between them using Tags to create a fake nested Matrix functionality for one block type. The "main" matrix field is for creating a ...
1
vote
1answer
158 views

Best way to create tags under new EntryModel?

As best I can tell entries have to be created, tags have to be created, a relationship created and then an update to the original entry. Is this correct or is there a simpler way to do this? There is ...
1
vote
4answers
1k views

Problem with accents in tags & URL

I'm having a problem getting entries related to a tag with accentuated characters. Here is what the URL looks like : fr.craft.dev/actualites/tag/Traçage%20électrique The same page work fine with a ...
2
votes
1answer
248 views

How can I group a list of tags into ranges of first letters (A–E, F–J, etc.)?

I'd like to be able to fetch a list of tags from a blog section and then group them into ranges of letters. I've used this code to fetch and group a list of tags by first letter: {% set entries = ...
0
votes
2answers
51 views

How can I make an oversized chalkboard organiser? [closed]

I found this ( http://www.pbteen.com/products/oversized-chalkboard-organization/ ) on PB Teens and Pinterest and fell in love. It's perfect for me but at a price of around £200 is a bit ridiculous! ...
3
votes
1answer
784 views

How do you add tags to tag field when saving an entry?

I'm working on a custom import plugin which needs to import a load of content to fields including categories and tags. Categories is working fine using a comma separated list of category ids: ...
6
votes
1answer
126 views

How can I restrict tags that are able to be used?

Just downloaded and am setting up Craft. Super excited! I would like to know the following: At the moment, I am assigning tags to entries in the hopes of using them as an organizational/navigation ...
4
votes
1answer
729 views

Custom Twig Tags

I'm working on a site with a very complex permissions structure (based on groups, dates, dynamic overrides etc). I've written a custom permissions plugin to handle this in a centralized fashion. In ...
2
votes
2answers
484 views

Globals (template tags) in entries?

Is it possible to use template tags within an entry? Specifically, I'd like to use Globals I've set up within an entry, so I can manage a brand name globally.
9
votes
4answers
7k views

Remove the last comma in an inline list of tags?

In a list of tags I'd like to remove the last comma. So is there something that works like the Ee backspace parameter?
0
votes
2answers
260 views

Craft renders unwanted quotation marks on some tags

Breaking my head over this. On one of the tags in the HTML template. The {% for image in category.CategorieImage %} loop. Craft seems to generate 2 unwanted quotation marks ("). These characters are ...
4
votes
1answer
162 views

Display related entries across different entry types using tags in different tag groups?

I'm working on a site that has two different entry types (e.g., "blog" and "photos"), and each type has it's own tag group. When viewing a particular entry, I'd like to display related entries found ...
2
votes
1answer
147 views

How to build a sentence based on tags

I try to build a complete sentence based on tags as follows: This is a sentence with tag1, tag2 and tag3. My code is: {% set topics = entry.topics.first %} {% for topic in entry.topics.offset(1) %}...
2
votes
2answers
432 views

Create a route to display entries with multiple tags

I understand how to set up a route and template that allows me to display entries by tag. But how can I set up a template + route to grab multiple tags (if supplied but could just be one) from the ...
2
votes
1answer
54 views

How do you get ahold of a TagModel in a template?

I have a route that matches: /blog/tagged/{tag} And in my template I would like to pull up all blogs that are related to the tag: {% if tag is defined %} {% set blogTag = craft.tags({ name: tag,...
2
votes
1answer
1k views

Show tags for each entry

I have one tag for each entry. - Entry1 Tag1 - Entry2 Tag2 Now I want to show them in the title of each entry. But it doesn't work. {% for entry in craft.entries.section('mainEntry')....
6
votes
2answers
211 views

Show a list of recently used tags only from the current locale

I'm having trouble outputting a list of tags that only includes tags from the current locale. Here's the setup: I have a site with two locales: english and spanish I have a section with handle ...
2
votes
1answer
239 views

Problems translating the default "Name" field on tags

I'm building a multi-lingual site (english and spanish) and I have a news section with entries that have a "tags" field attached. I've marked this field as "translatable" in the CP. But, when I've ...
2
votes
2answers
314 views

Sharing a template with identical category and tag name

I'm trying to stay as DRY as possible here and sharing one template for a news list view; all, category and tag all sharing the same template (and trying to refrain from having a category or tag ...
9
votes
1answer
548 views

How can I best extend TagModel to add a `count` property?

I'm attempting to write a plugin to extend tags by adding a count property that'd be useful identifying popular tags, making a tag cloud, and anything else where a count would be useful. The Goal ...
4
votes
1answer
105 views

Bullet-proofing tags with punctuation

I have a route set up with a tag: news/tag/[tag] => news/_tag How do I generate urls that will match that route for all possible tags (including tags with punctuation)? How do I resolve that url ...
4
votes
4answers
2k views

Looking to use a tag slug/URI and loop through entries of that tag

It doesn't appear that tags are handled the same way as categories in the sense that categories have a slug (which results to a URI). I'd like to use tags to link to a "tag" page, similar to a ...
3
votes
1answer
151 views

Tag relations not saving

Hello kind helper folk, I'm working with Simple Craft XML Import, which has a handful of older code in it. I've managed to get through most of it to the very end. The last thing it does is saves ...
1
vote
3answers
808 views

Is it possible to call a variable within a tag pair?

Having already defined foo, I tried this: {% for block in availability.{{ foo }} %} This gives error: Expected name or number Can anyone please tell me the right way to go about this.
2
votes
2answers
313 views

How do you rename a tag globally in the Craft Control Panel?

Is there a way to rename a tag, globally, within the Craft CP? If not directly, would the Find and Replace tool include tags?
2
votes
1answer
122 views

Not finding template when adding "tag" view

Not trying to do anything fancy here, just trying to have a "tag" view similar to my category view (which uses the same template), however, when I add my link, /blog/{{ tag|slugify}} (I'm using ...
2
votes
3answers
331 views

Should I use tags for cities?

I would like to have some advise on the following: I'll be running a site with events. These events (channel entries) will take place in a certain city. I don't want to setup every city as a category,...
3
votes
1answer
505 views

How do I display an entry's tag?

I want to display an entry's tag next its title in a list of entries, and on the entry's detail page. For example, for a blog. How do I do that?
2
votes
1answer
155 views

Turn a tag field id into an instance of the tag model

The add-on I'm using to import blogs has this to save tags to an entry: craft()->relations->saveRelations($tagFieldId, $entryRecord['elementId'], $tags); Where the first arg is the field id ...
2
votes
1answer
83 views

How to check name of a tag

Per documentation I am getting a selected tag: {% set tag = entry.myTagsField.first() %} How to check if its name is equal to "Flower"?

1 2
3