DEPRECATION WARNING

This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

Lorem Ipsum

Author:Kasper Skårhøj
Created:2002-11-01T00:32:00
Changed by:Kasper Skårhøj
Changed:2004-07-02T22:19:20
Author:Kasper Skårhøj
Email:kasper@typo3.com
Info 3:
Info 4:

Lorem Ipsum

Extension Key: lorem_ipsum

Copyright 2004, Kasper Skårhøj, <kasper@typo3.com>

This document is published under the Open Content License

available from http://www.opencontent.org/opl.shtml

The content of this document is related to TYPO3

- a GNU/GPL CMS/Framework available from www.typo3.com

Table of Contents

Lorem Ipsum 1

Introduction 1

What does it do? 1

Screenshots 1

Wizard Configuration 2

Manual 3

Inserting "Lorem Ipsum..." 3

Dummy content for localized websites 3

Introduction

What does it do?

It provides a TCEform wizard for adding industry standard dummy text to selected form fields in TYPO3. The dummy content is the classic "Lorem ipsum dolor sit amet..." taken from the website " www.lipsum.org ". It also provides a selection of 40 dummy pictures.

Screenshots

The extension will add wizard icons to all header, bodytext, caption, description, keyword, title etc. fields of Content Elements and Pages:

img-1

By clicking the icons dummy text is put into the associated form field.

Clicking images in the image matrix will add the image to the image list and attached to the record when saved. Images are found in 7 different aspect ratios.

Wizard Configuration

The basic configuration of the wizard in the "wizards" array of a TCA field configuration is like this:

   // Create wizard configuration:
$wizConfig = array(
        'type' => 'userFunc',
        'userFunc' => 'EXT:lorem_ipsum/class.tx_loremipsum_wiz.php:tx_loremipsum_wiz->main',
        'params' => array()
);

The "params" key has these key/value options:

type

Key

type

Data Type

string (keyword)

Description

Type of Lorem Ipsum text to add. Keywords are:

  • title : Adds a small amount (<25) characters of dummy text - fitting page titles.
  • header : Adds a medium amount of dummy text fitting headers for such as content elements (<60 chars)
  • description : Adds a large amount of dummy text, fitting descriptions, image captions etc.
  • word : Adds a single word of dummy text
  • paragraph : Adds a paragraph of dummy text. The paragraph is a handful of "description" length sentences.
  • loremipsum : Adds specifically "Lorem ipsum dolor sit amet"
  • images : (Only for "group" fields with "file" internal type) Creates a matrix with 42 dummy images to select.

endSequence

Key

endSequence

Data Type

comma list of integers

Description

What sequence of characters to end each dummy string with. That could be "46,32" for period and space. Or "10" for line break.

add

Key

add

Data Type

boolean

Description

If true, the a click on the wizard button will append the dummy text to the field. (Default behavior is to substitute all field content with dummy text.

count

Key

count

Data Type

integer

Description

Number of dummy content samples to cycle through.

Continously clicking the wizard icon will select other dummy text composites and this number points to the amount of options there are. Default is 10.

Manual

Inserting "Lorem Ipsum..."

In records for pages, content elements and page overlay records you simply click the "Lipsum" button to the right of input fields where Lorem Ipsum applies. See screenshot above.

Dummy content for localized websites

If you are developing localized websites it can be practical to insert dummy content that is visually different from the default language. It makes it easy for you to see if your application works correctly if you use russian or asian characters as dummy data. It will even help to expose places where you do not handle characters sets correctly.

You configure other types of dummy content than the default "Lorem Ipsum" kind (which is totally ASCII based) in the System Language records. All records that refer to this system language as their language definition will now use that type of dummy content instead.

img-2 Lorem Ipsum - 3