preload
Mrz 30

To fix some menu entries in your menu so that they are displayed all the time use the following sample code:

?View Code JAVASCRIPT
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
lib.mainMenu.alwaysActivePIDlist = 3,4,5
#  main menu
lib.mainMenu= HMENU
lib.mainMenu.entryLevel = 0
#  show these uids of sites no matter where we are lib.mainMenu.alwaysActivePIDlist  = 3,4,5 lib.mainMenu {
# erstes level
1 = TMENU
1.wrap = <ul  id="topnavigation">|</ul>
1{
  # no state: normale  Formatierung
  NO{
    wrapItemAndSub =  <li>|</li>
  }
  # act state: gültig von der rootseite  bis zur aktuellen Seite
  ACT=1
  ACT{
    wrapItemAndSub = <li  class="menu-level1-active">|</li>
  }
  # cur state: gültig für die aktuelle  Seite
  CUR=1
  CUR{
    wrapItemAndSub = <li  class="menu-level1-current-active">|</li>
  }
  # ifsub state: gültig für seiten die  unterseiten haben
  IFSUB=1
  IFSUB{
    wrapItemAndSub = <li  class="menu-level1-with-subpage">|</li>
  }
}
# zweites level
2 = TMENU
2.wrap = <ul  class="menu-level2">|</ul>
2{
  NO{
    wrapItemAndSub =  <li>|</li>
  }
  ACT=1
  ACT{
  wrapItemAndSub = <li  class="menu-level2-active">|</li>
  }
  CUR=1
  CUR{
    wrapItemAndSub = <li  class="menu-level2-current-active">|</li>
  }
  IFSUB=1
  IFSUB{
    wrapItemAndSub = <li  class="menu-level2-with-subpage">|</li>
  }
}
Tagged with:
Nov 27
I am glad that I could gain experience in a lot of CMS-Systems, Open Source CMS like Typo3 and Joomla as well as Licence CMS for example InterRed. Now I will come to my favorite Open-Source CMS, Typo3!
What if you like to create a “previous” – “next” navigation with typo3? Have a look at the following code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
lib.nav-referenzen = COA
lib.nav-referenzen {
  10 = HMENU
  10 {
   entryLevel = 3
   special = browse
   special  {
    items = prev
    items.prevnextToSection =  1
   }
   1 = TMENU
   1 {
    NO  {
    doNotLinkIt = 1
    stdWrap.cObject =  COA
    stdWrap.cObject {
     10 =  TEXT
     10 {
      field =  title
      typolink {
       parameter.field = uid
       returnLast =  url
      }
    wrap = <a title="{field:title}" href="|"></a>&amp;nbsp;&amp;nbsp;
    insertData =  1
    }
  }
 }
}
}
20 &lt; .10
20 {
special.items =  next
1.NO.stdWrap.cObject.10.wrap = &amp;nbsp;&amp;nbsp;<a title="{field:title}" href="|">next &amp;raquo;</a>
}
}
Now put this code into your template:

with automaketemplate e.g: subparts.bottom < lib.nav-referenzen

with templavoila e.g.: lib.prevnextnavigation < lib.nav-referenzen

subparts.bottom and lib.prevnextnavigation are only sample object names. Replace them with your own subpartname or templavoila lib name.

Tagged with: