5
votes
Accepted
Quick and easy way to get category name from ID
Try this free extension from the mighty Low!
http://gotolow.com/addons/low-seg2cat/docs
Working with categories? Then you need Low Seg2Cat. This extension
will give you information about ...
4
votes
Accepted
Displaying the number of entries in a category
Yes, this is possible. You can do this by making simple template and embed.
Create one template template_name.html in your template group and insert below code.
{exp:channel:categories channel="...
3
votes
Accepted
Importing nested categories with Datagrab
From the Developer:
Use a slash ‘/‘ to separate subcategories, so you can do something like, 'Category / SubCategory'
The delimiter is hard-coded but if you want to change it is around line 1420 of ...
3
votes
How to give categories open/closed status?
Custom category field?
Which defaults to open:
Then your template code:
{exp:gwcode_categories channel="example" depth="1" custom_fields="yes" linear="yes"}
{if cat_status == "Open"}{cat_name}{/...
3
votes
Accepted
How to get entry's categories, of a specific Category Group
You can specify which group the categories tag looks at.
{categories show_group="2"}
https://docs.expressionengine.com/v2/add-ons/channel/channel_entries.html#show-group
3
votes
Accepted
Using Playa passing values
I have resolved this by adding the option parse="inward" to the {exp:playa:parents} tag. So my code looks like below
{exp:playa:parents channel="article|blogs|calendar_events|contests|podcasts|...
3
votes
Accepted
Display Parent Category
Yes of course, you should use GW Code Categories.
After installing that plugin, please try below code. I think it will work to get parent category.
{exp:channel:entries channel="channel_name" disable=...
3
votes
Accepted
File directory doesn't parse correctly in Seg2Cat
File paths are only parsed in the Category Image field, not in the Category Description field, and only if the Parse File Paths setting is set to Yes.
2
votes
Accepted
Is there another way to output Categories and all respective entries other than category_archive?
Sure, something like this:
{exp:channel:category_archive channel="my_channel" style="linear"}
{categories}
<h3>{category_name}</h3>
{exp:channel:entries channel="...
2
votes
Can you get a categories count within the channel entries tag?
You can get a category count without using PHP using a if statement on a string built by the {categories} tag inside of the entry's exp:channel:entries tags. such as this:
{exp:channel:entries}
{...
2
votes
Get Category Details by just URL_TITLE in EE
My recommendation would be to look at Cat2 and Low Seg2Cat (if you need to infer category data from a URL segment).
2
votes
Accepted
Compare url segment and category name with conditional
Found a solution using Low Seg2Cat plugin to get category_id from segment url:
{if segment_4_category_id == category_id}active{/if}
2
votes
Would like to have a divider between category names where there are more than 1 to show. (and no divider when there is only 1 category name)
You can use some variables from the Channel Categories loop to execute this.
Ref:
http://ee2docs.com/add-ons/channel/categories.html#variables
Inside of your Channel Categories loop:
{...
2
votes
Solspace Calendar - Category Filtering
Use the documentation to determine how you should configure your templates.
https://solspace.com/expressionengine/calendar/docs/
Try using this parameter to filter by category:
https://solspace.com/...
2
votes
Accepted
Most efficient workflow to assign news articles to a list of services with thousands of entries
Categories is the primary method I would choose given your outline. Each categories category url should match the URL name of the service whereas the category title can be whatever you want it to be. ...
2
votes
Accepted
categories inside the Edit Entry publish tab?
Yes of course it is possible. For that you just have to go into layouts of respected Channel. And then drag and drop the categories under Publish tab.
2
votes
List entries which have no category assigned
Something like this maybe?
{exp:channel:entries category_group="not 1|2|3|4"}
2
votes
Accepted
Category Group id location in the control panel
When you are in the EE Control Panel go to Developer/Categories page and select a Category Group in LH pane: the category group ID is then shown as the final element of the URL - if you are viewing ...
1
vote
Accepted
Why does dynamic='no' affect displaying a banner from a different channel?
A helpful example of dynamic="no": https://docs.expressionengine.com/latest/how_to/building_a_simple_news_site.html#a-dynamic-duo
also see: https://docs.expressionengine.com/latest/urls/url_structure....
1
vote
Having A Category Sort Problem. EE3
I was using a Bloqs field to orderby. I needed to create a new field out side of Bloqs and it now sorts correctly.
1
vote
How is the ExpressionEngine user guide documentation managed? By categories or channels with relationship fields to the child pages?
Last I heard (some years ago), it was all handled via Sphinx: http://www.sphinx-doc.org/ No idea if that's still true though.
1
vote
Category page and Article. How?
take a look at Low's Seg2Cat.
It's a free plugin that will allow you to use category names in the url to easily display the category contents on a page instead of messing with cat ids.
Using Seg2Cat ...
1
vote
How to get max count for a loop in channel entries tag
I solved my problem by using php. First i go through all of the categorys and count them. after that i check it with another variable where i count the current Category.
[
{exp:channel:entries ...
1
vote
Accepted
Category Conditional
An alternative answer, doesn't use any additional plugins or anything.
I am assuming you want a category jump list a the top (hence the categories tag pair), then the entries in a decending fashion, ...
1
vote
Accepted
Conditional Check Issue || Is Entry in any of these Categories?
{if "|{featured_listing_category}|" *= "|{segment_4_category_id}|"}
{!-- Is Included --}
{if:else}
{!-- Isn't Included --}
{/if}
Outputs as example:
{if "|399|400|" contains "|372|"}
Pipes ...
1
vote
Accepted
Show a list of subcategories for current category
Use Gw Code Categories like as below:
{exp:gwcode_categories cat_id="{segment_3}"}
{cat_name}
{/exp:gwcode_categories}
OR if you want to use category url title then:
{exp:gwcode_categories ...
1
vote
Accepted
How to show category of entry within relationship field
I guess you should try something like this:
{relationship_field}
{relationship_field:categories}
{category_name}
{/relationship_field:categories}
{/relationship_field}
1
vote
Accepted
passing a category id to an embed
I believe you have to use proper tags to access embed vars, ie:
{exp:channel:entries channel="reports" disable="member_data|trackbacks" limit="200" category="{embed:cat}" dynamic="no"} ... stuff ......
1
vote
Accepted
Display number of entries of a certain categories in a channel
Maybe something like {exp:channel:entries channel="my_channel" category="2" dynamic="no"}
{absolute_results}
{/exp:channel:entries}
1
vote
Accepted
Dynamic Template Name in URL
Are the separate templates really different enough to warrant being separate? Usually you could code in the logic for slightly different views within a single template - much simpler and more ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
categories × 554channel-entries × 78
gwcode-categories × 41
templates × 27
conditionals × 27
category-group × 24
ee2 × 23
relationships × 21
stash × 20
playa × 20
channel × 19
filter × 19
safecracker × 18
low-seg2cat × 18
search × 15
url × 15
segments × 15
structure × 14
child-categories × 14
low-search × 13
ee3 × 11
query × 11
solspace × 9
entries × 9
pagination × 8