Monday, April 22, 2013

Translate- and Tree-behavior working together

Hi,

Can anyone tell me how to make the Translate- and Tree-behavior work together with a minimum of code? Especially when the $displayField is translated too.

As I found out the Translate behavior doesn't fetch translated field values from 'related' tables. And with the Tree-behavior the table is related to itself for the 'parent' and 'child' items but the automatic data retrieval doesn't give me the translations (from the i18n table) for the displayFields.

So should I create seperate requests to retrieve these translated displayFields to for the parent an the children? Or is there another, 'cleaner' way?

Thanx for your opinion.

Luc

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments: