Loading...
 
Features / Usability

Features / Usability


Re: Re: Custom Home

posts: 4656 Japan

> ...
> Tried to figure out how to make it display horizontally instead of vertically, but couldn't decipher where that formatting was occurring in the module or the include file.

The layout is set in the module's template file: a table is made for each image, and the default behavior of tables is to go full-width and tile downward.

Here's an early (or late) birthday present. wink For the images to tile horizontally, I made last_images_th module file mutants called last_images_th_horizon.tpl and last_images_th_horiz.php, which are zipped together and attached here. Unzip the files and upload the php file to your /modules directory and the tpl file to the templates/modules directory. Then use it in a wiki page something like {MODULE(module=>last_images_th_horiz,align=>left, max=10,decorations=>n,width=100%)}{MODULE}.

The tpl file has some inline CSS that tells the images to float left; that's what makes them go horizontal. You can put the module within a DIV plugin with a float=right parameter if you want it to be flush right instead of flush left.

See an example at this test page.

-- Gary

There are no comments at this time.

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