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.
Might want to mention that the plugin is for 2.0 and not 1.6.x
I just tried getting it to work in 1.6.x and was wondering why I was getting a “No direct script access” warning coming up every time I tried to use it in a template. No biggie but I was thinking perhaps I’d done something stupid somewhere 😉
Thanks for sharing though, looks like it will be a handy little plugin this one.
Best wishes,
Mark
We just changed a small thing at devot:ee that should help people know when an add-on is EE1 only, EE2 only, or will work for both. I attached a small pic from the Lorem Ipsum Generator page here so you can see what I’m talking about. Hope that helps.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.