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

Support Forum

Start ::  Developers Corner ::  Theme Design & Templating ::  Different layout for different module

Moderated by: Support Team

Bottom
Different layout for different module

  • Link to this postingPosted: 01.02.2008, 23:26
    Profile
    Simeja
    rank:
    Freshman Freshman
    registered:
     February 2008
    Status:
    offline
    last visit:
    16.02.08
    Posts:
    5
    Hey all, I have a site running on PostNuke .8RC2 with three column layout. For some modules I want to use two column layout. Is there an easy way to do that? For example in customized News template put some line saying to use different stylesheet or something like that.
  • Link to this postingPosted: 02.02.2008, 00:23
    Profile Homepage
    mhalbrook
    rank:
    Legend Legend
    registered:
     October 2001
    Status:
    online
    Posts:
    6496
    Each module can have a custom template, if your theme doesn't have a 2 col layout as part of it, then make a new template and assign it for the modules you want that layout. If I'm not mistaken, with .8 you can even customize it down to different layouts per function even.
  • Link to this postingPosted: 02.02.2008, 01:00
    Profile
    Simeja
    rank:
    Freshman Freshman
    registered:
     February 2008
    Status:
    offline
    last visit:
    16.02.08
    Posts:
    5
    Thank you very much for your answer. My theme already has two CSS stylesheets - one of them is for two column version and the other one is for the three column version. However I just don't know how (and where) to assign it to each module. If there is any documentation for this just point me there, but I couldn't find it. Thanks again
  • Link to this postingPosted: 02.02.2008, 01:59
    Profile Homepage
    mhalbrook
    rank:
    Legend Legend
    registered:
     October 2001
    Status:
    online
    Posts:
    6496
    You need to consult your theme as to how to do that. Odds are if they put in two style sheets, they provide a 2 col template, you just have to configure what template to use for what module in the settings for the theme.
  • Link to this postingPosted: 02.02.2008, 03:36
    Profile Homepage
    espaan
    rank:
    Helper Helper
    registered:
     August 2003
    Status:
    offline
    last visit:
    02.09.08
    Posts:
    394
    Hi,
    in pageconfigurations.ini (config subdir) you can add different templates
    check for example the SeaBreeze theme:
    Code
    [master]
    file = master.ini

    [*home]
    file = home.ini

    [*admin]
    file = admin.ini

    [M-PNphpBB2]
    file = PNphpBB2.ini

    [M-htmlpages]
    file = htmlpages.ini

    [M-NukeWrapper]
    file = NukeWrapper.ini

    And in htmlpages.ini in SeaBreeze, here you can set the htm template file belonging to the module you want to override:
    Code
    page = NoRightColumn.htm
    palette = SeaBreeze

    [blocktypes]

    [blockpositions]
    left = lsblock.htm
    right = rsblock.htm
    center = ccblock.htm

    [blockinstances]

    -----
    http://www.erikspaan.nl
    http://www.avwijchen.nl

    Involved in: BlankTheme, StoriesExt, Menu templates, SmugView, ValueAddon News and zikula.nl
  • Link to this postingPosted: 02.02.2008, 08:32
    Profile Homepage
    AmmoDump
    rank:
    Professional Professional
    registered:
     December 2003
    Status:
    offline
    last visit:
    04.09.08
    Posts:
    2918
    I split this topic, the thread was hijacked a bit.. and the other half can be found here: http://community.postnuke...-start-0.htm#pid233671

    -----
    David Pahl
    Zikula Support Team

Start ::  Developers Corner ::  Theme Design & Templating ::  Different layout for different module

Main Menu

Extensions Database

Documentation

Development

Login





 


 Log in Problems?
 New User? Sign Up!

Donate to Zikula