default userpic

Getting a summary list of entries outside of MT

Vote 0 Votes

Hi,

We have MT installed on a subdomain (blogs.xxxx.com). From our main domain (www.xxxx.com) I want to create a dynamic html side bar which will list a summary of the last 5 entries from the MT blog on the subdomain. I should be able to create some PHP to query the underlying MT database and display the entries, but, ideally I’d like to be able to put MT tags in main domain web pages. Is this possible or does out there anybody know of a better way to do this?

Thanks in advance

Ian

Reported on Movable Type 4.2

2 Replies

| Add a Reply
  • If you are willing to host them out of the same installation of Movable Type, that's really easy. Just use the MultiBlog feature set that's standard to access the entries from one blog while working on another blog. Here's an example: http://www.movabletype.org/documentation/designer/multiblog-template-tags.html

    Another thing you can do, if they're hosted off the same hosting account at your hosting service is this and you don't want to use 1 installation of Movable Type:

    1) Create a symlink in the folder that hosts the subdomain to a location on the main domain where you would want to host PHP includes.
    2) Create a new index template that you can use as a PHP include in the subdomain's copy of MT.
    3) When you use <mt:Entries> inside the PHP include, set lastn equal to 5.
    4) Have the template outputted as a file in the symlinked directory.

    I do something similar to this with my blog. I have another domain that's hosted out of a subdirectory of my main domain, and I have MT build an index template into that directory to redirect some traffic in a more user friendly way.

  • Mike,

    Thanks for the response. My main domain does not have MT installed but the sub domain is on the same host. I'll try your second option as its a good idea.

    Ian

Add a Reply

Forum Groups

513 1681

Last Topic: Google Analytics by Argentina Elections on May 27, 2009

202 880

Last Topic: Welcome to Movable Type by solle on May 27, 2009

49 204

Last Topic: Odd problem with searches - need help by Phill M on May 24, 2009

11 42

Last Topic: Community Solution -- but where? by webmoney on Mar 16, 2009

25 99

Last Topic: Search enhancement? by Rob on Apr 14, 2009

10 21

Last Topic: Comment Box Missing by rushskeith on Jan 9, 2009

90 318

Last Topic: Getting to the settings on Post Office by Rob G on Apr 2, 2009

code.sixapart.com

104 373

Last Topic: Login/Registration issue by Gaurav Sharma on May 26, 2009

90 307

Last Topic: HTML Printer-Friendly page shrinks by Mikki on May 19, 2009