[TYPO3-dev] COA_INT in extension ?
JoH
info at cybercraft.de
Fri Sep 15 11:46:12 CEST 2006
> i ran in a problem with an extension. The extension is cached cause
> the content should be searchable.
> One part of the extension is a group of links where i check if the
> user allready clicked the link before, after that the link will be
> disabled.
> So this links must be "non cached".
> When i do this with TS i use a COA_INT for an uncached object. Is
> there a possibility to do simular in extension or is there another
> way to do this ?
Nothing similar - since you will do exactly the same thing in your
extensions:
Just call cObjGetSingle and feed it with a simple COA_INT setup.
If you want to keep it flexible, this setup should be taken from a TS-setup
provided in the static folder. If you don't want people to modify it, you
can write the TS-setup as an Array in your PHP code.
$my_COA_INT_setup = array (
'10' => 'TEXT',
'10.' => array (
'value' => 'whatever'
)
);
$uncached_content = $this->cObj->cObjGetSingle('COA_INT',$my_COA_INT_setup);
Should be working in a similar way ...
Joey
--
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your knob sometimes!)
Dieter Nuhr, German comedian
openBC: http://www.cybercraft.de
T3 cookbook: http://www.typo3experts.com
More information about the TYPO3-dev
mailing list