[Typo3] Insert a Frontend Plugin in a template using typoscript?

Steven Bagshaw steven.bagshaw at unv.org
Mon Aug 15 17:46:27 CEST 2005


I'm sorry - I just noticed you said you wanted to do it via Typoscript ONLY.

So, if that's the case. I dunno! Sorry if I wasted your time.

Steven

"Steven Bagshaw" <steven.bagshaw at unv.org> wrote in message
news:mailman.1.1124120649.9006.typo3-english at lists.netfielders.de...
> Hi Ronald,
>
> This is what I do.
>
> temp.someContent < styles.content.get
> temp.someContent.select.pidInList = 239
>
> #239 is the ID of the page on which I have my plugin(s), in this case in
the
> "NORMAL" column (I am not using TemplaVoila). So, you could create a page,
> put your plugin on it and note the ID.
>
> Then in my template I output temp.someContent to one of my markers.
>
> myTemplate.subparts.SOMEPART < temp.someContent
>
> In your case, you can do
>
> page.10 < temp.someContent
>
> I'm sure there's lots of other ways of doing it, but that's what I do.
> Advantage is my plugin(s) can be controlled by editors or others in the
> usual way without modifying Typoscript.
>
> Steven
>
>
> "Ronald Renfro" <rrenfro at ilovehtml.net> wrote in message
> news:mailman.448.1124119323.24980.typo3-english at lists.netfielders.de...
> > 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.
> >
> > I found this info on the typo3.org but nobody has answered the poor
> > soul to this date.
> >
> > http://typo3.org/documentation/mailing-lists/english-main-list-
> > archive/thread/528/?tx_maillisttofaq_pi1%5Bmode%
> > 5D=5&tx_maillisttofaq_pi1%5Bpointer%5D=1
> >
> > since I have a similar problem I am asking the question again.
> >
> > this is what i have worked out:
> >
> > 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
> > }
> >
> > #output random image
> > page = PAGE
> > page.typeNum = 0
> > page.10 < plugin.tx_wagrandomimage_pi1
> >
> >
> > any help would be cool!
> >
> > regards
> > Ronald Renfro
>
>





More information about the TYPO3-english mailing list