[TYPO3-english] code doesn't work for tt_news

Francisco Cifuentes francisco.cifuentes.silva at gmail.com
Tue Dec 16 15:23:26 CET 2008


Thanks Joey by the clarification, I only have obtained the answer using the
intuition and common sense, is better to know the "why" of the things.
________________________

Francisco A. Cifuentes Silva
Ingeniero de Proyectos
Instituto de Informática Educativa
Universidad de la Frontera
Temuco, Chile
Tel: +56 45 325277
Fax: +56 45 325263
http://www.iie.ufro.cl


2008/12/16 JoH asenau <info at cybercraft.de>

> Francisco Cifuentes wrote:
> > Possibly in strict terms is not correct, but if it is working, what
> > is the problem? :P
>
> Just to clarify the problem:
>
> The default setup of plugin.tt_news contains more than just a simple text
> for "code", since the value is taken form a DB field.
> If you just do something like this
>
> 10 < plugin.tt_news
> 10.code = BLAH
>
> the rest of the setup remains intact.
>
> 10.code = BLAH
> 10.code.field = select_key
>
> If the field select_key contained some value now it would override the
> value
> BLAH.
> Since there is no value at all it this means, the code would remain empty
> unless you set the defaultCode to some value, which is what you did. The
> select_key is empty and overrides your value, defaultCode is inserted
> instead.
>
> I dind't check it, but I guess that it would help if you clear the code
> completely befor setting your value, which is always a good idea when you
> recycle some existing TS code:
>
> 10.code >
> 10.code = BLAH
>
> HTH
>
> Joey
>
> --
> Wenn man keine Ahnung hat: Einfach mal Fresse halten!
> (If you have no clues: simply shut your gob sometimes!)
> Dieter Nuhr, German comedian
> Xing: http://contact.cybercraft.de
> T3 cookbook (2nd edition): http://www.typo3experts.com
> Jobs: http://www.professionals-only.com
>
>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>


More information about the TYPO3-english mailing list