Portlets
Real world scenario: You want content to be integrated on all pages by non admin backend users.
Normally you would make it via an element in your Typoscript template. But this way you are not too flexible - we want to enable normal users to set content for all pages.
So it can be done:
- ## define that you want to create a content element
- portlet = CONTENT
- portlet {
- table = tt_content
- select {
- # define from which page ID content will be taken
- # Change 50 to the page ID YOU want to use for that purpose
- pidInList = 50
- # define from which column content will be taken
- where = colPos=0
- }
- }
- # Import latter item in your page
- page = PAGE
- page.typeNum=0
- page.10 < portlet
Now you can provide a backend page whose content is being inserted in all pages. Do not forget to set this page to "not in menu".
