This is an old revision of the document!


jQuery UI Tabs

Eine kurze Beschreibung für das Erstellen von Tabs mit dem jQuery UserInterface UI.

jQuery UI bietet Abstraktionen für Low-Level-Interaktion und Animationen, anspruchsvolle Effekte und sehr gute vorlagenfähige Widgets, auf der jQuery-Bibliothek aufbauend die verwendet werden können um interaktive Webanwendungen zu erstellen.


Frontend:

Backend:



Docu: –
Forum: –

Autor: K.Heermann (flip-flop) http://planmatrix.de 2010/02/15
- CSS: jQuery UI
CMS version: >= V1.44 r388
Version: V1.0
Update:

Tag:

Dateiename: jquery.jquery-ui.min.js
Verzeichnis: /template/lib/jquery/plugin/

Dateiename: tab_sort_section_jquery.tmpl.tmpl
Verzeichnis: /template/inc_cntpart/tabs/

Dateiename: ui.all.css
Verzeichnis: /template/inc_css/specific/jquery/themes/base/

Bedingung: $phpwcms['allow_cntPHP_rt'] = 1;/config/phpwcms/conf.inc.php —-




Beschreibung

FIXME In Bearbeitung

1. Update auf die jüngste Version

2. Login und gehe nach ADMIN → Vorlagen - begutachte die neuen Optionen

  • Wähle jQuery 1.4

3. Installation:

  • Erstelle aus den drei folgenden Texten die drei angegebenen Dateien in den angegebenen Verzeichnissen.

4. Im Gebrauch:

  • Fülle eine CP Register/Tabs mit deinen Einträgen (Siehe Beispiel oben).
  • Wähle als Vorlage: tab_sort_section_jquery.tmpl
  • Sichern und das Ergebnis im FE ansehen :-)

Template

Datei: /template/inc_cntpart/tabs/simpletabs01.tmpl

<note> Schau dir bitte auch das neue [TABTITLE_ELSE] Sektionskommando an.
(http://code.google.com/p/phpwcms/source/detail?r=372)
Wenn ein leerer oder alternativer Titel gebraucht wird, verwende einen einfachen ”-” im CP Register. Nun wird der Inhalt aus [TABTITLE_ELSE] eingetragen.

</note>

Update: 26.01.10 by MP (pepe) - http://phpwcms-templates.de Manfred Peperkorn
- Für eine bessere Integration von CPs und Artikeln mit dem Tag {SHOW_CONTENT:….}

selector: \'h3\' --> selector: \'h3.moo_registerTab\'
<h3 title="{TABTITLE}">{TABTITLE}</h3> --> <h3 class="moo_registerTab" title="{TABTITLE}">{TABTITLE}</h3>
<h3 title="TabElse">TabElse</h3> --> <h3 class="moo_registerTab" title="TabElse">TabElse</h3>

simpletabs01.tmpl

/* ********************************************************************
  moo_simpletabs01.tmpl for the CP Register (Tabs)
  http://digitarald.de/project/simple-tabs/1-0/showcase/tabbed/
 
  26.12.09 KH (flip-flop) - http://planmatrix.de Knut Heermann
  26.01.10 Update: MP (pepe) - [[http://phpwcms-templates.de]] Manfred Peperkorn
  selector: \'h3\' -> selector: \'h3.moo_registerTab\'
  <h3 title="{TABTITLE}">{TABTITLE}</h3> -> <h3 class="moo_registerTab" title="{TABTITLE}">{TABTITLE}</h3>
  <h3 title="TabElse">TabElse</h3> -> <h3 class="moo_registerTab" title="TabElse">TabElse</h3>
  ---
  Corresponding with the file /template/inc_css/specific/reg_tabs_simpletabs01.css
  Uses the js file lib/mootools/plugin-1.2/mootools.SimpleTabs.js
  - and lib/mootools/mootools-1.2-core-yc.js
  - Put this file into the Folder /template/inc_cntpart/tabs/*
 
  - Switch in your conf.inc.php -> $phpwcms['allow_cntPHP_rt']   = 1;
*********************************************************************** */
 
<!--TABS_START//-->
 
<div id="rgt_content">
 
[TITLE]<h1>{TITLE}</h1>[/TITLE]
[SUBTITLE]<h4>{SUBTITLE}</h4>[/SUBTITLE]
 
<div id="simpletabs">
 
[TABS_ENTRIES]{TABS_ENTRIES}[/TABS_ENTRIES]
 
</div>
 
[PHP]
 
initJSPlugin('SimpleTabs');
 
    $GLOBALS['block']['css']['reg_tabs_simpletabs01'] = 'specific/mootools/reg_tabs_simpletabs01.css';
    $GLOBALS['block']['custom_htmlhead']['reg_tabs_simpletabs01'] = '  <script type="text/javascript">
  //* <![CDATA[ *//
 
 
    window.addEvent(\'domready\', function() {
 
        var tabs = new SimpleTabs(\'simpletabs\', {
            selector: \'h3.moo_registerTab\'
        });
 
    });
 
    //* ]]> *//
  </script>';
 
