Results 1 to 2 of 2

Thread: Change page template from module

  1. #1
    New user
    Join Date
    10-08-10.
    Location
    Russia, Saratov
    Posts
    3

    Frage Change page template from module

    Hi.

    I make a simple soap module for contao 2.11
    Module uses handlers for different events.
    For some handlers i need change page temlate for display simle info in lightbox
    So I would like to change the template layout
    Next code does't work:
    PHP Code:
    protected function service($handler)
    {
        global 
    $objPage;
        if (
    $handler == 'somehandler')
            
    $objPage->template 'fe_page_service';
        ....

    Can i change page template from module or it impossible and i can find other ways?

    P.S. Sorry about my english
    Last edited by zaytseff; 02/19/2014 at 09:40. Reason: Make code highlight
    I'm from russia. Sorry about my English

  2. #2
    New user
    Join Date
    10-08-10.
    Location
    Russia, Saratov
    Posts
    3

    Default

    Solved by change module logic without lightbox.
    I'm from russia. Sorry about my English

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •