TWiki
>
TWiki Web
>
FotoSkinEn
(2011-07-28,
TWikiContributor
)
(raw view)
---+!! !FotoSkinEn <!-- Contributions to this skin are appreciated. Please update the skin page at http://twiki.org/cgi-bin/view/Plugins/FotoSkinEn or provide feedback at http://twiki.org/cgi-bin/view/Plugins/FotoSkinEnDev. If you are a TWiki contributor please update the skin in the SVN repository. --> <sticky> <div style="float:right; background-color:#EBEEF0; margin:0 0 20px 20px; padding: 0 10px 0 10px;"> %TOC{title="Page contents"}% </div> </sticky> The !FotoSkinEn adds pulldown menus to the PatternSkin. ---++ Screen Shot %SEARCH{ "%TOPIC%" scope="topic" nosearch="on" nototal="on" format="$pattern(.*\| *Screenshot\:[^\|]*\|([^\|]*).*)" }% ---++ Tob Bar and Menu Structure <div style="float:right; text-align: center; padding:10px; width:150px; background-color:#EBEEF0"> This skin is%BR% sponsored by:%BR% [[http://fotogrametria.agh.edu.pl][<img src="%ATTACHURL%/foto-logo-80x40-t.gif" width="80" height="40" border="0" alt="Fotogrametria, AGH" title="Fotogrametria, AGH" />]] </div> * FotoSkinEnTopBar - top bar with menu bar, logo and search boxes (replacing WebTopBar), can be cloned and customized per web * WebTopMenu - bullet list defining menu bar for %WEB% web * FotoSkinEnDefaultWebTopMenu - bullet list defining menu bar for webs that do not have a !WebTopMenu topic * FotoSkinEnHomeMenu - "Home" pulldown menu with web list, included by !WebTopMenu * FotoSkinEnTopicMenu - "Topic" pulldown menu with topic actions, included by !WebTopMenu __NOTE:__ The skin is designed to incorporate the "you are here" breadcrumb into the pulldown menus:%BR% "Home" menu => "Web" menu => List of parent topics, if any (shown as "P"s) => Current topic ("View" menu). #WebSpecific ---++ Web-specific Menu-Bars The FotoSkinEnDefaultWebTopMenu defines the default menu structure used in any web. A !WebTopMenu topic in a web can redefine the default menu structure. If the !WebTopMenu topic is missing in a web, create one with content of [[_default.WebTopMenu]] and customize it. Bullets must be of format =[<nop>[...][...]]= or =<a href="...">...</a>=, and may not contain any text next to the link. To preserve the "you are here" breadcrumb, it is important to add additional pulldown menus _after_ the INCLUDE of !%SYSTEMWEB%.FotoSkinEnTopicMenu. The top level menu-bar should have this structure: * INCLUDE of !%SYSTEMWEB%.FotoSkinEnHomeMenu * Current Web menu * INCLUDE of !%SYSTEMWEB%.FotoSkinEnTopicMenu * Additional pulldown menu(s) as needed (optional) Example !WebTopBar menu structure with additional "Bugs" pulldown menu: <verbatim> %INCLUDE{%SYSTEMWEB%.FotoSkinEnHomeMenu}% * [[%BASEWEB%.%HOMETOPIC%][<img src="%ICONURL{web-bg}%" border="0" alt="" width="16" height="16" style="background-color:%WEBBGCOLOR%" /> <nop>%MAKETEXT{"[_1] Web" args="%BASEWEB{format="$current"}%"}% %ICON{menu-down}%]] * [[%SCRIPTURLPATH{"view"}%/%BASEWEB%/WebCreateNewTopic?topicparent=%BASETOPIC%][ %ICON{"newtopic"}% %MAKETEXT{"Create New Topic"}%]] * [[%BASEWEB%.WebTopicList][ %ICON{"index"}% %MAKETEXT{"Index"}%]] * [[%BASEWEB%.WebSearch][ %ICON{"searchtopic"}% %MAKETEXT{"Search"}%]] * [[%BASEWEB%.WebChanges][ %ICON{"changes"}% %MAKETEXT{"Changes"}%]] * [[%BASEWEB%.WebNotify][ %ICON{"notify"}% %MAKETEXT{"Notifications"}%]] * [[%BASEWEB%.WebRss][ %ICON{"feed"}% %MAKETEXT{"RSS Feed"}%]] * [[%BASEWEB%.WebStatistics][ %ICON{"statistics"}% %MAKETEXT{"Statistics"}%]] * [[%BASEWEB%.WebPreferences][ %ICON{"wrench"}% %MAKETEXT{"Preferences"}%]] %INCLUDE{%SYSTEMWEB%.FotoSkinEnTopicMenu}% * [[BugTracker][%ICON{bug}% Bugs %ICON{menu-down}%]] * [[NewReport][Create bug report]] * [[OpenBugs][Open bugs]] * [[ConfirmedBugs][Confirmed bugs]] * [[FixedBugs][Fixed bugs]] </verbatim> ---++ Read-Only Skin Mode This skin and the PatternSkin support a read-only mode. This is mainly useful if you have TWiki application pages or dashboards where you do not want regular users to change content. The read-only mode is enabled with a READONLYSKINMODE preferences setting set to 1. Details in %SYSTEMWEB%.PatternSkinCustomization#ReadOnlySkinMode. ---++ Use Menu-Bars in Topics A menu-bar can be added anywhere in a topic: * Include the "%SYSTEMWEB%.FotoSkinEn" topic - this pulls in the CSS and !JavaScript needed for the menu-bar. * Create a nested bullet list with links: * The top level bullets define the menu-bar items. Bullets with/without links are supported. * Second level bullets define the pulldown options within a menu-bar item. * A second level bullet must contain exactly one link (format =[<nop>[...][...]]= or =<a href="...">...</a>=) without any text next to the link. * Third level bullets are not supported. * Enclose the bullet list with a =<div class="twTopMenuTab">= tag. Example:<verbatim> %INCLUDE{"%SYSTEMWEB%.FotoSkinEn"}% <div class="twTopMenuTab"> * [[WebHome][%ICON{home}% Home %ICON{menu-down}%]] * [[WebNotify][Subscribe]] * [[WebStatistics][Statistics]] * [[WebSearch][%ICON{searchtopic}% Search %ICON{menu-down}%]] * [[WebSearchAdvanced][Advanced search]] * [[SearchHelp][Search help]] </div> </verbatim> Renders as: <div class="twTopMenuTab"> * [[WebHome][%ICON{home}% Home %ICON{menu-down}%]] * [[WebNotify][Subscribe]] * [[WebStatistics][Statistics]] * [[WebSearch][%ICON{searchtopic}% Search %ICON{menu-down}%]] * [[WebSearchAdvanced][Advanced search]] * [[SearchHelp][Search help]] </div> __NOTE:__ The pulldown menus only work if the TWiki:Plugins/JQueryPlugin is installed and enabled. ---++ CSS and !JavaScript This section defines the CSS and !JavaScript used by the !FotoSkinEn; [[%SCRIPTURL{view}%/%WEB%/%TOPIC%?raw=on][View Raw]] to see the source. Some additional CSS is defined in =templates/vewi.topmenu.tmpl= %STARTINCLUDE%<!--<pre>--> <script type="text/javascript"> var twtimeout = 600; var twclosetimer = null; var twmenuitem = null; function twTopMenuOpen() { twTopMenuCancelTimer(); twTopMenuClose(); twmenuitem = $(this).find('ul').css('visibility', 'visible'); } function twTopMenuClose() { if(twmenuitem) { twmenuitem.css('visibility', 'hidden'); } } function twTopMenuTimer() { twclosetimer = window.setTimeout(twTopMenuClose, twtimeout); } function twTopMenuCancelTimer() { if(twclosetimer) { window.clearTimeout(twclosetimer); twclosetimer = null; } } $(document).ready(function() { $('.twTopMenuTab > ul li').bind('mouseover', twTopMenuOpen); $('.twTopMenuTab > ul').bind('mouseout', twTopMenuTimer); }); document.onclick = twTopMenuClose; </script> <!--</pre>-->%ADDTOHEAD{ "FotoSkinEn_CSS" text="<style type=\"text/css\" media=\"all\"> .twTopMenuTab { height: 22px; width: auto; color: #111111; background-image: url(%PUBURLPATH%/%SYSTEMWEB%/FotoSkinEn/menu-gray-bg.png); background-repeat: repeat-x; overflow: hidden; white-space: nowrap; } .twTopMenuTab ul { height: 22px; margin: 0; padding: 0; list-style: none; } .twTopMenuTab ul li { float: left; font: 13px Tahoma, Arial; vertical-align: middle; width: auto; white-space: nowrap; } .twTopMenuTab ul li a { display: block; padding: 2px 8px 3px 8px; text-decoration: none; color: #111111; } .twTopMenuTab ul li a:hover { background-image: url(%PUBURLPATH%/%SYSTEMWEB%/FotoSkinEn/menu-reverse-bg.png); color: #111111; text-decoration: none; } .twTopMenuTab ul li ul { margin: 0; padding: 0; position: absolute; visibility: hidden; border-top: 1px solid white; color: #111111; z-index: 9000; } .twTopMenuTab ul li ul li { float: none; display: inline; } .twTopMenuTab ul li ul li a { width: auto; background-color: #F7F8F8; background-image: url(%PUBURLPATH%/%SYSTEMWEB%/FotoSkinEn/menu-pulldown-bg.png); background-repeat: repeat-y; padding: 3px 8px; } .twTopMenuTab ul li ul li a:hover { background-color: #AFB3C5; background-repeat: repeat; } </style>" }%<nop>%STOPINCLUDE% ---++ Installation *Note:* You do not need to install anything on the browser to use this skin. The following instructions are for the administrator who installs the skin on the server where TWiki is running. * Download the ZIP file from the Skin homepage (see below) * Unzip ==%TOPIC%.zip== in your twiki installation directory * Install TWiki:Plugins/JQueryPlugin and enable it using configure (if not done already) * To turn on the skin, write in !Main.TWikiPreferences: %BR% =* Set SKIN = foto, pattern= * [[%SCRIPTURL{"view"}%/%WEB%/%TOPIC%?skin=foto,pattern][Test if installed]] * *Note* on upgrading existing TWiki: * See [[#WebSpecific][Web-specific Menu-Bars]] above on how to retrofit and customize menu-bars. * *Note* on using this skin on TWiki 4.2 and 4.3: * This skin depends on TWiki 5.0 specific feature =%<nop>WEB{format="$current"}%= to show the current web in the Web menu. To use this skin on TWiki 4.2 or 4.3, remove the parameter from the WEB variable (to show only =%<nop>WEB%=), or apply patch TWikibug:Item6424 (to add the format parameter feature). * This skin depends on TWiki 5.0 specific feature =%<nop>ADDTOHEAD{}%= to add style sheets to the HTML head section. Apply patch TWiki:Support.SID-01117 to inline style sheets. * Apply patch TWikibug:Item6430 so that Edit and Attach buttons point to the current topic instead of !FotoSkinEnTopBar. * Apply patch TWikibug:Item6438 so that breadcrumb links point to the current web instead of the %SYSTEMWEB% web. * Attach %ATTACHURL%/menu-down.gif to %SYSTEMWEB%.TWikiDocGraphics. * Attach %ATTACHURL%/twiki-gray.gif to %SYSTEMWEB%.TWikiDocGraphics. * If you have more than 30 webs, apply TWikibug:Item6429 to limit the number of webs shown in the "Home" menu. ---++ Creating your own look This skin is based on PatternSkin, and the same rules for customization apply. The !FotoSkinEn disables the sidebar and activates a different top bar in =twiki/templates/view.foto.tmpl=. Details in PatternSkinCustomization and PatternSkinCssCookbook. The top bar FotoSkinEnTopBar (with menu bar, logo and search boxes) can be cloned using same topic name and customized per web. ---++ Skin Info * Set SHORTDESCRIPTION = Skin with pulldown menus in top bar | Skin Author: | TWiki:Main.MariuszTwardowski | | Copyright: | © 2010-2011, TWiki:Main.MariuszTwardowski, [[http://twiki.fotogrametria.agh.edu.pl][Fotogrametria AGH]] <br /> © 2010-2011 TWiki:TWiki.TWikiContributor | | License: | GPL ([[http://www.gnu.org/copyleft/gpl.html][GNU General Public License]]) | | Description: | Fotogrametria skin | | Screenshot: | <a href="%ATTACHURL%/fullscreen.png"><img src="%ATTACHURL%/screenshot.png" alt="Screenshot" title="Click for full screen image" width="600" height="130" /></a> | | Preview: | [[%SCRIPTURL{view}%/%WEB%/%TOPIC%?skin=foto,pattern][Preview with this topic]] | | Base Name: | foto,pattern | | Skin Version: | 2011-01-16 | | Change History: | <!-- specify latest version first --> | | Dependencies: | TWiki 4.2 or later; TWiki:Plugins/PatternSkin; TWiki:Plugins/JQueryPlugin | | Skin Home: | http://TWiki.org/cgi-bin/view/Plugins/%TOPIC% | | Feedback: | http://TWiki.org/cgi-bin/view/Plugins/%TOPIC%Dev | | Appraisal: | http://TWiki.org/cgi-bin/view/Plugins/%TOPIC%Appraisal | __Related topics:__ FotoSkinEnDefaultWebTopMenu, FotoSkinEnHomeMenu, FotoSkinEnTopBar, FotoSkinEnTopicMenu, WebTopMenu, [[_default.WebTopMenu]], [[%USERSWEB%.WebTopMenu]], [[Sandbox.WebTopMenu]], [[Trash.WebTopMenu]], %SYSTEMWEB%.TWikiSkins, %SYSTEMWEB%.TWikiSkinBrowser, %SYSTEMWEB%.UserDocumentationCategory, %SYSTEMWEB%.AdminDocumentationCategory
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r4
<
r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r4 - 2011-07-28
-
TWikiContributor
Home
Site map
Badania web
Dydaktyka web
Galeria web
Main web
MainPage web
Ogloszenia web
Pracownicy web
Publikacje web
Sandbox web
StronaGlowna web
TWiki web
TWiki Web
User registration
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
User Reference
ATasteOfTWiki
TextFormattingRules
TWikiVariables
FormattedSearch
QuerySearch
TWikiDocGraphics
TWikiSkinBrowser
InstalledPlugins
Admin Maintenance
Reference Manual
InterWikis
ManagingUsers
ManagingWebs
TWikiSiteTools
TWikiPreferences
WebPreferences
Categories
Admin Documentation
Admin Tools
Developer Doc
User Documentation
User Tools
Account
Log In
E
dit
A
ttach
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback
Note:
Please contribute updates to this topic on TWiki.org at
TWiki:TWiki.FotoSkinEn
.