I have a MT search field that uses IncludeBlogs 1,2,3. On the results template I would like to separate the results out so that each blog, 1,2,3, uses a different summaries so they all look different, and they have a heading of what the blog actually is.
I have seen this on templates before, but heck if I can find the code for it. Any help out there?
Reported on Movable Type 4.3

Hi Ken,
To differentiate the results you could use:
<mt:If tag="BlogID" eq="1">
Kind Regards,
Mihai Bocsaru
----------------------------------
Daily Movable Type Consultant
Web Development
Movable Type Consulting
Six Apart Partner
http://www.pro-it-service.com/
----------------------------------
Movable Type Demo
http://www.movabletypedemo.org/
----------------------------------
Open Melody Demo
http://www.openmelodydemo.org/
Odd, that did not work. I will try it again.
Not working.
It works for me, but I am not using mt:Else.
Just a few mt:If loops, one for each blog id.
I just tried that, and nada.
Maybe I am not making myself clear. I am displaying the results from all 3 blogs, 1, 5, 16 in this case, in the search results template in BlogID 1. I am not trying to make a universal results template I can use on any of the blogs.
Yes, I just swapped the BlogID around to test it, and sure enough it did what I expected it to do, it is only displaying the single BlogID on the template, because that *is* the BlogID of the template.
The logic that I've mentioned to you should be implemented on the universal results template.
You won't be able to display results from other blogs, if you keep a specific blog context.
There is no universal Search Results template in a stock MT 4.37 install. And I have seen this code before. The template is displaying content from 3 blogs, so there has to be a way to format that content based on template logic.
There is one, and it is inside this file:
/search_templates/default.tmpl
I am using an exact copy of the template on that source code file, as well as inside any of the blogs that are referenced on the IncludeBlogs variable.
I did it. I made an alt template. Then it worked. Ha, then I read your reply ;)
I am not using IncludeBlogs as a hidden field because I have a Config Directive set.
Thanks for pointing me in the right direction.
You're very welcome Ken!
Kind Regards,
Mihai Bocsaru
----------------------------------
Daily Movable Type Consultant
Web Development
Movable Type Consulting
Six Apart Partner
http://www.pro-it-service.com/
----------------------------------
Movable Type Demo
http://www.movabletypedemo.org/
----------------------------------
Open Melody Demo
http://www.openmelodydemo.org/