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:...
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.
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.
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 ...
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 ==...
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 ...
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"}...
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 ...
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 ...
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.
...
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 ...
1
vote
Accepted
Trying to get category name from url
As Mufi correctly commented, Low Seg2Cat uses category URL titles, not category IDs.
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 ...
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 ...
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}"}
......
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 ...
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" ...
1
vote
Categories not filtering with Low Seg2Cat
You need to surround segment_3_category_id in parethesis and {}
category="{segment_3_category_id}"
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 ...
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="{...
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.
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
low-seg2cat × 42categories × 18
low × 4
channel-entries × 3
segments × 3
category-group × 3
stash × 2
playa × 2
url × 2
solspace-calendar × 2
low-events × 2
add-on × 1
conditionals × 1
channel × 1
php × 1
multi-site-manager × 1
error × 1
php-errors × 1
embeds × 1
transcribe × 1
filter × 1
switchee × 1
snippets × 1
ee4 × 1
child-categories × 1