All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

EE Template Route Manager and Low Search Result Auto Path

Max 20 Aug 2015 15:12 question, complete

I am using EE Template Route Manager to display content from different categories, but the same channel utilizing different URL templates.

Example:
Channel X (Channel URL is set to "/template_group_1"):
-> Category 1
Route: /template_group_1/category_1/url_title

-> Category 2
Route: /template_group_1/category_2/url_title

-> No category
Default Route: /template_group_1/url_title

Now Low Search is using "channel URL" to generate auto path. It means that auto path url for entries in category 1-2 will look like /template_group_1/url_title, but not
/template_group_1/category_1/url_title or /template_group_1/category_2/url_title.

I can use conditional statement to change the path for entries in Channel X->Category 1,2 in search results, but it can get very messy in case we have many channels that will require that.

Is there any other way to correct the path in search results?

Replies

  1. Low 20 Aug 2015 17:19

    Currently, using conditionals in the Results tag is the only way to achieve "complex" result URLs. The {auto_path} works identically to the native search module's {auto_path}.