[TYPO3-english] Crop content
Tapio Markula
tapio.markula at xetpoint.fi
Mon Oct 20 15:33:50 CEST 2008
Tyler Kraft kirjoitti:
> Hey Tapio,
>
> No. But you could always add the h2 as the main part of the menu, and
> then ass the abstract as an "after" cObject - that way you could crop it
> using the stdWrap properties
Now new problem
1.NO.after{
data=field:abstract
crop=180
stdWrap.dataWrap(
<p>|...</p>
<p class="readMore"><a
href="index.php?id={field:uid}"><b>Lue lisää <img
src="fileadmin/template/kuvat/nuoli.gif" alt="" height="7"
width="9"></b></a></p>
</td></tr>
)
}
the value 'crop' crops also the html content, not just the content from
the field 'abstract'
More information about the TYPO3-english
mailing list