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:

  1. ## define that you want to create a content element
  2. portlet = CONTENT
  3.  
  4. portlet {
  5.   table = tt_content
  6.   select {
  7.     # define from which page ID content will be taken
  8.     # Change 50 to the page ID YOU want to use for that purpose
  9.     pidInList = 50
  10.  
  11.     # define from which column content will be taken
  12.     where = colPos=0
  13.   }
  14.  
  15. }
  16.  
  17.  
  18. # Import latter item in your page
  19. page = PAGE
  20. page.typeNum=0
  21. 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".

Last update: 18.11.2005

Did this document help you?

Yes: Write us what helped you

Ok, but: Suggest improvements, report inaccuracies etc.

not helpful: Tell us what would have helped