Trimmer
Plugins
All this little plugin does is cutting X characters from the beginning and / or the end of a given text and returns the trimmed string.
Tag:
{exp:trimmer}{/exp:trimmer}
Parameters:
left="X”
cuts X characters from the beginning of a text
right="X”
cuts X characters from the end of a text
Example:
{exp:trimmer left="3" right="4"}
<p>Some text to trim.</p>
{/exp:trimmer}
returns:
Some text to trim.
It’s new
Plugins
This simple little plugin can be used to display some content (like an image) based on the age of an entry.
If the entry has been posted within the number of days specified, the content inside the tag-pair is returned.
Example:
{exp:itsnew date="{entry_date}" days="10"}
<img src="new.gif" />
{/exp:itsnew}
If the entry is older than 10 days nothing is returned otherwise the image will be displayed.
Parameters:
This one is mandatory.
date="{entry_date}"
Optional. Number of days to compare against entry_date. Defaults to 30.
days="10"
Search Marker Plugin
Plugins
When using the EE search module, this plugin will highlight the search terms on the results-page by surrounding them with <span class="marker"></span>.
This plugin is only intended to be used on a search results page, that is, inside {exp:search:search_results}{/exp:search:search_results}.
Step one:
Add the following style to your CSS and modify the color as you see fit.
.marker { background-color: #ff0; }
Step two:
Wrap your fields with the plugin tags.
{exp:search_marker}
<p>{summary}</p>
<p>{body}</p>
{/exp:search_marker}
TruncHTML - Yet another text limiter
Plugins
Most current version is 1.2.2
- Truncates HTML/Text after the specified number of characters.
- Does not count characters in HTML-tags.
- Does not cut-off in the middle of tags.
- Closes all open tags.
So if you limit the following text to 80 chars…
<p class="quote"><b>Never let your sense of morals get in the way of doing what's right.<br />
<em>Isaac Asimov</em></b></p>
the result will be ...
<p class="quote"><b>Never let your sense of morals get in the way of doing what's right.<br />
<em>Isaac</em></b></p>
instead of ...
<p class="quote"><b>Never let your sense of morals get in the way of doing what's
... which would probably screw the rest of the page.
Strip Linebreaks
Plugins
This plugin strips any new lines and carriage returns from the text between its tags.
Example:
{exp:strip_lb}
some text<br />
some more text<br />
even more text<br />
{/exp:strip_lb}
returns:
some text<br />some more text<br />even more text<br />

