So Very Posh

Thanks for visiting! This is the weblog of Lynda, a 26 year old girl living in Atlanta with her husband, three cats and two cockatiels.


Combining Multiple Blogs on Index - Part II


Last month I put together a little tutorial on combining multiple blogs on one index using the GlobalListings plugin.

I've recently discovered with the Compare plugin, the php can be removed and the page will be much, much smaller. Especially if you use a lot of blogs together, as I now do.

If you'd like to combine multiple blogs on one index using GlobalListings and Compare, I would suggest following the preparation instructions on that page and then come back and use this template:

<MTGlobalEntries include_blogs="7,13">

<MTIfEqual a="[MTBlogID]" b="7">
<$MTInclude module="entry"$>
</MTIfEqual>

<MTIfEqual a="[MTBlogID]" b="13">
<$MTInclude module="linklog"$>
</MTIfEqual>

</MTGlobalEntries>


Adding more blogs is easy. Just make sure to include the blog number in the main GlobalEntries tag and add this:

<MTIfEqual a="[MTBlogID]" b="xx">
<$MTInclude module="whatever"$>
</MTIfEqual>


Comments

Comments are closed for this entry

Ahhh so that’s how you get those posts to show up on your front page. Someday I’ll actually get around to making my movie reviews page.. someday.

Posted by theresa on 04/26 at 01:44 PM | Link
Trackback: pMachine to MT, Multiple blogs on one page, another (php) 404 handler
Some great tutorials over at Lynda's at So Very Posh: pMachine to MT import script Combining multiple blogs on one index page As well, Bryan from RevloltingDigits.com expanded on my php 404 handling script. Here's where you can find his...
Tracked on: : scriptygoddess.com on 04/26 at 07:29 PM

Hi, I’m so sorry to bother you but I’ve asked this question several other places including the MT forums and no one seems to have an answer. I used your tutorials to get the Global Listing plugin working (and they’re wonderful by the way, very easy to follow). And everything works fine except for the Template Modules. For some reason, no matter what I do, I keep getting an error when I rebuild saying the template module couldn’t be found. I think it has something to do with the Global Listings tags because I tried calling the modules on other pages without the tags and it worked fine. Is there some sort of coding that you had to use in conjunction with the regular coding?

Again, I’m very sorry to bother you. If you could give me even the slightest clue as to what I did wrong, I would be so grateful. Thank you, either way!

Posted by Alexis on 05/02 at 01:52 PM | Link

This is mentioned in the first tutorial, but I’m not sure how clear it is.

Within each blog you want to combine, all modules need to exist.  There’s details on the original tutorial on how to link a module to an external file so you can make changes in any module on any blog.

For example, I have a module called “macros” that I link to for several blogs.  Say “Blog A” and “Blog B” use the module “macros”.  That module must exist for blog A and B.  If I’m trying to combine A, B and Blog C on my index page, even though it doesn’t use the module “macros”, if it’s used in the global index for blogs A and B, I’ll need to create it in blog Cs modules as well.

Posted by Lynda on 05/02 at 02:13 PM | Link

Thank you so much! Worked like a charm. My problem was that while I had the templates for each blog in it’s section, I didn’t have all the templates at every single blog, only the coresponding templates. Sorry to bug you and thanks again so much!

Posted by Alexis on 05/02 at 08:51 PM | Link

I finally implemented this and it works like a charm. Thanks for putting this together. Excellent use of the plugins.

Posted by Jenna on 05/11 at 04:58 PM | Link