TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv

Die TYPO3 Mailingliste - nicht fragen: lesen!

[TYPO3] If main menu doesn't have a submenu ... ?

This is a discussion on [TYPO3] If main menu doesn't have a submenu ... ? within the typo3-english@lists.netfielders.de forums, part of the TYPO3-Mailinglists: ENGLISH category; How do I check if the current page doesn't have any submenu pages under it? I have created two ...


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 11.05.2007, 13:59
Elijah Alcantara
Gast
 
Beiträge: n/a
Standard [TYPO3] If main menu doesn't have a submenu ... ?

How do I check if the current page doesn't have any submenu pages under it?

I have created two menus, one main menu on top and a side menu on the
left side of the content. Problem is when the user clicks on a menu on
top and it doesn't have any submenus on it the menu at the left side
will be empty. I would like it to default to get the items above it if
current level is empty ...


Here's what I have so far.. I know I'm probably doing this wrong...
I'm actually a bit confused right now on how to use negate and 'if'
.... :

lib.submenu = COA
lib.submenu {
wrap = <div class="submenucontainer">|</div>
#should be standard menu for all pages
20 = HMENU
20.entryLevel = -1
20.1 = TMENU
20.1 {
wrap = <div class="submenu"><ul>|</ul></div>
NO.allWrap = <li>|</li>
ACT < .NO
ACT = 1
ACT.allWrap = <li class="submenuact">|</li>
}
20.if.isTrue = 1

#this should appear only when the current page is empty, then
replace the one above.
30 = HMENU
30.entryLevel = -2
30.1 = TMENU
30.1 {
wrap = <div class="submenu"><ul>|</ul></div>
NO.allWrap = <li>|</li>
ACT < .NO
ACT = 1
ACT.allWrap = <li class="submenuact">|</li>
}
30.if.isTrue = 0
30.if.negate = 1
}

submenu.20 and submenu.30 is both revealed and that is something I
don't want to happen I just wanted submenu.30 to appear(replace
submenu.20) only when the current page does not have any pages under
it..

Can anyone help ?



Elijah
_______________________________________________
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 11.05.2007, 14:57
Tapio Markula
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] If main menu doesn't have a submenu ... ?

Elijah Alcantara kirjoitti:
> How do I check if the current page doesn't have any submenu pages under it?
>
> I have created two menus, one main menu on top and a side menu on the
> left side of the content. Problem is when the user clicks on a menu on
> top and it doesn't have any submenus on it the menu at the left side
> will be empty. I would like it to default to get the items above it if
> current level is empty ...


read TSRef and menu states - there is for example CURIFSUB
_______________________________________________
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 11.05.2007, 15:54
Tesori Musicali Toscani
Gast
 
Beiträge: n/a
Standard [TYPO3] STATIC WEB SITE

hi, hi

How can I get a static version of my website I made in typo3?

I 'd like to know an easy way to do it
thanks a lot


laura


_______________________________________________
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 11.05.2007, 16:32
JoH asenau
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] If main menu doesn't have a submenu ... ?

>> How do I check if the current page doesn't have any submenu pages
>> under it?
>>
>> I have created two menus, one main menu on top and a side menu on the
>> left side of the content. Problem is when the user clicks on a menu
>> on
>> top and it doesn't have any submenus on it the menu at the left side
>> will be empty. I would like it to default to get the items above it
>> if current level is empty ...

>
> read TSRef and menu states - there is for example CURIFSUB


Which is of no help in this case, since it won't give you the siblings of
the current page, if there are no subpages.

Joey

--
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
openBC/Xing: http://www.cybercraft.de
T3 cookbook: http://www.typo3experts.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!
  #5  
Alt 11.05.2007, 16:39
JoH asenau
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] If main menu doesn't have a submenu ... ?

> How do I check if the current page doesn't have any submenu pages
> under it?
>
> I have created two menus, one main menu on top and a side menu on the
> left side of the content. Problem is when the user clicks on a menu on
> top and it doesn't have any submenus on it the menu at the left side
> will be empty. I would like it to default to get the items above it if
> current level is empty ...
>
> Here's what I have so far.. I know I'm probably doing this wrong...
> I'm actually a bit confused right now on how to use negate and 'if'
> ... :


Well - this is not the scenario for the use of "if" but for "override".
The override property will only override the current content, if there is
some content in the overriding object. So you could do it like this:

temp.siblingMenu = HMENU
temp.siblingMenu {
entryLevel = -2
1 = TMENU
1 {
wrap = <ul>|</ul>
NO {
allWrap = <li>|</li>
}
}
}

temp.subpageMenu < temp.siblingMenu
temp.subpageMenu {
entryLevel = -1
}

temp.mySwitchingMenu = COA
temp.mySwitchingMenu {
10 < temp.siblingMenu
stdWrap.override.cObject < temp.subpageMenu
}

This will generate a menu with the siblings of the current page in section
10 of the COA.
Then it will override the whole COA with a menu of the subpages of the
current page but only if there is content in the subpageMenu.
Just be sure to only wrap the TMENU and TMENUITEM parts but not the HMENU
since this would always return at least the wrap as a content.

HTH

Joey

--
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
openBC/Xing: http://www.cybercraft.de
T3 cookbook: http://www.typo3experts.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!
  #6  
Alt 11.05.2007, 21:41
Tomas Mrozek
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] STATIC WEB SITE

Please, do not hijack threads!
http://typo3.org/community/mailing-l...es-guidelines/

> How can I get a static version of my website I made in typo3?


wget –np -E –k –p -L -r -l0 -P/[download_folder] -erobots=off
"http://www.[your_domain].com/"

I cannot tell if you are gonna call it easy, though.

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!
  #7  
Alt 15.05.2007, 04:36
Elijah Alcantara
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] If main menu doesn't have a submenu ... ?

Hi,

That works perfectly and that's exactly what I needed, many thanks! =)


Elijah

> Well - this is not the scenario for the use of "if" but for "override".
> The override property will only override the current content, if there is
> some content in the overriding object. So you could do it like this:
>
> temp.siblingMenu = HMENU
> temp.siblingMenu {
> entryLevel = -2
> 1 = TMENU
> 1 {
> wrap = <ul>|</ul>
> NO {
> allWrap = <li>|</li>
> }
> }
> }
>
> temp.subpageMenu < temp.siblingMenu
> temp.subpageMenu {
> entryLevel = -1
> }
>
> temp.mySwitchingMenu = COA
> temp.mySwitchingMenu {
> 10 < temp.siblingMenu
> stdWrap.override.cObject < temp.subpageMenu
> }
>
> This will generate a menu with the siblings of the current page in section
> 10 of the COA.
> Then it will override the whole COA with a menu of the subpages of the
> current page but only if there is content in the subpageMenu.
> Just be sure to only wrap the TMENU and TMENUITEM parts but not the HMENU
> since this would always return at least the wrap as a content.
>
> HTH
>
> Joey
>
> --
> Wenn man keine Ahnung hat: Einfach mal Fresse halten!
> (If you have no clues: simply shut your gob sometimes!)
> Dieter Nuhr, German comedian
> openBC/Xing: http://www.cybercraft.de
> T3 cookbook: http://www.typo3experts.com
>
>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english (AT) lists (DOT) netfielders.de
> http://lists.netfielders.de/cgi-bin/.../typo3-english
>



--
Elijah O. Alcantara
http://elijah.pinoguin.com
Web/Typo3 Developer, Sys/Net Administrator & Support
PHP Development ApS
http://phpdev.dk
_______________________________________________
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] TemplaVoila Main Template Kuldev Singh typo3-english@lists.netfielders.de 2 02.05.2007 16:20
[TYPO3] hide empty submenu (via css) Felix Natter typo3-english@lists.netfielders.de 2 19.03.2007 17:19
[TYPO3] Having ressources in main TS template Mike Morris typo3-english@lists.netfielders.de 3 10.03.2007 04:53
[TYPO3] new site - BE empty main frame Katja Lampela typo3-english@lists.netfielders.de 2 04.01.2007 11:10
[TYPO3-templavoila] Activated main menu's text in sub menu list Siller Ákos typo3-project-templavoila@lists.netfielders.de 1 04.12.2006 08:57


Alle Zeitangaben in WEZ +1. Es ist jetzt 16:58 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