Questions tagged [categories]

For questions related to creating and managing ExpressionEngine categories which are using with the ExpressionEngine Channel Module.

Filter by
Sorted by
Tagged with
5
votes
3answers
1k views

How do I display a category name based on a segment?

I'm trying to show the category_name of segment_3. If I use the variable {segment_3} it displays the short name, I want to show the Full name. Any suggestions? Thanks in advance.
3
votes
2answers
129 views

Using Simple Search to look in an entry's selected categories?

I have a simple search form set to look in entries. When I search for the category name that I have selected in some entries, the entry does not show in the results. Should I be able to use Simple ...
3
votes
4answers
2k views

Detect any pagination in a conditional

I've got a site where it shows different content dependent on the url segments (categories eugh!) but as there can be up to 4 url segments, any of which could have pagination, i want to be able to say ...
2
votes
3answers
1k views

Display Entries Assigned Exclusively to a Parent Category

I've got a list of categories: Category 1 Category 1.1 Category 1.2 Category 1.3 Category 2 Category 2.1 Category 2.2 An entry can be assigned to any child category, OR it can be assigned to just ...
1
vote
2answers
155 views

Combining categories within channel tag category parameter

This is my code: {embed="jobs-opportunities/.main_job_list" cats="14&85|14&240"} You'll see I'm trying to list entries that are either from 1 set of categories or another. I feel the above ...
7
votes
5answers
3k views

Listing entries, ordering by Category

I want to list a channel's entries by category. It's a kind of hybrid of using EE's category_archive tag but inside of exp:channel:entries. I have an ugly solution (shown here); it violates every DRY ...
6
votes
1answer
10k views

How to Display an Entry's Category?

I'm on a single product entry page. The URL does not specify the category. In fact, the entry has 3 category groups associated with it. I want to display the first category assigned from each of the ...
4
votes
5answers
1k views

displaying expired entries

Is there a way where i can create a function that only displays expired entries? I have a page set up that displays, up and coming and pervious events click here when the user clicks on the pervious ...
3
votes
1answer
138 views

How can I create a category listing which has its own template?

Use custom category listing template 'news/category': /site/news/category Use custom template to present “Legal Politics” 'news/category-legal-politics' entries: /site/news/category/politics/legal ...
5
votes
3answers
173 views

a less expensive way of grouping entries by category

I'm trying to figure out if there's a more performant way of getting entries grouped by category. As you can see, I'm using NSM Categories module. Right now, this costing me 263 queries and 5 seconds ...
3
votes
2answers
442 views

Faceted search with categories using Low Search

So I am trying to set up a faceted search which is based on categories - but EE's default category parameters aren't clever enough for me with just the & or | separators, so I was wondering if I ...
6
votes
5answers
238 views

Are there any good add-ons for managing categories on the publish screen?

I have a channel that will require lots of editing (adding and selecting) of many categories and want to make this as simple a process as possible for the client. I also need to require that only one ...
5
votes
4answers
1k views

Excluding a Category

I am using ExpressionEngine 2.5.2 I have a website that includes a featured blog post at the top, as well as a news section that all of my blog posts in chronological order. When a blog post is ...
4
votes
6answers
162 views

Is it possible to have category name instead of template_group in uri?

I would like to be able to have the url-structure like http://example.com/category_name/entry_url_title Now i know that the default structure in ExpressionEngine is template_group/...
3
votes
1answer
161 views

Conditionals from within Piped String of values

I have a string of piped category ID's which represent all the categories which are selected for any given page. Within my page, I now need to check the input of the chosen categories. For example, ...
3
votes
2answers
237 views

Struggling with Categories

I'm new to EE and trying to learn how to use Channels and Categories. I've created a Channel, then created Channel Fields, then associated the two. I am able to add entries to that channel just fine. ...
3
votes
1answer
99 views

Uneven category depths template

I have a site where there is an uneven depth of categories for a product channel. Previously I've cobbled together a band-aid solution but I'm reaching out to see if there is a better way. I have a ...
3
votes
4answers
1k views

Automatically assign parent category to sub-category entries?

I have a parent category called, 'Reviews', which has sub-categories, 'Albums', 'Tracks' and 'Gigs'. The entries in the sub-categories had already been assigned those sub-categories before the parent ...
2
votes
1answer
376 views

Anyone know of a plugin to show Category count?

Basically want to find the number of entries per category in order to perform a conditional to show different content based on the entry count. Essentially: if count = 2 then this if count is less ...
2
votes
3answers
225 views

Filter out entries belonging to a parent category

I'm certain this question must have come up before, but can't find any mention of it. I need to filter out entries that are assigned to a parent category. I'm using this tag {exp:channel:entries ...
2
votes
1answer
171 views

Can Low Search keywords also search in categories?

If I enter the keywords "Topic Name" into the search form, can Low Search also find entries that have been tagged with "Topic Name"? This would be something similar to Solspace's Super Search "...
2
votes
1answer
1k views

Adding Category and Subcategories in a multiselect dropdown in Channel Form

I am using channel form to allow users to add a new entry. I need to output a category to allow then to select multiple categories and sub categories. The following code works but it does not order ...
1
vote
1answer
838 views

Show child categories but hide parent

I have a template that outputs a list of categories and any entries associated with them. All entries are assigned to child categories and none to the parent categories (the parent categories exist ...
1
vote
2answers
73 views

Primary Category '$' bug?

I've just updated my version of Primary Category from Solspace from version 2.0.2 to 2.2.1 in my EE 2.5.2 install and run into what I think is a bug. A BIG change in the update is that you now need to ...
1
vote
1answer
105 views

Classes on list items with GWCode Categories

I've just started using GWCode Categories for the first time, and have seen it oft-cited as a go-to solution here. I need to rely on nested output for navigation, but I need classes on the <li> ...
1
vote
1answer
208 views

Stash category ID and entries

I have tried to use Cat2 addon to retrieve category ID based on a category group. Later I want to use stashed category ID to retrieve entries form a channel based on a selected category. Code looks ...
1
vote
1answer
677 views

What's the best way to bulk add or import categories?

I'd like to import a long list of categories into ExpressionEngine and create new categories. Is there an easy way to do this, either via add-on, or some handy PHP code?
1
vote
3answers
55 views

Trying and failing to use stash value as channel entries category parameter

So, apologies I know this has been covered extensively BUT I've been pulling my hair out all day and still don't get why I can't get this to work. I simply want to use a stash variable set in one ...
1
vote
1answer
56 views

Index Categories in Expression Engine search results

I have a site that needs to include category names as a parameter for search results that's keywords might be the cat name. Anyone know of a way to do this, or possibly a plugin that converts a ...
0
votes
2answers
450 views

channel entries to include their respective categories in the title permalink

My channel entries do not include their respective categories in the title permalink. How do I get each entries link to include the category in the url? so my {title_permalink='showroom'} would end ...
0
votes
1answer
730 views

Categories not appearing in playa:children

One of the main templates on my site, the product page, has a single products channel entry, and up to 3 playa children (also products). I'm trying to get the categories for playa children. Here's my ...
0
votes
2answers
260 views

'Fuzzy' conditionals

feeling little dumb for this. What I am trying to do is to make my list of checkboxes checked depending on {segment_5} If the value is '6', that is easy with <input type="checkbox" name="...
0
votes
1answer
219 views

trying to get category_url_title from a relationship in a grid field

Having a strange issue with grid, categories and relationships. On my site i have a channel with products and services. On the services pages i need my client to be able to select related products to ...
0
votes
2answers
399 views

Outputting categories as checkboxes - exp:channel:form / safecracker

I want to output category groups as checkboxes, I've got them outputting correctly however when they are selected and the form is submitted they aren't actually being assigned to the chosen categories ...
0
votes
1answer
72 views

Child subcategory or separate category - which one for the best practices

I have channel named Products and category group Product Types assigned to it. As an example it looks like: Product Type -> Scent -> Product Collection And then it comes as Product Collection ...
0
votes
1answer
619 views

Displaying a category tree accordion with GWCode Categories & Bootstrap

Edited (now trying to get this to work for a 3rd level of categories) I'm trying to get an accordion menu to work with bootstrap and GWCODE Categories. The problem I'm having is determining when a ...
0
votes
2answers
142 views

Show categories associated with a list of channel entries

I'm wanting to filter a list of product entries with Ajax and I am wanting to create a dropdown list of all categories associated with the current list of entries. eg. I have 100 products that have a ...
0
votes
2answers
66 views

Fetching a dynamic stash list

I am trying to build out a list of categories that I need to include in the nav as well as other sections of a site. I had it done with embeds and {exp:category} loops, but I would rather be able to ...
0
votes
1answer
243 views

Output categories of related entry within grid field?

I have a grid field (EE 2.7.2), within which is a relationship field. I want to output the categories associated with the related item within the grid field. Is this possible? I thought this might ...