Fork me on GitHub

minima plus & kubrick- xanthia/module templating questio  Bottom

  • I'm trying to tweak markwest's minima plus and kubrick themes (thank you for porting them, they're very slick) to better cooperate with menlato's gallery module, in PN0.76rc3

    I think all I should have to do is create a new template (gallery.htm), and create a new zone with that as its template (trying to read through the xanthia env docs)

    so I copied the template master.htm into gallery.htm and all is good, except that if I'm reading this all correct, the modules is loaded via within
    /
    , but I can't find where those are defined. because I believe all I should have to do is find someway to confine the module content within
    and not letting it over run the side bar.

    but how and where to accomplish that?

    it almost looks like I could accomplish this by using the ccblock.htm template for the module, but that's not an option..

    --
    geekdad.org :: ourspot.net :: rrisdpac.org :: si-murals.com
  • xanthia forum?
    sorry no clue about answer
  • yeah, i didn't know whether this would be a xanthia specific question, or more specific to the theme itself...

    on the flip side, I know how much the moderators hate cross posting these things.. so mods, if you think this belongs elsewhere, please feel free to move it.

    --
    geekdad.org :: ourspot.net :: rrisdpac.org :: si-murals.com
  • A module template must be in the modules directory - so you'll need modules/gallery.htm. Then setup a module template for the gallery module in the Xanthia admin panel. $mainconent is the output from the module be it gallery or any other module.

    Assuming that gallery is using a tables based layout you'll likely find that the tables will grow beyond the fixed width of both the themes. This is where you run in problems. You'll likely need to re-work the ouput of gallery to fit into the fixed width of these themes. I'm not familiar with gallery so can't comment on how easy that will be.

    Either way you'll need a decent working knowledge of HTML and CSS to solve this. It may well be that these themes simply aren't going to accomodate something like gallery - bear in mind that these are intended as simple but good looking blog themes not as themes for a full blown CMS like PN.

    -Mark

    --
    Visit My homepage and Zikula themes.
  • I'm having the exact same problem. What I have done to partially solve the problem was to make a new custom module template called gallery.htm which is esentially a copy of the nocolumns.htm temlate. This allows Gallery to output to the full width of the theme. However it still overlaps the edge of the theme.

    What I haven't been able to figure out is where $maincontent is defined and what the variables like width etc... are defined. Or do I need to alter the index.php of Gallery itself to make the output fall more inline with the theme that I have chosen.

    A real stinker of a problem.
  • $maincontent comes from the module itself. This can only be changed by changing the module code. As I say I don't know gallery or how it's coded so I can't comment on this specific module. Many PN modules (not gallery since it's not really a PN module) now use pnRender which is templates (like xanthia) for modules so editing the output of the module is easy.

    As i've already said it may well be that a narrow fixed width theme like both minimaplus and kubrick may not be suitable for use with a module that generates content heavy output like gallery.

    Bear in mind that both minimaplus and kubrick are both ports of wordpress themes - a blog engine not a fulll CMS.

    -Mark

    --
    Visit My homepage and Zikula themes.
  • maybe this is more a question to be directed at the PNgallery team since, I'm assuming they're the ones who could help figure out what the module defines for $maincontent
    (thanks for the answers mark, gave me some direction on what to poke at)
  • I've got another question about the minimaplus theme. When I enter de admin part of the site the right columns are gone (which is good :), because it uses the nocolumns template. Now i'm using Pagesetter (which has some hardcoded tables in it's source), but when I want to edit an item
    the URL uses : index.php?module=Pagesetter&func=pubedit&tid=3&pid=0&action=edit&goback=1 , there's no word admin in the URL, so I get the twocolumn layout again resulting in a nearly unusable page to edit the content.

    I'm able to assign a specific template for a specific module, but Is there some way I can assign the nocolumns layout only for the editpages of Pagesetter?

    --
    Founder of Dutch Postnuke Community -- http://postnuke.opencms.nl
    (download latest Dutch ( nld ) translations for postnuke core and third party modules)

This list is based on users active over the last 60 minutes.