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
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