• Lorem Ipsum Content Generator#

  • pureppl Reply #1, 11 months, 3 weeks ago

    Reply
    Hello,

    don't laught, but i did it: An Extra that generates random Resources filled with LoremIpsums (incl randomly appending them to a parent)

    https://github.com/oleics/LoremIpsum
    Currently you can only specify the number of resources to create. There are other parameters to controll the generation that will be implemented fully in a later version.

    I attached a package of it.

    Have Fun and Good Night.


  • rthrash Reply #2, 11 months, 3 weeks ago

    Reply
    Absolutely cool Add-on idea. Was just thinking about something like this the other night in fact.


  • pureppl Reply #3, 11 months, 3 weeks ago

    Reply
    Quote from: rthrash at May 31, 2011, 09:39 PM
    Absolutely cool Add-on idea. Was just thinking about something like this the other night in fact.

    Thank you, good to know.

    I've added more parameters to the CMP, like the probability of isfolder or the number of words for the content.

    Package is attached to this post, feedback is welcome.


  • samba Reply #4, 11 months, 3 weeks ago

    Reply
    Very clever... I like that! I tend to go here all the time....

    http://www.lorem.biz/loremipsum.asp

    but maybe I won't need to if I use your plugin. Thanks!

    Dave


  • Mark Hamstra - MODX Complete Team Reply #5, 11 months, 1 week ago

    Reply
    I love it!
    This is just what I need when developing and am in need of some content. Few clicks and one.

    Love that 0.6 update as well, all the options are amazing


  • pureppl Reply #6, 11 months, 1 week ago

    Reply
    Hello Mark H.,

    Quote from: Mark at Jun 10, 2011, 12:11 PM
    I love it!

    Thank you so much
    Quote from: Mark at Jun 10, 2011, 12:11 PM
    This is just what I need when developing and am in need of some content. Few clicks and done.

    Thats was too a reason for me to start it. For the development
    of another extension called Statiker i need massive amounts
    of content for testing. (http://modx.com/extras/package/statiker)

    Then there was that post form Dino Dini about Randomness in game-ai
    http://dinodini.wordpress.com/2011/03/29/randomness/ Anybody remembers Dino Dini and its GOAL! game?

    And to tell you the whole story, the first line of code started
    with the need to know how the resource-menu behaves when there is
    a massive number of resources. Result: Try yourself and you'll see
    Quote from: Mark at Jun 10, 2011, 12:11 PM
    Love that 0.6 update as well, all the options are amazing

    LoremIpsum 0.6.1-alpha1 is now downloadable via Package Manager.

    Have fun and thank you
    EDIT: LoremIpsum 0.6.1-alpha1 allows for the parent-id to be 0


  • Frogabog Reply #7, 3 months, 3 weeks ago

    Reply
    I'm not sure this is working in 2.2.0-pl2.

    I tried it first as a child. No resource appeared (forgot to download the text file).

    Tried again with the parent set to 0. I saw that it created resource ID 53, which should have been the ID of the first try. However, no such resource exists in the tree.

    Here's the output of the second try:

    /*
    * MODX Console Output
    *
    * @date 2012-01-27 10:11:15
    */
    Resource 53 created.
    
    
    /* EOF */


    I then created a test page to see what ID it would have. This test page is ID 55. Somehow, between creating the second missing loremipsum resource as ID 53 and the regular test page, ID 54 was skipped.

    The reality is, the first loremipsum generation is probably ID 53 but since I can't locate it or the second one, I can't verify this.