Login / Status
developer.Resource
Home . Documentation . Document Library
Sponsors
hosted by punkt.deTYPO3 and Open Source Magazine

8.5. FILE:

PHP-function: $this->fileResource()

Property:

Data type:

Description:

Default:

file

resource

If the resource is jpg,gif,jpeg,png the image is inserted as an image-tag. Al other formats is read and inserted into the HTML-code.

The maximum filesize of documents to be read is set to 1024 kb internally!

linkWrap

linkWrap

(before ".wrap")

wrap

wrap

altText

titleText

string /stdWrap

For <img> output only!

If no titltext is specified, it will use the alttext insteadIf no alttext is specified, it will use an empty alttext

longdescURL

string /stdWrap

For <img> output only!

"longdesc" attribute (URL pointing to document with extensive details about image).

[tsref:(cObject).FILE]

Example:

In this example a page is defined, but the content between the body-tags comes directly from the file "gs.html":

page.10 = FILE
page.10.file = fileadmin/gs/gs.html