Mrz 30
To fix some menu entries in your menu so that they are displayed all the time use the following sample 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
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: permanent menu • Typo3 • typoscript
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>&nbsp;&nbsp;
insertData = 1
}
}
}
}
}
20 < .10
20 {
special.items = next
1.NO.stdWrap.cObject.10.wrap = &nbsp;&nbsp;<a title="{field:title}" href="|">next &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: cms • interred • lib • navigation • navigation typo3 • templavoila • Typo3 • typoscript
Apr 05
Folgende Fehlermeldung trat nach Update der PHP-Version des Servers auf PHP 5.2.5 auf: Cannot re-assign $this in /…/typo3conf/ext/static_info_tables/class.tx_staticinfotables_syslanguage.php on line 41Zuerst wurde von mir ein Update auf Typo3 4.1.6 durchgeführt, da ich wusste, dass die static info tables sich geändert hatten. Das löste aber das Problem nicht.Die Lösung nach längerem Suchen ist folgende:In der Datei /…/typo3conf/ext/static_info_tables/ class.tx_staticinfotables_syslanguage.php die Zeile 41vonfunction processDatamap_postProcessFieldArray($status, $table, $id, $fieldArray, $this)infunction processDatamap_postProcessFieldArray($status, $table, $id, $fieldArray, $reference)abändern!Schon läufts wieder.Das gleiche könnte noch in der Datei class.tx_dam_languagehotlist.php auftauchen.Hier genauso verfahren und $this durch $reference ersetzen.Fehlermeldung dabei ist folgende:PHP Fatal error: Cannot re-assign $this in /…/typo3conf/ext/dam/class.tx_dam_languagehotlist.php on line 43
Tagged with: Bugfixing Typo3 • Typo3 • Update PHP 5.2.5