Fork me on GitHub

Zikula theme configuration  Bottom

Go to page 1 - 2 - 3 - 4 - 5 [+1]:

  • I have a problem with configuring theme on my Zikula installation. I have configured PNphpBB module to use 2 columns, and it's working ok. I added the config file for the News module, created the new template with 3 columns and it works ok as well, BUT...

    The moment I add the config for News the links other than the main page of PNphpBB start displaying using it's template. Can anyone explain why?

    And how can you set a specific template for a specific page? I'd like to have a master template with 2 cols and display articles with the 3 columns. I'm guessing it has something to do with the settings I see in the template config in Zikula: Function type, Function and Custom Arguments; but I can't find ANY documentation that would explain how this works...

    All help appreciated!

    --
    I'll have it up in no time. It's an official term of BloodElf engineers union. It should not be interpreted as a reasonable estimation of the actual time it will take to complete a task in any way, shape or form.
  • Hmmm..

    Take a look at http://code.zikula.org/projects/blanktheme/

    But that is fairly specialized in approach. But I recommend it!

    http://community.zikula.org/Wiki-ThemeAuthorIndex.htm great stuff there too.

    Look at other setups.

    Really, the forums should inherit the styles of the theme, not the other way around. Not sure what you are doing there... Do you have a URL?


    --
    David Pahl
    Zikula Support Team
  • I do have the link:
    http://new.fantasy-fan.org

    I have home, master, news and NoRightColumn templates.

    News is assigned only to News module, PNphpBB has NoRightColumn template on the main page, but if you go deeper it changes to News template.



    edited by: AragornSG, Jun 26, 2008 - 06:53 PM

    --
    I'll have it up in no time. It's an official term of BloodElf engineers union. It should not be interpreted as a reasonable estimation of the actual time it will take to complete a task in any way, shape or form.
  • are you using multiple templates or are you using template overrides?
  • ummm... I have to admit that I don't even understand the question...

    I use the simple .ini files copied from some other template. All they contain is:

    Code

    page = news.htm
    palette = FantasyFan

    [blocktypes]

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

    [blockinstances]


    I used the existing templates and only added one: news.htm .

    Hope that covers it...

    --
    I'll have it up in no time. It's an official term of BloodElf engineers union. It should not be interpreted as a reasonable estimation of the actual time it will take to complete a task in any way, shape or form.
  • multiple templates - I meant did you create a 'generic' template for each module (usually a modified copy of the master.htm)

    template overrides - I meant did you create a template override - e.g. mytheme/templates/modules/PNphpBB/userpagetemplate.htm (BTW - I made that template name up) icon_smile

    It sounds like you did the first... and I am not familiar enough with Xanthia 3.0 to help with tha - sorry icon_wink
  • ok, I think I have a combination of the two. I'm making a theme based on one of the included in the installation, so there was a template override for the News: news_user_articlecontent.htm
    It uses however the master template, this is only the content template...

    Maybe you'd be able to help me if I simply explained the goal:
    I want to use the master template with 2 columns on all the pages except the home page and the one displaying articles. On those two *only* I'd like to have 3 columns.

    I thought that adding the News configuration file and pointing to 3 column template would accomplish that, but unfortunately the template spreads to other places... icon_frown

    --
    I'll have it up in no time. It's an official term of BloodElf engineers union. It should not be interpreted as a reasonable estimation of the actual time it will take to complete a task in any way, shape or form.
  • You should be able to go into the Admin and assign the wrapper to the module.

    --
    David Pahl
    Zikula Support Team
  • I'm guessing that you're referring to what I mentioned before:

    AragornSG

    ...settings I see in the template config in Zikula: Function type, Function and Custom Arguments; but I can't find ANY documentation that would explain how this works...


    Is this the wrapper you're talking about?

    and can you point me to any documentation for it? (if it exists)
    so far I've been unable to find anything to guide me through the painful process of creating a new theme...

    --
    I'll have it up in no time. It's an official term of BloodElf engineers union. It should not be interpreted as a reasonable estimation of the actual time it will take to complete a task in any way, shape or form.
  • To be honest with you, I do not use the Admin in Xanthia. I gave up on the Admin a long time ago. But the new administration is fairly nice, I guess.

    Anyway, this is a generic approach to your problem:

    Set the:
    pageconfiguration.ini

    Code

    [*admin]
    file = nocolumns.ini

    [*home]
    file = home.ini

    [Profile]
    file = daveiscool.ini

    [content]
    file = nocolumns.ini

    [master]
    file = master.ini


    This lets the Theme engine know that Admin and Content use the nocolumns.ini to find assignments and that Profile, home, and master use different assignments.

    Okay, no we create the ini for profile. It will look for the daveiscool.ini

    Code

    page = ammodumpiscool.htm
    palette = DumpsterGreen

    [blocktypes]

    [blockpositions]

    [blockinstances]


    So now when I use the Profile module it loads the wrapper ammodumpiscool.htm. Located at: /THEMENAME/tempates/modules/

    But if I want to modify the main content template for Profile, I would create the various templates in the /THEMENAME/tempates/modules/Profile/ folder/subfolders.

    Clear compiled and cached folders and (deactivate and reactivate) the theme.

    You should be good to go.

    This is kind of how I would do it, if I were you. There are other ways of course icon_smile

    Hope that helps.





    --
    David Pahl
    Zikula Support Team
  • Thanks for your help AmmoDump!

    I think this is where my problem is. It has to be a bug of sorts. I did exactly what you said, manually editing the ini files, but I encounter the same problem.

    PNphpBB module uses the dedicated template only on the first page after that it goes for the news template. icon_frown

    Any idea what can be dome about it?

    --
    I'll have it up in no time. It's an official term of BloodElf engineers union. It should not be interpreted as a reasonable estimation of the actual time it will take to complete a task in any way, shape or form.
  • Take a look yourself:
    http://new.fantasy-fan.org/

    --
    I'll have it up in no time. It's an official term of BloodElf engineers union. It should not be interpreted as a reasonable estimation of the actual time it will take to complete a task in any way, shape or form.
  • I see your issue, I would guess it was a cache/compile problem. But without seeing your actual code, I cannot say for certain.

    --
    David Pahl
    Zikula Support Team
  • The config is quite simple so unless I don't understand something completely it should work ok... here is the code of the files:

    Code

    Pageconfiguration.ini
    [*admin]
    file = admin.ini

    [*home]
    file = home.ini

    [News]
    file = news.ini

    [PNphpBB2]
    file = PNphpBB2.ini

    [master]
    file = master.ini


    Code

    News.ini
    page = news.htm
    palette = FantasyFan

    [blocktypes]

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

    [blockinstances]


    Code

    PNphpBB2.ini
    page = NoRightColumn.htm
    palette = FantasyFan

    [blocktypes]

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

    [blockinstances]


    Seems pretty straight forward, one ini file for phpBB, one for News, different templates, should never meet...

    --
    I'll have it up in no time. It's an official term of BloodElf engineers union. It should not be interpreted as a reasonable estimation of the actual time it will take to complete a task in any way, shape or form.
  • I have fixed my problem manually, by adding conditions in the Master template and while doing so I discovered what was causing the issues. No idea if it's a bug or something with my install (although I wouldn't know what could cause this kind of issue), but some modules are "introducing" themselves as "News" module...

    When I checked the var $module on different pages it kept changing to "News".

    I tricked it by checking $func and changing to 3 columns only if it's set to "display".



    edited by: AragornSG, Jul 07, 2008 - 05:00 PM

    --
    I'll have it up in no time. It's an official term of BloodElf engineers union. It should not be interpreted as a reasonable estimation of the actual time it will take to complete a task in any way, shape or form.

Go to page 1 - 2 - 3 - 4 - 5 [+1]:

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