Discussion:
[TYPO3-english] Help changing menu display levels
Tim Hogan
2012-02-11 15:01:03 UTC
Permalink
I am using the template that comes with the introductory package of
Typo3 and I could use some help trying to figure out how to change the
number of levels that is displayed for just one page. If I am
understanding the layout correctly, it is something like this;

Home
|- Page1
|- SubPageLevel1
|- SubPageLevel2
|- SubPageLevel3

Page1 is displayed along the top beside of the search bar and the
SubPages are displayed along the left hand side for three sub-levels.
What I want to do is stop the display of the sub-menus under
SubPageLevel2 on the left side but still be able to display level 3 with
the Menu/SiteContent content element. I have tried to the the "hide in
menu" option but that seems to hide the item everywhere. Any ideas? -
Thanks
Loek Hilgersom
2012-02-11 23:37:42 UTC
Permalink
Hi Tim,

Easiest is just removing the 3rd level from the submenu on the left:
Find the Typoscript template called menu.secondlevel and remove the line
3 < .1
near the end.

If you use the "hide in menu" option the pages will not show up in all menu's,
unless you create a menu that explicitly includes those pages by using the
Typoscript option includeNotInMenu (see tsref for all details or google for some
examples).

Loek
Post by Tim Hogan
I am using the template that comes with the introductory package of
Typo3 and I could use some help trying to figure out how to change the
number of levels that is displayed for just one page. If I am
understanding the layout correctly, it is something like this;
Home
|- Page1
|- SubPageLevel1
|- SubPageLevel2
|- SubPageLevel3
Page1 is displayed along the top beside of the search bar and the
SubPages are displayed along the left hand side for three sub-levels.
What I want to do is stop the display of the sub-menus under
SubPageLevel2 on the left side but still be able to display level 3 with
the Menu/SiteContent content element. I have tried to the the "hide in
menu" option but that seems to hide the item everywhere. Any ideas? -
Thanks
Tim Hogan
2012-02-12 13:06:05 UTC
Permalink
Thanks for the reply but it is becoming painfully obvious that I am not
understanding this TypoScript stuff.

I have a called "Notes" with a content block using the Menu/Sitemap
plugin that is suppose to show the subpages. I have a subpage called
"General" which I have edited and selected the "Hide in Menus" option so
that it will not show up in the left menu. I did a search on the
internet and found "tt_content.menu.20.1.includeNotInMenu = 1" which I
added to the "Notes" page under the TypoScript Configuration section on
the Resources tab. Cleared the cache and tested.

While the "General" page does not show up in the sidebar menu (which is
what I want) it also still does not show up in the Menu/Sitemap content
plugin, which I want it to show there.

So since my first attempt is a failure, I guess I should be asking if
there is some documentation or book out there that is easy to understand
and would give me a good foundation to try and figure this out?

Thanks for any help.

-Tim
Post by Loek Hilgersom
Hi Tim,
Find the Typoscript template called menu.secondlevel and remove the line
3 < .1
near the end.
If you use the "hide in menu" option the pages will not show up in all
menu's, unless you create a menu that explicitly includes those pages
by using the Typoscript option includeNotInMenu (see tsref for all
details or google for some examples).
Loek
Post by Tim Hogan
I am using the template that comes with the introductory package of
Typo3 and I could use some help trying to figure out how to change the
number of levels that is displayed for just one page. If I am
understanding the layout correctly, it is something like this;
Home
|- Page1
|- SubPageLevel1
|- SubPageLevel2
|- SubPageLevel3
Page1 is displayed along the top beside of the search bar and the
SubPages are displayed along the left hand side for three sub-levels.
What I want to do is stop the display of the sub-menus under
SubPageLevel2 on the left side but still be able to display level 3 with
the Menu/SiteContent content element. I have tried to the the "hide in
menu" option but that seems to hide the item everywhere. Any ideas? -
Thanks
_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
Loek Hilgersom
2012-02-12 22:53:51 UTC
Permalink
Hi Tim,
Post by Tim Hogan
Thanks for the reply but it is becoming painfully obvious that I am not
understanding this TypoScript stuff.
I have a called "Notes" with a content block using the Menu/Sitemap
plugin that is suppose to show the subpages. I have a subpage called
"General" which I have edited and selected the "Hide in Menus" option so
that it will not show up in the left menu. I did a search on the
internet and found "tt_content.menu.20.1.includeNotInMenu = 1" which I
added to the "Notes" page under the TypoScript Configuration section on
the Resources tab. Cleared the cache and tested.
The Typoscript we're talking about here is the Typoscript Setup part from the
Typoscript Templates. These templates define the Front-end rendering of TYPO3.
The complete reference of this is the TSref document. Not an easy read, but
(nearly) everything is in there.

The place where you've put your code now is the Typoscript Configuration or
TSConfig which is has very little to do with FE-rendering but sets various
values for (mostly) Backend behaviour of pages and plugins on these pages.
Documentation is in a document called TSConfig. The code you've put there will
not do anything in that place (it's setup code).
Post by Tim Hogan
While the "General" page does not show up in the sidebar menu (which is
what I want) it also still does not show up in the Menu/Sitemap content
plugin, which I want it to show there.
So since my first attempt is a failure, I guess I should be asking if
there is some documentation or book out there that is easy to understand
and would give me a good foundation to try and figure this out?
There are some books about Typoscript, some in English, some more in German, you
easily find them through Google or typo3.org.
On typo3.org [1] you'll also find various guides and documents that may help
you, but you'll have to dig in a bit. Start by reading some of those, but beware
that some are rather old and can be outdated.

If you prefer to learn by doing, there are lots of examples to be found online,
just google for 'typoscript menu' or 'typoscript example'.

Hth,
Loek

[1] http://typo3.org/documentation/document-library/
Urs Bräm
2012-02-13 07:47:45 UTC
Permalink
Hi

the number of displayed levels in each menu is set in Typoscript. You
have to look at the right HMENU element.

First (not sure if you know that already, excuse me if you do), of
course, you have to find the Typoscript template (which is not to be
confused with a plain HTML template or the overall idea of a template
package). It should be in the root page of the site, visible if you use
the module "Template".

As many TMENU elements as there are in the concerned HMENU, that many
levels you get.

http://www.typo3wizard.com/en/snippets/menus/text-menu.html has a very
simple example.

http://wiki.typo3.org/TSref/HMENU has all the options

http://typo3.org/documentation/document-library/tutorials/doc_tut_quickstart/current/
to get the basics

Regards
Urs
Post by Tim Hogan
I am using the template that comes with the introductory package of
Typo3 and I could use some help trying to figure out how to change the
number of levels that is displayed for just one page. If I am
understanding the layout correctly, it is something like this;
Home
|- Page1
|- SubPageLevel1
|- SubPageLevel2
|- SubPageLevel3
Page1 is displayed along the top beside of the search bar and the
SubPages are displayed along the left hand side for three sub-levels.
What I want to do is stop the display of the sub-menus under
SubPageLevel2 on the left side but still be able to display level 3 with
the Menu/SiteContent content element. I have tried to the the "hide in
menu" option but that seems to hide the item everywhere. Any ideas? -
Thanks
--
Urs Br?m
macht Websites
---
Certified Typo3 Integrator
CH-3011 Bern
www.ursbraem.ch
Loading...