content management system - How to display a snippet of a field in Expression Engine -
Text after "
Where a user can add news articles I have a news section on my e website.
3 Last added articles will be displayed on the homepage with a news title, date and news body copy. Here's my code:
& lt; Ul & gt; {Exp: Channel: Entry channel = "News" condition = "Featured | Open" disable = "catergories | Member_data | pagination" limit = "3"}
li> & Lt; H3 & gt; & Lt; A href = "{title_permalink = Site / News"} "& gt; {title} & lt; h4 & gt; to date & lt; / H4 & gt; & lt; p & gt; {body} & lt; / p & gt; & lt; / li & gt; {/ exp: Channel: Entries} & lt; / ul & gt;
take a look at the EE documentation section.
I think "four boundaries" will be what you want to do, alternatively look at the "word boundary".
Use the kind so much:
< Code> {exp: char_limit total = "100"} {body} {/ exp: char_limit}
Comments
Post a Comment