[TYPO3-mvc] MM relation to pages Table

Franz Koch typo3.RemoveForMessage at elements-net.de
Thu Mar 3 11:05:53 CET 2011


Hey Frank,

> I have a simple relation:
>
> object can be active on multipe pages
...
> Do I have to create a Domain_Model_Pages Object whose columns I also
> have to map via TypoScript to the already available typo3 database table
> "pages"?
>
> Or is there a much simpler way to achieve that?

sorry, I'm haven't understood the exact problem here. How do you have to 
interact with the pages?
In order to deal with pages in Extbase (display page related information 
in the templates and assign them to objects) you'll need a according 
domain model. But if you only like to fetch a entity stored on a 
specific page, you don't necessarily need a page model for that - except 
you like to have a relation to the pages within your entity and display 
the related pages (e.g. $yourObject->getPages()).

Could you give some more details on what you try to achieve? Then we can 
give you a definite answer on what to do.

-- 
kind regards,
Franz Koch


More information about the TYPO3-project-typo3v4mvc mailing list