Jump to content

Recommended Posts

Posted

I'm looking for suggestions of dummy text generators.

Some things on my wishlist:

  • Not the usual cod-latin "lorem ipsum" - you'd be surprised how many people out there have no idea that this is dummy text ("What's with all the foreign words? I want an English website").
  • Uses actual English words, but such that it is obviously nonsense text to be replaced.
  • Nothing that is going to tread on any toes (e.g. I can imagine some clients not seeing the humour in corporate ipsum).

I really liked the generator that Ryan used in the blog profile (it had a great "fairy tale" option) but unfortunately it has folded: http://duckisland.com/GreekMachine.php

I have done some Googling BTW, just haven't found anything ideal.

Posted (edited)

Maybe it would be a good idea to build something like a textformatter module, that serves the desired content via placeholders (like Hanna), but more simple.
For example:

{{loremipsum::w=200,p=5,s=en-nonsense}}

inserts 200 words in 5 paragraphs from a textbase called "en-nonsense".

This way we would be able to collect and share textbases.

Optionally I would like to behave the textformatter to only insert content in $config->debug mode. Without $config->debug, it silently should extract the placeholders without injecting content.

Should we start on this? :)

 

edit: additionally there should be an API method to retrieve content from within template files.

Edited by horst
  • Like 2
Posted
4 minutes ago, horst said:

Maybe it would be a good idea to build something like a textformatter module, that serves the desired content via placeholders (like Hanna), but more simple.
For example:


{{loremipsum::w=200,p=5,s=en-nonsense}}

 

@DaveP's module can be useful for this. It can be extended for other verbs and providers too.

 

  • Like 1
Posted

3 more lists (there will be duplicates, certainly) - haven't checked them all out, so be careful. 

  1. http://mentalfloss.com/article/61003/10-funnier-alternatives-lorem-ipsum
  2. https://www.buzzfeed.com/saraboboltz/18-lorem-ipsum-alternatives-for-design-nerds-af7c?utm_term=.dtLA3o6mO#.tqQLJyEBK
  3. https://www.sitepoint.com/10-lorem-ipsum-alternatives/

I like filerati but their website seems to have been hacked?

Posted
9 minutes ago, horst said:

Optionally I would like to behave the textformatter to only insert content in $config->debug mode. Without $config->debug, it silently should extract the placeholders without injecting content.

This solution should have its own config setting as my local dev sites are always in debug mode but with real content already in place. We would need a way to disable those textformatters quickly and maybe conditionally like: created>2017-10-16 

Posted

@netcarver has already forked my module and when I figure out how, I will pull (some of) his changes into mine. Anyone else is welcome to fork and create pull requests.

For example, @horst's suggestions could be quite easily incorporated - it could also be made configurable so that different dummy text source files could be selectable, but that would be stretching my skills somewhat, so I would welcome others' input.

  • Like 2
Posted

How could I missed it? ???

Will have a look at your module, @DaveP, and come back here, if there is something that I miss. :)

 

@szabesz, with my logic, there will be nothing injected into your output, unless you have explicitly inserted a placeholder into your text-inputfield. But if you have inserted a placeholder plus other content, then only the other content will be displayed. The placeholder gets stripped out without $config->debug enabled. (Also should be a configurable setting)

  • Like 2
Posted
45 minutes ago, netcarver said:

@DaveP I've now initiated a pull-request for your consideration.

...which I just merged/committed (whatever the proper term is). ^-^

Going forward, I'm going to look at making this thing configurable, if only to allow a choice of dummy text file, mainly so I can switch to pommy ipsum when required.

  • Like 1
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...