[Typo3] How I put some fields in marker1( styles.content.get )and put others fields in marker2(styles.content.getLeft)

Kraft Bernhard kraftb at kraftb.at
Tue Apr 12 18:49:32 CEST 2005


ElRicko wrote:

> In my file class.user_extension_pi1.php function singleview, I want to
> put some fields in marker ###CONTENT### and some fields in marker
> ###CONTENT2###.

>  subparts.CONTENT < styles.content.get
> 
>  subparts.CONTENT2 < styles.content.getLeft

I guess you have inserted your Plugin (Extension) as normal Content Element.
In this case if you want to get some output of the plugin rendered "with"
styles.content.get (you put your Plugin in the "Normal" column) and some with
styles.content.getLeft then you will need to create 2 FE Plugins.
Put one in the Normal column as you already did and the second in the "Left"
Column.

As you will need to have 2 classes each containig a part of the code you will
probably want to create a file which contains code shared between those two
parts (so you don't have the necessarity to maintain the same piece of code
two times)

There is another trick how you can use "shared" piVars ... but ask for that if you
need it.



greets,
Bernhard



More information about the TYPO3-english mailing list