Questions tagged [categories]

Categories are taxonomies for your entries, users, and assets.

Filter by
Sorted by
Tagged with
2
votes
2answers
354 views

Showing specific category content as well as ALL

I have a photography website with just two categories, 'Lifestyle' and 'Food'. I have two problems: How to display the content I have a category group called 'photoCategories' to which I have ...
1
vote
0answers
17 views

How do I omit a page with just a catagory [duplicate]

I have a channel with content and I want to only display content from a certain category. Should I use a slug? Just trying to wrap my head around this. This is what I have now: {% for product ...
2
votes
1answer
173 views

Wrapping my head around Categories

I have a category group set up called 'gists'. I have entries that contain a category field which pulls in the category group 'gists'. Now I need to access entries that are tied to individual ...
3
votes
1answer
139 views

High volume category list causes slow load

My customer has 3500 categories in a 3 level hierarchy. This is causing some significant pain when adding categories to an entry. The server delivers the categories via ajax in 9sec, but the browser ...
6
votes
2answers
2k views

How can I create a simple loop through entries in a category?

I have a category set up and have added entries to it. How do I loop through these entries, and output just the title of each entry? Serious noob here but trying to learn, any help would be ...
13
votes
1answer
6k views

Get category title by slug

I'm setting my categories by matching the third segment to a category slug. How do I get the category title? {% set catSlug = craft.request.getSegment(3) %} {% set category = craft.categories.slug(...
3
votes
1answer
693 views

Assign entries to categories in bulk?

I just accidentally dragged a root category onto another. Now, all of the entries that were assigned to that category are assigned to the one I accidentally dragged it onto. Luckily, I have like 7 ...
10
votes
1answer
1k views

Check to see if category is populated?

I want to list all categories that have an entry assigned to them, but hide the ones that are empty. In EE I could do this show_empty="no" But I can't see a parameter in the docs for Craft. ...
5
votes
1answer
854 views

Display category entries based on Segment?

I'm really struggling to display entries of a category, based on the segment. In other words, I have 1 category template, so the category needs to be determined dynamically (*we still do this by ...
2
votes
2answers
306 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 ...
2
votes
2answers
970 views

How do I list category name?

Forgive the simplicity of this question but I am in the early stages of my first Craft implementation. My simple question is: how do I display a category name in a template. This is the code I am ...
3
votes
2answers
674 views

Submitting checkbox data from a front-end form for a 'Categories' Field Type

I have read a few docs about front-end forms such as the Checkbox field docs. Although that doc doesn't seem to give an example of what I need. I have a 'categories' field type. I am creating a ...
2
votes
1answer
459 views

How to list the latest 3 entries per category per section?

I'm trying to create a condensed overview of my website content on my homepage. I'd like that page to loop through all sections, in each section looping through the categories that apply to the ...
2
votes
2answers
2k views

How do you only show children of “active” parent using categories?

I'm currently using Categories to organize an inventory of products. The hierarchy is straightforward: category, subcategory, and single product entry. The url structure I'm are hoping to use reflects ...
12
votes
2answers
1k views

How to find entries with no category

I have a field categories in a channel news, and I want to find all the entries in news that don't have a category set. I know I could loop over the entries and find them that way, but I'm hoping to ...
4
votes
1answer
960 views

Sections, Categories, and EntryTypes. Which, when?

bit of a 'best practice' question, as I'm very sure there are many ways to do this sort of thing, but... When/how do you decide whether to use a section, category, or entry type to organise your ...
4
votes
1answer
2k views

Listing categories alphabetically & total post count

How do I list all categories in use alphabetically? And how to get the total post count from each category? Cheers
4
votes
1answer
663 views

How do you import hierarchical data that uses the adjacency list model into Craft Structures or Categories?

Craft makes it nice and easy for us to have hierarchy in Structures or Categories. Many other popular CMS platforms support hierarchical data as well but some support it using a different data model. ...
4
votes
1answer
2k views

How to loop through category group and identify those related to entry

Looping through a category group to show links to all the categories. This is an entry page and I want to highlight any categories assigned to the entry. How do I do that? I've tried this so far: {% ...
17
votes
1answer
6k views

How do you list categories in a category group?

I would like to output a list of all the categories in a category group on the front end. How do I do that?

1 6 7 8 9 10