New subtemplates for TemplaVoila

With classic templating it is possible to define new pagetypes.

With TemplaVoila you know how to define a printversion. (Select "printer friendly" for "type of rendering")

Eine Popup-Version definieren

Three steps are neccessary:

  1. Provide a new renderingtype in the BE-formular, this could be done easy with TS-Config:

    TCEFORM.tx_templavoila_tmplobj.rendertype.addItems.popup = Popupversion

  2. Now you have to define a new TemplaVoila-Templaterecord for this new renderingtype. (similar to the printerfriendly version)

  3. Nor you only have to define when TYPO3 should use this new subtemplate. Therefore you have to edit your site Template. There are two diffrent ways to do this, I would prefer the second one because pagetypes support the TYPO3 caching.
    1. Use parameter &popup=1 :

      page.10 = USER
      page.10.userFunc = tx_templavoila_pi1->main_page
      [globalVar = GP:popup> 0]
      page.10.childTemplate = popup
      [global]


    2. Use a new pagetype

      pagepopup<page
      pagepopup.typeNum=1
      pagepopup.10.childTemplate = popup

blog comments powered by Disqus
Last Tweets (follow)

blogroll