Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.
4 votes
Accepted

Conditionals from within Piped String of values

Try this: {if segment_category_ids_piped ~ '/\b'.cat_id.'\b/'} Note: this works for pipe-separated IDs (numbers). If you're looking for pipe-separated strings or text, you'd be better off using this:...
user avatar
  • 11.3k
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.
user avatar
  • 11.3k
3 votes
Accepted

Low Seg2Cat: Category Image filedir is not parsing

That's looking like Low Seg2Cat. Make sure you're on the latest version and the Parse File Paths is turned on in the settings.
user avatar
  • 11.3k
3 votes
Accepted

Category group and category ID from that group using Low Seg2Cat

There is a setting to restrict to Category Groups in Seg2Cat -- see the documentation. Note that, by default, Seg2Cat has this caveat: If there are multiple categories with the same url_title, but ...
user avatar
  • 1,889
2 votes
Accepted

Removing segments

Within the products/index template: {if segment_2 == ""} Display all top level product categories CURRENT TEMPLATE IS /products/index - so would embed another template? {if:elseif segment_3 ==...
user avatar
  • 5,353
2 votes
Accepted

Low Seg2Cat not working (empty output)

Low Seg2Cat currently (v2.8.0) expects lowercase category url titles. If you have any uppercase characters in them, they will not be matched. By default, this should pose no problem, as EE will always ...
user avatar
  • 11.3k
2 votes

Prevent a category being displayed when using category="{segment_3_category_id}"

If you're running 2.9, you could use a regular expression conditional to send the visitor to a 404 when trying to browse those categories: {if segment_x_category_id ~ "/32|15|8/"} {redirect="404"}...
user avatar
  • 17.4k
2 votes
Accepted

Renegade Category Defies LowSeg2Cat

You have stumbled upon one of the classics in debugging ExpressionEngine. A still common gotcha that even seasoned veterans get bitten by every now and then. A property that makes us wonder: why is ...
user avatar
  • 11.3k
2 votes

LowSeg2Cat and Transcribe not working together

This is as designed. Low Seg2Cat creates its own instance of EE's URI class, because add-ons like Transcribe (and specifically Structure) tend to rewrite the original URI instance, which rewrites the ...
user avatar
  • 11.3k
2 votes

Calendar and categories

According to the docs, using the pipe character will return results if entries belong to either category id. To return those that belong to both then use the & symbol instead of the | character. ...
user avatar
  • 3,163
1 vote
Accepted

{segment_category_ids_piped} only returning one cat id

If you have multiple categories with the same URL title, then this caveat applies: If there are multiple categories with the same url_title, but in different groups, this extension will only return ...
user avatar
  • 11.3k
1 vote
Accepted

Trying to get category name from url

As Mufi correctly commented, Low Seg2Cat uses category URL titles, not category IDs.
user avatar
  • 11.3k
1 vote
Accepted

Calendar and categories

As stuartmcd69 says, what you need to do is use the & character instead of |. However, the current version of Calendar (2.2.3) has a bug where this does NOT work. We're close to releasing a 2.3.0 ...
user avatar
  • 6,139
1 vote
Accepted

LowSeg2Cat and Transcribe not working together

I appreciate response of @Low. Thank you sir. As I have many pages where I cannot use {last_segment_category_id} or {segment_[n+1]_category_id}. I needed some quick hack in LowSeg2Cat extension to ...
user avatar
1 vote
Accepted

Low Seg to cat (if category not found)

You can conditionally check your segment variables from the extension: {if segment_2_category_name} This category exists. {exp:channel:entries category="{segment_2_category_id}"} ......
user avatar
  • 5,900
1 vote

Low Seg2Cat and MixItUp

In short: no. Low Seg2Cat looks at full segments, which in your example is order#cakes, not order, nor cakes. Your better bet is to, rather than use a hash in your URL to indicate a filter, simply ...
user avatar
  • 17.4k
1 vote
Accepted

Categories not filtering with Low Seg2Cat

Your code should look like this (note the end of the opening channel:entries tag - you were missing a combination of quotes and curly braces): {exp:channel:entries channel="specials" orderby="date" ...
user avatar
  • 17.4k
1 vote

Categories not filtering with Low Seg2Cat

You need to surround segment_3_category_id in parethesis and {} category="{segment_3_category_id}"
user avatar
1 vote
Accepted

Prevent a category being displayed when using category="{segment_3_category_id}"

@derek's answer is good, except that it will match other categories containing the numbers, like 18. So, let's improve it using the contains and the concatenation operators, instead of a regex.: {if ...
user avatar
  • 6,108
1 vote

Displaying Entries by Category name not working

If you're using lows Seg2cat you can use {segment_3_category_id} EE can only use an id parameter in the channel entries tag. {exp:channel:entries channel="channel_name" dynamic="off" category="{...
user avatar
  • 3,163
1 vote

Category group and category ID from that group using Low Seg2Cat

It seems the category url title's are not unique. Try making them unique and that should fix your issue as Low Seg2Cat queries the database and find the first match.
user avatar
  • 4,805

Only top scored, non community-wiki answers of a minimum length are eligible