Difference: TabbedBrowsing ( vs. 1)

Revision 12007-06-15 - TonyFarrell

Line: 1 to 1
Added:
>
>
This page provided tabbed browsing capabilities. It is based on This page from Twiki itself.

%CALC{$SET(tabs, SomeTopicSummary:Summary, SomeTopicDiscuss:Discuss this page, SomeTopicForm:Modify form)}%
%INCLUDE{Main.TabbedBrowsing}%

The above code would get rendered like this (links deactivated), assuming that the user is currently viewing the SomeTopicDiscuss topic:


NOTES:

  • The tab associated with the current topic is automatically recognized and properly highlighted.
  • The topics in the tabs don't need to exist. The first person to click on the tab, gets to create it (same as TWiki links, but without the TopicDoesNotExist icon).
    • If you do choose to create a seprarate tab definition topic, you might also want to define the following editlink variable:
      %CALC{$SET(tabs, ...)}%
      %CALC{$SET(editlink, %TOPIC%)}%
      %INCLUDE{Main.StandardTabs}%
      This will put a edittopic.gif button right before the help.gif button, pointing to the tab definition page.
  • The tabs look best at the top of the page, but you can place them whereever you want.
  • The tab graphics point to this site. These need to be modified in a way that fits in with the current skin.
  • Most of the magic is done by SpreadSheetPlugin along with some nifty CSS code borrowed from this site (see code below in raw mode).

ALERT! Do not edit below this line unless you know what you are doing.


<-- set 'tab_urls' = list of tab urls -->

<-- set 'tab_names' = list of tab names -->


-- TonyFarrell - 15 Jun 2007

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback