This for ExpressionEngine 2 only
Here’s my second extension in two days, a lorem ipsum (standard dummy text) generator for words, sentences and paragraphs.
It would have been up earlier but figuring out git was a little painful.
Examples
{exp:sm_lorem_ipsum}
{exp:sm_lorem_ipsum type="w" count="10"}
{exp:sm_lorem_ipsum type="s" count="5"}
{exp:sm_lorem_ipsum type="p" count="3"}
{exp:sm_lorem_ipsum type="p" count="3" opening="<div>" closing="</div>"}
Parameters:
type=”“
Defaults to “w”. The type of text to return: (w) words, (s) sentences or (p) paragraphs.
count=”“
Defaults to 10. Number of words, sentences or paragraphs to return.
opening=”<div>”
Defaults to “”. The tag to open a paragraph.
closing=”</div>”
Defaults to “”. The tag to close a paragraph.
Download:
You can get the code from my GitHub page or you can download the attachment.
