IDblog ... an information design weblog

July 07, 2003
Spotlighting comments

After a visit today to Zen Haiku, I was inspired to update IDblog's most recent comments area (see top, right) to preview comments rather than simply list number of comments per topic. Let know how you like it.

BTW, I think Movable Type is simply wonderful, but I'm not sure I can honestly say the same about their documentation. In particular, important attributes for tags (like the "trim_to" attribute for the "MTCommentBody" tag) aren't listed where the tag is. Bizarre. So instead you wind up having to search and find source code you can modify (thanks to scriptygoddess.com and fembat.net for their help).

So in case this might help some other MT blogger, here's what I've added to my template to get the results you see:


<$MTCommentAuthorLink show_email="0"$> in

.html"><$MTEntryTitle$>:

<$MTCommentBody remove_html="1" trim_to="150"$>...
.html">more>



Comments

I think trim_to isn't mentioned along with MTCommentBody because it's a global attribute which can be used on a number of different tags.

-- Posted by Joshua Kaufman on July 8, 2003 10:07 AM

Thanks for the tip, I was looking for a way to do this. I also added it to my category pages, to pull comments from within just that cateogry:

http://jade.mcli.dist.maricopa.edu/alan/archives/000115.html

-- Posted by Alan on July 12, 2003 11:42 AM
Post a comment
Note: Your comment will be reviewed prior to posting to minimize comment spam. Management regrets the inconvenience!


IDblog is Beth Mazur tilting at power law windmills. A little bit Internet, a little bit technology, a little bit society, and a lot about designing useful information products. Send your cards and letters to .

search this site
archives
categories
key links
groups
about moi
feeds
amphetadesk
rdf
xml
gratuitous right-nav promos


(pdf)




Creative Commons License; click for details

Powered by Movable Type