Questions tagged [categories]

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

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

User groups in relation to categories

I am building a community website that currently have two user groups but it might increase so I am trying to automate everything. The current groups are: 'teachers' & 'candidates'. I have a ...
3
votes
1answer
665 views

How to display all entries within a given category

I've got a category group called allcategories, inside of this is two categories called design and photo. I'm trying to filter all entries in the section projects by the category `photo' but none of ...
1
vote
1answer
197 views

How to only list translated categories?

I have a site for a company that is established in US markets and expanding into markets overseas. The site has products and those products are grouped into categories. Due to the costs of ...
0
votes
1answer
78 views

Entries from hardcoded category

Should be easy i thought. How can i display all entries from a section from a certain category? This is my code now, but nothing shows up (screenshot bottomleft): {% set category = craft.categories....
0
votes
1answer
445 views

How can I get the parent category group via the category to create multiple relation criteria?

I have two category groups: Cars and Colors My Cars category looks like this: Cars Sports Cars Corvette Lamborghini Porche My Colors category looks like this: Colors ...
3
votes
3answers
106 views

Plugin for creating categories on an entry page in Control Panel

Is there a plugin that allows to add a category via an entry page? I like how you're able to add categories in Wordpress admin right on a post page, not only via Categories section — this seems to ...
1
vote
1answer
645 views

How to list an entries selected nested categories?

I have a entry field populated by categories. The number of categories an entry can have is unlimited and the categories are set up as nested categories i.e. first level ---second level ------third ...
1
vote
0answers
129 views

How to pull out entries related to multiple nested categories?

I have a category set up with nested categories so: Level1 -level2 -level3 In my entries channel each entry can have multiple nested categories so we may have an entry with: cat1 -...
2
votes
1answer
207 views

Dealing with listing multiple categories

I'm looking to use multiple category group as a navigation. The categories have 3 levels and will be listed depending on set variable. I can list all categories in the group with the following: {% ...
2
votes
1answer
318 views

Output Matrix in relation to category

I'm setting up an FAQ page using a matrix. Each Matrix block contains a question and an answer field. Each Q+A needs to be outputted within a section on the same page such as General, Payments... I'...
1
vote
3answers
313 views

Perform inclusive relatedTo query with multiple categories in Craft 2.5+ [closed]

I'm trying to to display entries related to "all" the given categories instead of "any" using the updated relatedTo method provided in Craft 2.5. In a related question, @BrandonKelly explains how to ...
1
vote
1answer
986 views

Entries grouped by Category and then Sub Category

Been trying to get this working for a few hours but no joy, hope someone can help. I'm looking like an post archive of all entries. Something like Category1 Sub Category 1 Entry / Entry Sub ...
2
votes
1answer
961 views

Display Category Group Name in Template

Having a bear of a time doing something which seems like it should be quite simple. I'm trying to display the category group name in my templates, using the handle and can't quite get it. I've ...
2
votes
1answer
88 views

getSegment matching category title

I'm trying to match the 2nd part of the slug with the category title to then place a 'current' class on the link. Something like: {% nav category in craft.categories.group('blogCategories') %} &...
1
vote
2answers
121 views

Use only the sub categories from a category input

I have a category input. The category group has two levels. When accessing the category input via Twig I am trying to only grab sub categories the user selected. However when I use {% set ...
1
vote
1answer
686 views

Filtering entries by multiple categories with multiple filters

I'm trying to build a category filter on a page that lists houses that are for sale. The idea of the filter is to make it possible to select houses which, for example, are for sale or rent, have a ...
2
votes
2answers
1k views

How do I only display list of categories at certain level of parent category that have entries

I try to explain you semantically what I want to achieve here. I couldn't make it shorter. Sorry. Navigation will be constructed from .level(1) categories. At "site.com/firstLevelCat" I want to ...
3
votes
1answer
549 views

Fields associated with a category group

I have set up a custom field for a category group. How do I get the value of this field in a loop that goes through entries? Each category in the group could have this field's value set as true or ...
2
votes
2answers
543 views

Display entries by Category (Category in Super Table)

I'm been kicking myself for hours and going round in circles trying to get list of entries displayed by category when the category is selected from within a SuperTable (static table) row. I would ...
1
vote
0answers
119 views

Display sub-category depended on selected category with related entries

I am not even sure, I can explain it. I have a several sections, but I'll go with "Products" section. Than I have category group called "Filter". I'd like to use only this category group for all ...
3
votes
1answer
4k views

Craft entries related on a category page

So i'm trying to output blog entries related to a category. I first created a category group ('categories') I added several categories to the group ('innovation', 'teams', etc) I added a category ...
3
votes
1answer
280 views

Dynamic Category template paths

I've got a site with several locales and want to reuse a set of categories across locales but want to target a locale specific template from within each. Is it possible to set a locale-specific path ...
4
votes
1answer
1k views

How to display the title of a category based on its ID?

I’m passing the ID of a category to a template via a catId query string (i.e. http://example.com/some/path?catId=10). How do I display the title of that category?
3
votes
2answers
505 views

Loading related entries by category using a select menu

I have a list of people (entries) who are related to Categories. I would like to create select menu which will change (filter) the people (entries) shown on the page depending on which category (...
3
votes
1answer
416 views

Category slug is getting numbers appended to it

I have a category Australia and have been experimenting with boboldehampsink import plugin. After deleting categories and starting over the category Australia now has a slug called 'australia-6'. I ...
3
votes
1answer
52 views

How to plan IA for a directory of content thats good for admins and users

I want to build a directory of fishing ports It will have approx 500 entries, each geocoded for map display. I will have 4 views; 1) Directory with map of entries 2) Country and entries 3) Cities (...
1
vote
2answers
324 views

Issue accessing single entry from within category template

I've got a product section on a website where individual product entries are categorised. On the section landing page all the products are listed organised by category. On the individual category ...
2
votes
1answer
124 views

Best practice way to store countries and cities

Is there a recommended way for storing countries and cities in craft? I can see fields and categories as obvious options but its difficult to see the disadvantages/advantages of either at the ...
3
votes
1answer
717 views

Search for related entries via AJAX given multiple parameters

I am attempting to create a relationship between products. I have a section named "product" which is a Structure. Each "product" entry has a category field called "species" and a category field called ...
2
votes
3answers
355 views

Multiple sources on category field type - possible?

We're trying to setup a category field type to allow the selection of 1 category but from multiple category sources. Is there a simple way to achieve this without writing a custom plugin / fieldtype? ...
3
votes
1answer
46 views

Have some categories NOT linked to a category entry

So my client has thrown a curve ball! I've set-up a list of categories for the types of work they cover. However, they DON'T want all of the categories to actually link to an entry. In other words, ...
6
votes
2answers
2k views

Showing just the child category titles of a parent

I have a category group with parents each with 1 level of children. On my category entry page I want to list JUST the children of the current category being viewed. I'm sure it's simple but I can't ...
3
votes
1answer
141 views

Showing entries within a category

I have a list of people with skills defined by a category group. I have a category field within the 'people' Section so when a new person (entry) is created, the category field allows the admin to ...
2
votes
1answer
302 views

Category filter returning all entries

I've been trying to build a category filter. I managed to make my buttons respond with categories but the returned entries on the page stay the same. So when I click one of the links "/?category=koop" ...
3
votes
1answer
461 views

Get all entries attributed with category

Maybe I'm going mad here, but I can't figure out how to get all entries which are in a certain category. Following the syntax laid out here: http://buildwithcraft.com/help/entries-related-to-category ...
2
votes
2answers
118 views

Only fetch categories that are related to a minimum of entries

Is there a way to only fetch categories that have been assigned to a minimum of entries, i.e. 4? Currently I fetch categories like this: {% set productIds = craft.entries.section('products').ids() %}...
0
votes
1answer
178 views

Get user field category

I have a matrix that contains a block with a category field. I want to loop over the matrix models, in PHP, to get data. Here's what I have so far: foreach ($user->networksMatrix as $key => $...
7
votes
1answer
812 views

How to get entries related to current category only (not children)

I need to get entries which are only in current category, not child categories. So if I have a category structured like this: Food ----Fruit -------Apples -------Bananas I've got a categories ...
4
votes
1answer
337 views

Simple search using a single category in Craft CMS

I am relatively new to Craft and I am having a little trouble understanding how to build a simple search which will allow me to have dropdown of my categories which will return the selected category ...
2
votes
2answers
976 views

Get current entry category

I haven't used categories before so maybe I'm looking at this the wrong way. I currently have a category group named products with the following structure: Featured Fruit ----Apple ----Banana Veg ---...
1
vote
1answer
120 views

Looping through returns nothing after using dynamic routes to get the entry type and category

I'll explain a bit of the structure of the content and then proceed to the issue. So i have a website with a shop in it with the url mysite.com/shop/, it is an channel section, and its template is ...
4
votes
2answers
571 views

Structure(s) vs. Categories for product catalog

So I am working on a project that includes an online product catalog. Is there a recommended way of setting up a catalog regarding the use of structure(s) vs. categories or a combination both? I ...
3
votes
1answer
832 views

Getting entries related to current entries categories

Trying to get 10 entries related to the current entry categories excluding a category called featured. I don't have the category name(s) in the url. This currently what I tried but this does not work,...
3
votes
1answer
323 views

List Categories AND their associated entries

I'm trying to create a category driven gallery. My setup (right or wrong) is this:- Users create a new entry within a Structure, title it, add photos and then assign the entry to a pre-defined ...
2
votes
1answer
67 views

Is it possible to assign fields to entries by category?

I want to show some fields depending in the category selected for the entry but within the editing stage. is it possible? If not, then how can i check if the entry is in a category in the template ...
3
votes
1answer
100 views

Show the entry category, that´s it

I have a simple and maybe a stupid question, it´s my first Craft Website... I´m listing a news section, the news can be categorized ( max two categories ), and i don´t know how to show the category ...
1
vote
3answers
512 views

Trouble getting a list of categories that have entries for a specific category group

I have a long list of categories in a specific category group, but only want to show a list of the categories from this group that currently have an entry associated with them. I've been trying to ...
4
votes
1answer
610 views

How can I output a list of categories that are not empty?

In other words, categories must have at least one enabled entry assigned to them.
3
votes
1answer
575 views

Display a list of categories excluding the current one

In a template for a category page, I'm trying to output a list of links through to all categories within a category group but exclude the category that the user is on. Does that make sense? What I'm ...
0
votes
1answer
2k views

How to create a template file for Categories?

below is my categories url. http://example.com/index.php?p=categories/vaporizers i create a template files for categories like templates/categories/index.html templates/categories/_entry.html my ...