IPB

Welcome Guest ( Log In | Register )

Movable Type

We're moving to movabletype.org!

At long last, we're moving to forums powered by, well, Movable Type itself. You'll want to bookmark http://forums.movabletype.org/ for future reference, and in the meantime you can view these old forums as a read-only archive of past posts. Thanks for being part of the community!

 
Reply to this topicStart new topic
> Headline and subhead in MTEntryTitle
kevin
post Sep 24 2003, 10:53 AM
Post #1





Group: Members
Posts: 21
Joined: 8-April 02
From: Massachusetts
Member No.: 530



I want to enter this in an entry's Title field
QUOTE
Headline / Subhead
and end up with this HTML on my web page
CODE
<h1>Headline</h1>
<h2>Subhead</h2>

How do I do this? The SplitLoop plugin almost does it. KeyEntries and some rubrics would work on multi-line fields like MTEntryBody. But those don't quite do what I want. Any ideas?
Go to the top of the page
 
+Quote Post
kevin
post Sep 25 2003, 09:47 AM
Post #2





Group: Members
Posts: 21
Joined: 8-April 02
From: Massachusetts
Member No.: 530



Well, a little more thought (not all that much more, I must confess) helped me see that this can be done using the SplitLoop plugin.

CODE
<h1><MTSplitLoop value="[MTEntryTitle]" glue=" / "><MTSplitLoopValue></h1>
<h2></MTSplitLoop></h2>
Go to the top of the page
 
+Quote Post
kevin
post Oct 9 2003, 10:55 AM
Post #3





Group: Members
Posts: 21
Joined: 8-April 02
From: Massachusetts
Member No.: 530



Still searching for a true solution, actually. My first "solution" yields correct-looking results but on further inspection I see it generates invalid HTML (unless there's no subhead).

The reason for this is that with MTSplitLoop you can't quite go from "A;B;C" to "A","B","C". From what I can tell, you can only get "A","B","C",. Note the final comma, which is a significant difference.

Any ideas on how to reach my "head / subhead" goal, anybody?
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 11.24.09 - 10:55 PM