tips and tricks for movable type
more link on same line as body
April 05, 2004
Many users want their more (or "continue reading") link to appear right after their entry body, rather than being separated due to the paragraph tags MT inserts when you use the Convert Breaks formatting option.
This is what I wanted too when I ditched my splash page for a blog instead. Here's the basic code I used in my "previously" section (with some additional formatting removed for clarity).
<MTEntryIfExtended>
<MTEntryBody regex="RemoveEndingCloseP"> <a class="more" href="<MTEntryPermalink>#more" title="read the rest">(more...)</a></p>
<MTElse>
<MTEntryBody>
</MTElse>
</MTEntryIfExtended>
The Regex plugin code comes from "houchin" in this support forum topic (which is also what inspired the rest of the code).
Instead of having the Entry Body tag precede the test for an Extended Entry, everything goes inside the MTEntryIfExtended container. If there is extended text, the closing paragraph tag is removed by the Regex statement from the Entry Body, then coded back in to appear after the more link. If there is no Extended Entry, the Entry Body is presented normally.
And just in case it wasn't clear, you do have to install the Regex plugin if you expect this to work. ;-)
Comments
I like the blog better (except maybe you should post the pic too) :)
Do you mean the layout of the blog (main site)? Because I was thinking about making them all match, just not sure how big of an undertaking that would be. :-)
Other than that, my only thought was to start using one blog for everything. Hmmmm. Not sure how that would go over either hehe. But something to think about, I suppose.
I think you should make them all match. Most users get confused if you make drastic changes between pages.
yeah I am confused now. I dont know how to get around this site and the links I click all go back to this page.
Couldn't you achieve that by using the CSS property display:inline; ?