Might be having a brain fart on this one, but I'm using Low Search to search two channels and I cannot figure out how to direct them to the right templates. The results display, but I need the link to the entry to go to the correct page...

In Low's example they use this:


which is essentially replicating the permalink feature but without the option to direct it to a certain template. My if statements also don't seem to be working with {if collection=='xx'} either.

  • K, answered it myself using Lows' {low_search_collection_name} with if statements to direct the permalink.
    – brunam
    Dec 3 '12 at 21:00
  • 1
    If you have found a solution, remember to either accept an answer below, or post your own solution as an answer to help future visitors :) Dec 3 '12 at 23:22

If you goto Admin > Channels Administration > Channel > Edit Preferences and set the comment path to the proper URL (i.e. {site_url}/blog/comments ) you can use the {comment_url_title_auto_path} parameter also. It can be easier then doing conditionals for each channel you might be searching through.

  • 2
    I fully support this answer. Rather than using conditionals with the collection name, using the {comment_url_title_auto_path} variable (as long as it's configured correctly) is the easiest route.
    – Low
    Dec 3 '12 at 22:54
  • Awesome, I've never seen bothered to set that before... Nice time saver!
    – brunam
    Dec 4 '12 at 15:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.