Help - Search - Members - Calendar
Full Version: Display Entries in Separate Directories?
Movable Type Community Forum > Additional Resources > Tips and Tricks
btrott
You can do this in many ways, but I think the following should work (though I haven't tried it).

1. Create the directory "category" (whatever it's actually called). CHMOD it to 777.

2. Create a new index template in MT.

3. Set the output file of the index template to "category/index.html".

4. Set the body of the index template to

CODE
<MTEntries lastn="1" category="CATEGORY NAME">
...
</MTEntries>


Where you fill in "..." with the appropriate formatting.

5. Save the index template, and rebuild your indexes. The file should show up in the directory "category/".
guyfisher
Is it possible to display MT entries on pages outside of the blog directory?

For example, if I have an MT blog in the root directory:

www.poo.com/

And I want to display the last entry for a certain category on the index page in a subdirectory:

www.poo.com/category/

Can I do this with MT alone or with SSI or PHP? What if I want to do this with several subdirectories?

Thanks.

Guy  huh.gif
guyfisher
That sounds like an excellent solution, assumming that MT will place index files in subdirectories of the main blog directory.

I think Plan B would be to create the index files as include files in the main blog directory and read them into the subdirectory pages with SSI or PHP.

Plan A is much more elegant and straightforward, though. Thanks for the idea.

Guy  smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.