Zikula: A Flexible Open Source Content Management System
home | forum | international support | contact us

Support Forum

Start ::  Developers Corner ::  Module Development ::  Module: avoid theme templates in popup window?

Moderated by: Support Team

Bottom
Module: avoid theme templates in popup window?

  • Link to this postingPosted: 15.05.2006, 18:27
    Profile
    jonasdelfs
    rank:
    Freshman Freshman
    registered:
     March 2006
    Status:
    offline
    last visit:
    18.08.06
    Posts:
    14
    Hi -

    I want to use popup windows in a module I'm writing, but how do I avoid having the whole PostNuke theme appearing in my popup windows?
    I guess I in some way want to specify another base themplate for those pages, meaning ignoring the selected theme - is that possible?

    Thanks in advance!

    Best regards, Jonas
  • Link to this postingPosted: 15.05.2006, 18:45
    Profile Homepage
    markwest
    rank:
    Moderator Moderator
    registered:
     March 2002
    Status:
    offline
    last visit:
    26.08.08
    Posts:
    7720
    Jonas,

    Assuming your writing the module for PN .760 or higher then it's easy. See the non themed output entry in our tips and tricks Wiki section.

    -Mark

    (note: thread moved to the development forums)
  • Link to this postingPosted: 15.05.2006, 19:01
    Profile
    jonasdelfs
    rank:
    Freshman Freshman
    registered:
     March 2006
    Status:
    offline
    last visit:
    18.08.06
    Posts:
    14
    Thanks a lot Mark!

    Is there a way to specify another base template instead? It could be really convenient to be able to specify a "theme" template for these pages, maybe just on module basis, to take care of , , stylesheets, etc. If not, I'll just include a header and footer, of course.

    Thanks!
  • Link to this postingPosted: 15.05.2006, 19:37
    Profile Homepage
    markwest
    rank:
    Moderator Moderator
    registered:
     March 2002
    Status:
    offline
    last visit:
    26.08.08
    Posts:
    7720
    A page template can be specified by the site admin using either xanthia or AutoTheme but there isn't anything you can set as the module developer.

    However bear in mind that any module template can be overriden in a theme to provide a custom look and feel for that theme only. So if you return true from the module your module based template will be used but this can then be duplicated into the theme and customised if desired.

    -Mark

Start ::  Developers Corner ::  Module Development ::  Module: avoid theme templates in popup window?

Main Menu

Extensions Database

Documentation

Development

Login





 


 Log in Problems?
 New User? Sign Up!

Donate to Zikula