[Typo3-dev] TV_TEMPLATE - idea
dan frost
dan at danfrost.co.uk
Fri Aug 27 16:52:19 CEST 2004
Ok, I've just build the ObTS datatype "TV_TEMPLATE". It works like this
(this is ObTS - which is why bits of it will look strange):
plugin.tx_resmanmd_pi2.searchbox = TV_TEMPLATE
plugin.tx_resmanmd_pi2.searchbox {
// this is the normal RECORDS datatype
template = RECORDS
template {
source = 1
tables = tx_templavoila_tmplobj
conf.tx_templavoila_tmplobj = TEXT
conf.tx_templavoila_tmplobj.field = templatemapping
}
wrap = <div style="background-color : #ccaaaa; padding : 5px;"> | </div>
_attributes.wrap = 1
wrap.insertdata = 1
// there is a TV field called "search"
search = TSOTEXT
search {
value = <input type="text" width="100"
name="data[mdsearch][{gpvar:uref}][searchstring]" value="{resource :
'search' searchstring}"/>
insertdata = 1
}
// there is a TV field called "option"
option = TEXT
option.value = option goes here...
}
This should be published soon... It will be in EXT:obts_core
dan
Jan-Hendrik Heuing [netfielders] wrote:
> Sounds generaly interesting, as it would make it possible to use it only
> partly.
>
> But I am more interested in the content elements and the way of adding those
> as an editor. Are there some thoughts about improving that so that editors
> do not have to choose DT etc ?
>
> At least it's too complicate for some of our customers :) Well, we didn't
> use it a lot yet, as I prefer the "old" way as the interface is easier for
> the client. At least the record view of the flexforms.
>
> JH
>
>
> "dan frost" <dan at danfrost.co.uk> schrieb im Newsbeitrag
> news:mailman.1.1093603658.11929.typo3-dev at lists.netfielders.de...
>
>>What do you think about a datatype "TV_TEMPLATE" which allows you to use
>>TemplaVoila in typoscript?
>>
>>dan
>
>
>
More information about the TYPO3-dev
mailing list