I've setup a page that shows news from four different sites that are all within the same MSM (Multi site manager) build, the page is working great but I want to be able to filter by site. I basically want the following:

News listing (domain.com/all-news) - news from all sites

News listing filtered (domain.com/all-news/site1) - news from one site

Or alternatively it would be great to have the filters working with ajax

Any ideas?



Seems like you could use a combination of conditionals, the site= parameter, and a segment variable.

  • Thanks Michael, seems I have a total mind blank, {exp:channel:entries {if segment_1 == "site1"}site="site1"{/if}{if segment_1 == "site2"}site="site2"{/if}} – Nick Sep 10 '13 at 11:27
  • I was thinking more {exp:channel:entries site="{segment_2}"} etc...then build links that create that URL structure to trigger the filtering. – Michael Boyink Sep 11 '13 at 11:56

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.