Typo3: get level x page id from rootline for contextual menu

cili

I have a page structure like this:

Page 1
 |-Page 1.1
 |  |-Page 1.1.1
 |  |-Page 1.1.2
 |-Page 1.2
 |  |-Page 1.2.1
 |  |-Page 1.2.2
Page2
etc.

I have 2 menus for this structure:

  • Left menu - shows level 1 and level 2
  • Top menu - shows only level 3

For example, when I am on page 1.1 of 1.1.1 or 1.1.2, the top menu should contain 1.1.1 and 1.1.2.

To create the top menu, I need to get the page id for level 2 from rootline. Is there a way to get it in typoscript?

Florian Rachor

How I understand your question you can just set the entry level for topmenu:

entryLevel = 1

Page 1 should be 0 in this example, so when you set the entry level to 1 for topmenu I think you should get the result you are looking for. (Or I'm missing something in the question)

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Typo3: page link in menu using value from custom record

From Dev

TYPO3 Special Menu "Browse" - Entry Level

From Dev

Fluid Typo3 - How to get variables definded via flux from different page uids

From Dev

How to access contextual menu in gnome 3 dash from keyboard?

From Dev

How to get destination uid in sectionIndex menu in TYPO3?

From Dev

How to get destination uid in sectionIndex menu in TYPO3?

From Dev

Get the content of a page's child in TYPO3

From Dev

TYPO3 getting image from page content

From Dev

TYPO3 - display one page from pagetree only

From Dev

How to display links for an entire level (all pages) in a TYPO3 menu?

From Dev

Typo3 - TMENU get Content from Colpos

From Dev

How to get parent frame from page level?

From Dev

get id from previous page

From Dev

get id from previous page

From Dev

Id counting in TYPO3 menu using register:count_MENUOBJ

From Dev

TYPO3: How do I insert page content from parent page into subpages

From Dev

How to change default "Page Not Found" window (template) in TYPO3 v6.2.x

From Dev

TYPO3 6.1.7 news details urls with parameters get thrown to 404 page

From Dev

Name of the application to make bootable USBs from the contextual menu

From Dev

Link from 3rd level to 1st level on multi-level menu

From Dev

TYPO3 third navigation level with bootstrap

From Dev

How to hide sub page of sub-domain tree from the main domain in typo3 8 LTS

From Dev

Typo3 Extbase How can I get all Objects with a relation = x?

From Dev

How to edit this Typo3 menu?

From Dev

Additional content element in TYPO3 menu

From Dev

typo3 different title in second menu

From Dev

How to edit this Typo3 menu?

From Dev

menu with fontawesome icons in typo3

From Dev

Responsive split menu in Typo3

Related Related

  1. 1

    Typo3: page link in menu using value from custom record

  2. 2

    TYPO3 Special Menu "Browse" - Entry Level

  3. 3

    Fluid Typo3 - How to get variables definded via flux from different page uids

  4. 4

    How to access contextual menu in gnome 3 dash from keyboard?

  5. 5

    How to get destination uid in sectionIndex menu in TYPO3?

  6. 6

    How to get destination uid in sectionIndex menu in TYPO3?

  7. 7

    Get the content of a page's child in TYPO3

  8. 8

    TYPO3 getting image from page content

  9. 9

    TYPO3 - display one page from pagetree only

  10. 10

    How to display links for an entire level (all pages) in a TYPO3 menu?

  11. 11

    Typo3 - TMENU get Content from Colpos

  12. 12

    How to get parent frame from page level?

  13. 13

    get id from previous page

  14. 14

    get id from previous page

  15. 15

    Id counting in TYPO3 menu using register:count_MENUOBJ

  16. 16

    TYPO3: How do I insert page content from parent page into subpages

  17. 17

    How to change default "Page Not Found" window (template) in TYPO3 v6.2.x

  18. 18

    TYPO3 6.1.7 news details urls with parameters get thrown to 404 page

  19. 19

    Name of the application to make bootable USBs from the contextual menu

  20. 20

    Link from 3rd level to 1st level on multi-level menu

  21. 21

    TYPO3 third navigation level with bootstrap

  22. 22

    How to hide sub page of sub-domain tree from the main domain in typo3 8 LTS

  23. 23

    Typo3 Extbase How can I get all Objects with a relation = x?

  24. 24

    How to edit this Typo3 menu?

  25. 25

    Additional content element in TYPO3 menu

  26. 26

    typo3 different title in second menu

  27. 27

    How to edit this Typo3 menu?

  28. 28

    menu with fontawesome icons in typo3

  29. 29

    Responsive split menu in Typo3

HotTag

Archive