Loading...
 
Skip to main content

Themes


Idea for Modules - make them tabbable

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-753951Question 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.ukQuestion

Regards,

Martin

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.comQuestion 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.


-- Gary

Custom theme campaign: Choose any theme at free-css.com(external link), etc. and have it converted for your Tiki site for USD160. Please visit Zukathemes.com(external link) for details.

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.comQuestion front page).
-- Gary

Custom theme campaign: Choose any theme at free-css.com(external link), etc. and have it converted for your Tiki site for USD160. Please visit Zukathemes.com(external link) for details.


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

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

HTH,

- RickQuestion | My Tiki Blog | My Tiki UserPage

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

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

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:

Copy to clipboard
{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.


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.

-- Gary

Custom theme campaign: Choose any theme at free-css.com(external link), etc. and have it converted for your Tiki site for USD160. Please visit Zukathemes.com(external link) for details.