[TYPO3-dev] Dynamic Backend Editing
Oliver Hader
oh at inpublica.de
Fri Sep 8 08:59:48 CEST 2006
Steffen Kamper wrote:
> Hi Oliver,
>
> nice work !
> Is there any reason why it's only for php5 ?
> Why does the new record is beeing created without reload ? I don't see any
> ajax ...
>
> sry for asking without examin' the code ...
>
> I think this way is an important way to create more complex data - bernhard
> used a familar way in his kb_shop.
>
> vg Steffen
Hi Steffen,
the code is by now not very clean and doesn't use much functionality of
PHP5 at all. But, in future development, the architecture has to be
changed, also with using OO-PHP5.
The functionality cases are:
* just showing the data:
- easily done using TCEforms on the defined table in $TCA
* add a new dynamic record
- a xajax-call is sent to a PHP5 script the inits TYPO3
- again TCEforms is used to render a blank view of a new record
* delete a dynamic record
- if it has a proper uid, mark the entry to be deleted on the
client-side and set the HTML block to "hidden" using CSS;
on clicking the save button, the record is "deleted" on the database
- if it has no proper uid - like NEW... - the HTML block is simply
removed using JavaScript functions
* expand/collapse a record or it's fields
- simply a JavaScript function toggling style.display='none'
* saving the data is done via TCEmain, the data isn't saved when a new
dynamic record was created or some other action using dynbeedit has
happened - it's only done after clicking the save-button, as usual
It's a very simple structure as you can see.
I was participant at the T3DD06 and so also have seen the presentation
of the kb_shop. Berhard is creating his own dynamic tca.php, ext_*.php -
it's also a nice way (except clearing the cache thingy *g*) - but I
wanted to come away from the usual "click here, click wizard, click,
click" episodes and the "wait until the whole page with tons of images a
RTE-text has reloaded again" methods of the standard TYPO3. ;)
olly
More information about the TYPO3-dev
mailing list