[TYPO3-templavoila] include a plugin in a fce
carmen fröwis
cf.modulor at gmail.com
Thu Apr 9 14:04:12 CEST 2009
ok, i figured out, that if i add ".field" it works with other fce-fields
(e.g. field_someThing2) but not with the one i want (field_someThing).
......
<field_someThing2 type="array">
<tx_templavoila type="array">
<title>headline</title>
<sample_data type="array">
<numIndex index="0"></numIndex>
</sample_data>
<eType>input_h</eType>
</tx_templavoila>
<TCEforms type="array">
<config type="array">
<type>input</type>
<size>48</size>
<eval>trim</eval>
</config>
<label>headline</label>
</TCEforms>
</field_someThing2>
<field_someThing type="array">
<tx_templavoila type="array">
<title>addresses</title>
<description>dont't map this</description>
<sample_data type="array">
<numIndex index="0"></numIndex>
</sample_data>
<eType>input</eType>
<proc type="array">
<HSC type="integer">1</HSC>
</proc>
</tx_templavoila>
<TCEforms type="array">
<config type="array">
<type>group</type>
<internal_type>db</internal_type>
<allowed>tt_address</allowed>
<size>15</size>
<maxitems>100</maxitems>
<minitems>0</minitems>
<autoSizeMax>10</autoSizeMax>
<show_thumbs>0</show_thumbs>
<wizards>
...
</wizards>
</config>
<label>addresses</label>
</TCEforms>
</field_someThing>
....
userFunc = tx_somePlugin_pi1->main
someThing.field = field_someThing
someThing2.field = field_someThing2
....
greets, carmen
2009/4/9 carmen fröwis <cf.modulor at gmail.com>
> 2009/4/8 Claudius Heitz <typo3 at heitz.info>
>
> > Hi carmen,
> >
> > > is it possible to include a plugin in a fce? the plugin should be
> > > configurable in the fce-be.
> > >
> >
> > yes, this is possible.
> >
> > For an example with the smoothgallery see here:
> >
> >
> http://lists.netfielders.de/pipermail/typo3-project-templavoila/2007-December/002738.html
> >
> >
> > One drawback is that you cannot include the typoscript setup of the
> > plugin by putting something like:
> > <INCLUDE_TYPOSCRIPT: source="FILE: EXT:commerce/static/setup.txt">
> > But you can solve this by copying the setup of the plugin into the
> > datastructure.
> >
> >
> > Greetings
> > Claudius
> > _______________________________________________
> > TYPO3-project-templavoila mailing list
> > TYPO3-project-templavoila at lists.netfielders.de
> >
> >
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-templavoila
> >
>
> hi!
>
> thank you - the example with rgsmoothgallery works perfect. i also tried it
> with an other plugin, but here i've experienced some problems:
>
> i would like to pass some values to my function, but i get the fieldname
> instead of the values....?!?
> ....
> userFunc = tx_somePlugin_pi1->main
> someThing = field_someThing
> ....
> i mapped the field_someThing and in frontend i see the correct values ( i
> inserted in fce), but if i debug in tx_somePlugin_pi1->main, i don't get
> the
> values - i get the fieldname (field_someThing).
>
>
> greets, carmen
> _______________________________________________
> TYPO3-project-templavoila mailing list
> TYPO3-project-templavoila at lists.netfielders.de
>
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-templavoila
>
More information about the TYPO3-project-templavoila
mailing list