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

If you need to share template code, replace all the "<" signs with "&lt;" or use this utility.

Forum Groups

1773 6162

Last Topic: Excluding categories from blog by kholechek on Feb 9, 2012

86 302

Last Topic: website entries by masoud on Oct 26, 2011

1429 5077

Last Topic: What apocalypse hit this community in the middle of 2011? by 75th on Feb 10, 2012

695 2910

Last Topic: Insert Image / File Fails by Russ Miller on Feb 10, 2012

84 291

Last Topic: How to have some other characters in entry basename automatically written by Afshin Haghighatnia on Dec 22, 2011

173 737

Last Topic: About the MT version stated in HTML source by Alex E. Schneider on Feb 7, 2012

190 567

Last Topic: Analytics Reporting by michael webster on Feb 5, 2012

48 210

Last Topic: An idea and also a request by Afshin Haghighatnia on Jun 29, 2011

64 246

Last Topic: jQuery in MT 5.1 still at 1.4 - why? by perlmonkey on May 25, 2011

code.sixapart.com

137 478

Last Topic: Getting a thumbnail with xpath by Peter on Mar 13, 2011

222 720

Last Topic: Custom Field for Asset Not Appearing by android on Feb 9, 2012