Loading...
 
Features / Usability

Features / Usability


Left/Right Themed Modules

posts: 4 United States

Is there a way to specify different templates for left or right modules. I've tried to simply use css to accomplish my task, but it is not capable of what I need to do. Preferably there would be a way to do it with the template files, I'm able to edit the php source files to accomplish it, but that does not allow for the theme to be portable.

I guess mainly I'm wondering if it is possible to place an { if } in the module.tpl to accomplish this. I've searched the smarty variables passed, and have not found anything that would work yet.

This is my fix so far, it works, but it feels like a hack, perhaps I'm missing an already existant smarty variable.

OPEN tiki-modules.php
On line 118 (1.9rc2) add:
$smarty->assign_by_ref('module_zone', $r["position"]);

Then in module.tpl you can test for $module_zone in an { if } statement. This is changing a source file though, which I don't want to do, if possible.

Any enlightenment on how this might be accomplished would be greatly appreciated.

posts: 2881 United Kingdom

Hiya,

Its only possible through modification of the code. The damian.css theme from TikiWiki 1.9 series actually has this already.

Its achieved by a combination of TPL modifications and CSS changes.

Damian


posts: 4 United States
Yes, I see a $module_side eq "right_modules" within your module.tpl file, where did you add the modification to the source code?
posts: 4 United States
Yes, I see a $module_side eq "right_modules" within your module.tpl file, where did you add the modification to the source code?

Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting