Die TYPO3 Mailingliste - nicht fragen: lesen!
This is a discussion on [TYPO3] HMENU for subpage tree within the typo3-english@lists.netfielders.de forums, part of the TYPO3-Mailinglists: ENGLISH category; Hi, I want to create a HMENU that only shows pages starting from a particular page within the page tree. ...
|
|||||||
| Registrieren | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
|
#1
|
|||
|
|||
|
Hi,
I want to create a HMENU that only shows pages starting from a particular page within the page tree. I could put this menu in an extension template at the particular subpage but I want this menu to be available to the whole site so it has to be on the root template. HMENU does not have any function that allows you to specify a starting page. Thanks, Nagita _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#2
|
|||
|
|||
|
"Nagita Karunaratne" <Nagita.k (AT) gmail (DOT) com> skrev i en meddelelse
news:mailman.1.1180954799.7164.typo3-english (AT) lists (DOT) netfielders.de... > Hi, > > HMENU does not have any function that allows you to specify a starting > page. > Maybe you should re-read TSRef, as there's several vays to specify the starting page/position for HMENUs, like "entryLevel", and all the "special" properties. http://typo3.org/documentation/docum...1.0/view/8/11/ -- Peter Klein/Umloud Untd _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#3
|
|||
|
|||
|
Actualy, Nagita is right
There is no simple way create menu of all sub pages of one page. "directory" and "list" are little limited - you can build only first level of pages. Please, correct me if I am wrong. entryLevel is to tricky way to create such menu. It would be greate if I could create tree-menu using special=directory ( now only 1 level works) Or maybe there is such possibility? thx On 6/4/07, Peter Klein <peter (AT) umloud (DOT) dk> wrote: > > "Nagita Karunaratne" <Nagita.k (AT) gmail (DOT) com> skrev i en meddelelse > news:mailman.1.1180954799.7164.typo3-english (AT) lists (DOT) netfielders.de... > > Hi, > > > > HMENU does not have any function that allows you to specify a starting > > page. > > > > Maybe you should re-read TSRef, as there's several vays to specify the > starting page/position for HMENUs, like "entryLevel", and all the > "special" > properties. > > http://typo3.org/documentation/docum...1.0/view/8/11/ > > -- > Peter Klein/Umloud Untd > > > _______________________________________________ > TYPO3-english mailing list > TYPO3-english (AT) lists (DOT) netfielders.de > http://lists.netfielders.de/cgi-bin/.../typo3-english > -- ú ÐÏ×ÁÇÏÀ, âÏÊÞÕË ðÅÔÒÏ _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#4
|
|||
|
|||
|
_______________________________________________
TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#5
|
|||
|
|||
|
> "directory" and "list" are little limited - you can build only first level
> of pages. No, I believe that you can build a submenu (= other levels). The only problem is that the submenu is hidden. ![]() Item 1 |- Subitem 1 - Subitem 2 Item 2 |- Subitem 1 - Subitem 2 With normal menu, if you click on "Item 1" the submenu automatically appears. With "special=directory", it doesn't. However, if you use "expAll=1" (TMENU property) in the first level, the submenu will appear. Unfortunately, all the submenus will appear = even the submenu of "Item 2". The solutions are tricky, a bit. Tomas Mrozek _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#6
|
|||
|
|||
|
Tomas Mrozek wrote:
>> "directory" and "list" are little limited - you can build only first level >> of pages. > > No, I believe that you can build a submenu (= other levels). The only > problem is that the submenu is hidden. ![]() > > Item 1 > |- Subitem 1 > - Subitem 2 > Item 2 > |- Subitem 1 > - Subitem 2 > > With normal menu, if you click on "Item 1" the submenu automatically > appears. With "special=directory", it doesn't. However, if you use > "expAll=1" (TMENU property) in the first level, the submenu will appear. > Unfortunately, all the submenus will appear = even the submenu of "Item 2". > > The solutions are tricky, a bit. > > Tomas Mrozek I have this working as I wanted although I don't exactly know how I did it. This is the cascading set of menus. # -------------- header1 menu (start) ------------ lib.headermenu1 > temp.headermenu1 = HMENU temp.headermenu1.special = directory temp.headermenu1.special.value = 404 temp.headermenu1.wrap = <ul> | </ul> temp.headermenu1.1 = TMENU temp.headermenu1.1 { NO.allWrap = <li> | </li> ACT = 1 ACT.allWrap = <li class="hcurrent"> | </li> } lib.headermenu1 < temp.headermenu1 # -------------- header1 menu (end) ------------ # -------------- header2 menu (start) ------------ lib.headermenu2 > temp.headermenu2 = HMENU temp.headermenu2.entryLevel = 2 temp.headermenu2.wrap = <ul> | </ul> temp.headermenu2.1 = TMENU temp.headermenu2.1 { NO.allWrap = <li> | </li> ACT = 1 ACT.allWrap = <li class="hcurrent"> | </li> } lib.headermenu2 < temp.headermenu2 # -------------- header2 menu (end) ------------ # -------------- header3 menu (start) ------------ lib.headermenu3 > temp.headermenu3 = HMENU temp.headermenu3.entryLevel = 3 temp.headermenu3.wrap = <ul> | </ul> temp.headermenu3.1 = TMENU temp.headermenu3.1 { NO.allWrap = <li> | </li> ACT = 1 ACT.allWrap = <li class="hcurrent"> | </li> } lib.headermenu3 < temp.headermenu3 # -------------- header3 menu (end) ------------ _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#7
|
|||
|
|||
|
Hi Nagita,
On 6/4/07, Nagita Karunaratne <Nagita.k (AT) gmail (DOT) com> wrote: <snip> > I have this working as I wanted although I don't exactly know how I did it. > > This is the cascading set of menus. > # -------------- header1 menu (start) ------------ > lib.headermenu1 > > > temp.headermenu1 = HMENU > temp.headermenu1.special = directory > temp.headermenu1.special.value = 404 > temp.headermenu1.wrap = <ul> | </ul> > temp.headermenu1.1 = TMENU > temp.headermenu1.1 { > NO.allWrap = <li> | </li> > ACT = 1 > ACT.allWrap = <li class="hcurrent"> | </li> > } > > lib.headermenu1 < temp.headermenu1 > # -------------- header1 menu (end) ------------ > > # -------------- header2 menu (start) ------------ > lib.headermenu2 > > > temp.headermenu2 = HMENU > temp.headermenu2.entryLevel = 2 > > temp.headermenu2.wrap = <ul> | </ul> > temp.headermenu2.1 = TMENU > temp.headermenu2.1 { > NO.allWrap = <li> | </li> > ACT = 1 > ACT.allWrap = <li class="hcurrent"> | </li> > } > > lib.headermenu2 < temp.headermenu2 > # -------------- header2 menu (end) ------------ > > > > # -------------- header3 menu (start) ------------ > lib.headermenu3 > > > temp.headermenu3 = HMENU > temp.headermenu3.entryLevel = 3 > > temp.headermenu3.wrap = <ul> | </ul> > temp.headermenu3.1 = TMENU > temp.headermenu3.1 { > NO.allWrap = <li> | </li> > ACT = 1 > ACT.allWrap = <li class="hcurrent"> | </li> > } > > lib.headermenu3 < temp.headermenu3 > # -------------- header3 menu (end) ------------ The TS code above will generate invalid HTML if there is more than one level showing. You should change each instance of '.allWrap' to '.wrapItemAndSub'. Your code will generate something like this: <ul> <li>Lorem</li> <ul> <li>Ipsum</li> <li>Dolor</li> </ul> </ul> ....but you /want/ this: <ul> <li>Lorem <ul> <li>Ipsum</li> <li>Dolor</li> </ul> </li> </ul> -- Christopher Torgalson http://www.typo3apprentice.com/ _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
| Themen-Optionen | Thema durchsuchen |
| Ansicht | Thema bewerten |
|
|
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| [TYPO3] Moving records to a new subpage? | Tom | typo3-english@lists.netfielders.de | 2 | 02.05.2007 09:51 |
| [TYPO3] Dynamic Tree question | Roelof Wobben | typo3-english@lists.netfielders.de | 11 | 27.04.2007 18:21 |
| [TYPO3] TMENU redirect to first subpage | Robert Markula | typo3-english@lists.netfielders.de | 4 | 15.04.2007 19:25 |
| [TYPO3] Error in tree.js? | Florian Seirer | typo3-english@lists.netfielders.de | 13 | 02.04.2007 17:04 |
| [TYPO3] Draft Workspace: New pagecontent on subpage is notreferenced to subpage | Christian Rubbert | typo3-english@lists.netfielders.de | 4 | 01.04.2007 14:59 |