tips and tricks for movable type
display extended entry text in popup window
December 27, 2002
Still going through those bookmarks. Here's a trick taken from this support forum thread, where Kristine explained how to have the extended entry text display in its own popup window.
1. Create a second Individual Entry Archive Template. Go to List Templates and click on Create new archive template. Name the template (something like "Individual Extended") and define the basic layout you want, with the <MTEntryMore> tag in the body. SAVE the template.
2. Add the new template to your archiving. Go to Blog Configuration | Archiving and click the ADD NEW... button. In the popup window, select the new template you just created from the Template: pulldown menu, and select the archive type with which you'd like to associate that template from the Archive Type: menu. Then click ADD.
3. Set the Archive File Template. Use code like this:
and press the SAVE button to update your configuration.
(Note that you should leave the radio button selected on your original Individual Entry Archive Template, as this determines the page to link to when you use <MTEntryLink archive_type="Individual">.)
4. Define the popup link. Here's Kristine's suggested code:
<span class="extended"><a href="<$MTBlogArchiveURL$><$MTEntryID pad="1"$>_extend.html" onclick="OpenComments(this.href); return false">MORE</a></span>
</MTEntryIfExtended>
This will use the OpenComments function (which you must, of course, have defined in your page) to pop open the extended entry text in a window the same size as your popup comments window.
5. Rebuild your files. You don't need me to explain that one, right? :grin:
Comments
hmm.. i wonder if this can be incorporated into the 5-step photolog posted here: http://www.thegirliematters.com/tips/archives/0205/photolog_in_5.php
i think i'll go try and tweak it out. what do you think?
Hmm I'm struggling with something.
I would love to associate a particular template for each individual entry. Do you know any plug-ins which does that?
So For example you could all along autumn 2003 have a particular template and change it in winter without destroying the templates and individual entries of the previous seasons.