Help - Search - Members - Calendar
Full Version: Extended Items/text Are Not Displayed Within Entries.
Movable Type Community Forum > Using Movable Type > Entries and Archives
anina
hi all,
i have added text in the 'extended' tab of entries but it doesn't show! It only displays what is in the EntryBody


the code is:

<mt:EntryBody words ="100">
<MTEntryIfExtended>

</MTEntryIfExtended>
</mt:EntryBody>
</MTEntries>

is there anything wrong with this? if there is text in the extended tab, should it not display it after the first 100 words of what it contains in the entry body tab?

thanks so much in advance for your help!!
anina
Su-
QUOTE (anina @ Jul 24 2008, 08:01 AM) *
<MTEntryIfExtended>

</MTEntryIfExtended>
is there anything wrong with this?

Yes. It's empty.
All you're doing there is checking if there's extended content, then not telling it to do anything about it either way. (Well, technically, it'll output a blank line in the HTML source...)

Also, EntryBody isn't a container tag. Get rid of that </mt:EntryBody> I have no idea what that might also be causing.
shenews
Try this:

CODE
<mt:EntryBody>
<MTEntryIfExtended>
<MTEntryMore>
</MTEntryIfExtended>


I'm assuming you're putting something unrelated into the extended tab, otherwise, in your original example, you'll have the first 100 words, then jump to whatever's in the extended tab, and you'll miss anything between the 100th word and what's in the extended tab.

The Template Tag Reference can be invaluable in helping you sort these things out.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.