[Typo3] Insert a Frontend Plugin in a template using typoscript?
Daniel Doesburg
typo3 at doesburg.biz
Mon Aug 15 19:57:32 CEST 2005
Ronald Renfro schreef:
> hello list,
>
> I am trying to insert the plugin "random images from directory" on
> every page. Is it possible to
> to insert a plugin via typoscript only.
Yes
I suppose you use MTB?
This part is correct (if it works in your example).
> setup:
>
> # setup ext
> plugin.tx_wagrandomimage_pi1 {
> noDuplicates = 0
> alt =
> defaultDir = fileadmin/random_images/
> filetypes = gif,png,jpg,jpeg
> numImages = 1
> templateFile = EXT:wag_randomimage/pi1/tx_wagrandomimage_pi1.tmpl
> recursive = 0
> }
In your HTML-template mark a placeholder like:
<div id="randimg">map random image</div>
In Typoscript between all the other similar lines:
subparts.randimg < plugin.tx_wagrandomimage_pi1
Success,
Daniel
More information about the TYPO3-english
mailing list