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.
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- mazdev responded to »Hide "Register new account" and change template to 3 col« 07:50 AM
- mesteele101 created topic »Zikula 1.3.3 - Site Search 1.5.2 - Unable to turn off plug-ins« 07:48 AM
- internetking created topic »password problem« 25. May
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
- mdee created topic »How to implement returnpage ?« 25. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Zikula theme configuration
Go to page 1 - 2 - 3 - 4 - 5 [+1]:
-
- Rank: Softmore
- Registered: Jun 20, 2008
- Last visit: May 07, 2010
- Posts: 109
-
- Rank: Team Member
- Registered: Dec 07, 2003
- Last visit: May 09, 2010
- Posts: 2703
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 -
- Rank: Softmore
- Registered: Jun 20, 2008
- Last visit: May 07, 2010
- Posts: 109
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. -
- Rank: Developer
- Registered: Jun 16, 2003
- Last visit: May 29, 2010
- Posts: 1966
are you using multiple templates or are you using template overrides? -
- Rank: Softmore
- Registered: Jun 20, 2008
- Last visit: May 07, 2010
- Posts: 109
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. -
- Rank: Developer
- Registered: Jun 16, 2003
- Last visit: May 29, 2010
- Posts: 1966
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)
It sounds like you did the first... and I am not familiar enough with Xanthia 3.0 to help with tha - sorry
-
- Rank: Softmore
- Registered: Jun 20, 2008
- Last visit: May 07, 2010
- Posts: 109
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...
--
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. -
- Rank: Team Member
- Registered: Dec 07, 2003
- Last visit: May 09, 2010
- Posts: 2703
You should be able to go into the Admin and assign the wrapper to the module.
--
David Pahl
Zikula Support Team -
- Rank: Softmore
- Registered: Jun 20, 2008
- Last visit: May 07, 2010
- Posts: 109
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. -
- Rank: Team Member
- Registered: Dec 07, 2003
- Last visit: May 09, 2010
- Posts: 2703
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
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
Hope that helps.
--
David Pahl
Zikula Support Team -
- Rank: Softmore
- Registered: Jun 20, 2008
- Last visit: May 07, 2010
- Posts: 109
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.
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. -
- Rank: Softmore
- Registered: Jun 20, 2008
- Last visit: May 07, 2010
- Posts: 109
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. -
- Rank: Team Member
- Registered: Dec 07, 2003
- Last visit: May 09, 2010
- Posts: 2703
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 -
- Rank: Softmore
- Registered: Jun 20, 2008
- Last visit: May 07, 2010
- Posts: 109
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
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. -
- Rank: Softmore
- Registered: Jun 20, 2008
- Last visit: May 07, 2010
- Posts: 109
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]:
- Moderated by:
- Support
