[Population: One] <A HREF="http://popone.innocence.com/ar

Jan. 9th, 2003 03:12 pm
bryant: (Default)
[personal profile] bryant

I'm sort of fooling around with a side project, with the intent of using Movable Type as a general content management system, and I came up with something that I thought was kind of clever. I wanted a list of offsite links on the front page, and I thought it might be nice to allow other blog authors to add links, but I didn't want to give full template modification access. Thought about it a while; came up with a solution.

I created a category named "Offsite Links" and added a bunch of entries in that category. Each entry had the name of the destination site as the title, and the URL for the site as the entry body.

Then I added the following MT template code to the front page template:

<MTEntries sort_by="title" sort_order="ascend" category="Offsite Links">
<a href="<$MTEntryBody convert_breaks="0"$>"><$MTEntryTitle$></a><br/>
</MTEntries>

Boom. Quick and easy link list effect. Note that this would also be a way to maintain a blogroll if you didn't want to use blogrolling.com.

dtm: (Default)
From: [personal profile] dtm
So that, for example, someone couldn't make the content of the entry contain extra HTML that causes great mischief, correct?

October 2025

S M T W T F S
    1234
567891011
12131415161718
19202122232425
2627 28293031 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 25th, 2026 12:48 pm
Powered by Dreamwidth Studios