TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv

Die TYPO3 Mailingliste - nicht fragen: lesen!

[TYPO3] HMENU for subpage tree

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. ...


Zurück   TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv > TYPO3-Mailinglists: ENGLISH > typo3-english@lists.netfielders.de

Registrieren Hilfe Benutzerliste Kalender Suchen Heutige Beiträge Alle Foren als gelesen markieren
  #1  
Alt 04.06.2007, 12:59
Nagita Karunaratne
Gast
 
Beiträge: n/a
Standard [TYPO3] HMENU for subpage tree

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #2  
Alt 04.06.2007, 13:15
Peter Klein
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] HMENU for subpage tree

"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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #3  
Alt 04.06.2007, 16:00
âÏÊÞÕË ðÅÔÒÏ
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] HMENU for subpage tree

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #4  
Alt 04.06.2007, 16:18
Peter Klein
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] HMENU for subpage tree

_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #5  
Alt 04.06.2007, 18:48
Tomas Mrozek
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] HMENU for subpage tree

> "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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #6  
Alt 04.06.2007, 20:53
Nagita Karunaratne
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] HMENU for subpage tree

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #7  
Alt 04.06.2007, 21:02
Christopher Torgalson
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] HMENU for subpage tree

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
 

Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an


Ähnliche Themen

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


Alle Zeitangaben in WEZ +1. Es ist jetzt 22:37 Uhr.


Powered by vBulletin® Version 3.7.2 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0

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