[TYPO3-mvc] Definitive state of MM-relational-queries in Extbase

Jochen Rau jochen.rau at typoplanet.de
Tue Apr 13 11:33:14 CEST 2010


Hi Mario.

On 13.04.10 11:22, Mario Beiser wrote:
> I have a blog model, a post model and a relational table blog_post_mm.
>
> No I want to show the name of the according blog in the list of my
> posts. Therefore I can use the "dot"-syntax? Not quite sure about how to
> handle that.

Just add a "blog" property with the according TCA definition to your 
Post object. Extbase will automatically put the Blog object in place, so 
you can say {post.blog.title} in your template. Have a look at the 
BlogExample how this is done there.

Jochen


More information about the TYPO3-project-typo3v4mvc mailing list