[/PHP]
 
</div> <!--  END id="rgt_content" //-->
<!--TABS_END//-->
 
<!--TABS_ENTRY_START//-->
[TABTITLE]
<h3 class="moo_registerTab" title="{TABTITLE}">{TABTITLE}</h3>
[/TABTITLE]
[TABTITLE_ELSE]
<h3 class="moo_registerTab" title="TabElse">TabElse</h3>
[/TABTITLE_ELSE]
    [TABCONTENT]
    <div>
        [TABHEADLINE]<h4>{TABHEADLINE}</h4>[/TABHEADLINE]
        [TABTEXT]{TABTEXT}[/TABTEXT]
    </div>
    [/TABCONTENT]
 
<!--TABS_ENTRY_END//-->

CSS

Datei: /template/inc_css/specific/mootools/reg_tabs_simpletabs01.css

reg_tabs_simpletabs01.css

/* CSS for simpletabs in RT "Register Tabs" */
 
#rgt_content {
    font-size:1em;
    line-height:135%;
    margin:10px 35px 0pt 20px;
    padding-bottom:55px;
    position:relative;
    z-index:5;
    width: 500px;
}
 
#rgt_content p {
    margin:0pt 0pt 10px;
    padding:0pt;
}
 
#rgt_content h1, #rgt_content h2, #rgt_content h3, #rgt_content h4, #rgt_content h5, #rgt_content h6 {
    margin:0pt 0pt 15px;
    padding:0pt;
}
 
#rgt_content div#simpletabs div.tab-wrapper {
    padding: 8px 8px 4px 8px;
    border: 1px solid #d0d0d0;
    background-color: #f0f0f0;
    z-index: 5;
}
#rgt_content div#simpletabs ul.tab-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    height: 21px;
    z-index: 10;
    top: 1px;
    /* border-bottom: 1px solid #dedede; */
}
#rgt_content div#simpletabs ul.tab-menu li {
    float: left;
    margin: 0 2px 0 0;
    padding: 0;
}
#rgt_content div#simpletabs ul.tab-menu li a {
    float: left;
    display: block;
    padding: 0 0 0 10px;
/*    background: #dedede url(picture/navi/tabs/simple/inactive_tab.png) no-repeat left top;
*/
    background-color: #dedede;
    color: #808080;
    font-weight: bold;
    text-decoration: none;
    height: 21px;
    overflow: hidden;
    line-height: normal;
}
#rgt_content div#simpletabs ul.tab-menu li a span {
    float: left;
    display: block;
    padding: 2px 10px 0 0;
/*    background: #dedede url(picture/navi/tabs/simple/inactive_tab.png) no-repeat right top; */
    background-color: #dedede;
    height: 21px;
    cursor: pointer;
}
#rgt_content div.simpletabs ul.tab-menu li a:focus span {
}
 
#rgt_content div#simpletabs ul.tab-menu li.tab-selected a {
/*    background: #FDCC00 url(picture/navi/tabs/simple/active_tab.png) no-repeat scroll left top; */
    background-color: #FDCC00;
}
 
#rgt_content div#simpletabs ul.tab-menu li.tab-selected a span {
/*    background: #FDCC00 url(picture/navi/tabs/simple/active_tab.png) no-repeat scroll right top; */
    background-color: #FDCC00;
    color: #4E4E4E;
}
 
#rgt_content div#simpletabs ul.tab-menu li a:hover,
#rgt_content div#simpletabs ul.tab-menu li a:hover span {
    background-color: #FF946F;
    color: #1E1E1E;
}
 
#rgt_content div#simpletabs ul.tab-menu li.tab-selected a:hover,
#rgt_content div#simpletabs ul.tab-menu li.tab-selected a:hover span {
    background-color: #FFAD1F;
    color: #2E2E2E;
}
deutsch/phpwcms-system/artikel/contentparts/register-tabs/jquery-ui-tabs.1266265422.txt.gz · Last modified: 2018/06/03 18:06 (external edit)
www.planmatrix.de www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0