Loading...
 
Themes

Themes


Idea for Modules - make them tabbable

United Kingdom

Sorry, if this has come up before. Also I'm on TW 6.4, not 7.2, and know some changes were made to modules.

I love the modules that are built into tikiwiki, but wonder if they could be made tabbable, so similar modules can be switched via a tab at the top. It may only be possible to have two modules in one, as it were, due to space restrictions, but even this could have a positive benefit for screen real estate, and help go from two sidebars to one, to give the body more space.

This site has a tabbed module feature, with a nice graphical way of collapsing and expanding modules: http://www.pluggedin.co.uk/review/iphone-4s-review-753951 which might make a good model for the graphics of the standard TikiWiki theme.

I have been playing with the css on my site, to make modules on my site into boxes with titles in a green background: www.opgo.co.uk

Regards,

Martin

Japan

I haven't seen the idea come up about Tiki's modules, but have thought about it, especially because tabbed boxes are so common on news sites, etc. (like your example or the "Most e-mailed"/ "Recommended for you" tabs in the lower right column of http://nytimes.com front page). Tabbed module boxes don't seem to be on the road map as a standard Tiki feature, as far as I know, but it'd be nice if a custom module could manage the same thing.

I'm thinking a custom module could be made, with nobox=y so the default title wouldn't display, and then its module data would have wiki syntax for the tabs and their content. Seems like this would work, as long as a module's data can contain two or three modules itself (each of them also nobox=y probably, since the tabs would contain the title information). But there have been issues with nested plugins or modules, so I'm not sure if this will work without more coding.


%chibaguysignature%

United Kingdom
Gary Cunningham-Lee wrote:

I haven't seen the idea come up about Tiki's modules, but have thought about it, especially because tabbed boxes are so common on news sites, etc. (like your example or the "Most e-mailed"/ "Recommended for you" tabs in the lower right column of http://nytimes.com front page).
%chibaguysignature%


Thanks for giving this some thought. True, tabbed boxes are used across sites nowadays. I may have a go at doing what you say, but it anyone finds a way to do it, without reprogramming, post here.

Regards,

Martin

United States

It should work fine, as Gary indicated. Simply create a user module using the TABS plugin. Then in each "tab' use the MODULE plugin to add whatever module you want. As long as you enable the Must be wiki parsed option, you shouldn't have a problem.

HTH,

- Rick | My Tiki Blog | My Tiki UserPage

Tiki for Dummies Smarties, the best (and only) Tiki beginner's guide! Learn more...

Tiki Essentials, the best-selling book for Tiki! Learn more...

United Kingdom

Thanks for the advice.

I have got it working, sort of, but not in the way I would want it to work.

Here's my code for the user module:

{TABS( tabs="News|Opinion")}{MODULE(module=articles, more=y, nonums=y, topicId=3+12+18+19, notitle=y)}{MODULE}/////{MODULE(module=articles, more=y, nonums=y, topicId=20+21, notitle=y)}{MODULE}{TABS}


Here's what it looks like:


The problems with this are the space between the top and the tabs. Also the tabs own class puts in an extra margin, border and padding in there, fixable through css?

Also the notabs button.


Japan

Yes, the layout can be improved with CSS, and the "no tabs" button can be hidden. I'll have a go at it when I get time, unless someone else gets to it first.

%chibaguysignature%