[TYPO3-mvc] Select-field with items-array and foreign_table

Franz Koch typo3.RemoveForMessage at elements-net.de
Thu Jan 28 17:35:26 CET 2010


Hi,

>> I think {article.category.title} should render nothing if the category
>> don't exist.
>> So I catched the exception. See my patch uploaded with the bug report.
>
> Hm. I am not sure if this should be the intended behavior. It's a
> difference, if there is an empty title or if there is no parent object.

but the result is the same - no title ;) So template wise I think this 
is the intended behavior. Better display nothing to the visitor then a 
exception ;)
And if the template is depending on the category in this case, he can 
still use a if-viewHelper if needed. But if it's ok for the title to 
simply not appear if missing, why flooding the templates with hundreds 
unnecessary if-viewHelpers only to prevent exceptions. I also patched my 
local version of FLUID to reduce the number of exceptions thrown for 
nothing, although I patched it a bit different, but at the same place.

-- 
kind regards,
Franz Koch


More information about the TYPO3-project-typo3v4mvc mailing list