Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6699573
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:42:41+00:00 2026-05-26T06:42:41+00:00

I was trying to create a custom menu in TypoScript and my idea is

  • 0

I was trying to create a custom menu in TypoScript and my idea is to have a div for each menu item.

Example

lib.mainMenu = HMENU
lib.mainMenu {
   entryLevel = 0  
   1 = TMENU
   1 {
      NO.allWrap = <div id="forsideknap">|</div> |*| <div id="butikker">|</div> |*| <div id="nyheder">|</div> |*| <div id="arrangementer">|</div> |*| <div id="avis">|</div>
   }
}

I have created 5 pages, and only 3 of them are getting their div. There are 3 identical. How can I fix this problem?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T06:42:42+00:00Added an answer on May 26, 2026 at 6:42 am

    You are using the optionSplit concept, which itself has many different options. It might cause confusion when used for the first time. You unintentionally defined the first, the middle and the last part of your wrap by using the |*| separators:

    first element |*| middle element(s) |*| last element
    

    If there is more then one middle element, they all get the middle parameter (“butikker”). And everything from the third |*| on is ignored.

    What you wanted is a simple sequence of different wraps. This is achieved by using the || separator:

    1st element || 2nd element || 3rd element || 4th element || 5th element || etc.
    

    In your case:

    NO.allWrap = <div id="forsideknap">|</div> || <div id="butikker">|</div> || <div id="nyheder">|</div> || <div id="arrangementer">|</div> || <div id="avis">|</div>
    

    Note that you can combine the separators if you have more complicated structures.

    Read more:

    • on the TYPO3 wiki page about optionSplit

    • on TYPO3 Docs

    • German tutorial on optionSplit in an HMENU / TMENU

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create a custom HTML Helper to help simplify my masterpages menu,
I'm trying to create a custom control - a button - which will have
I'm trying to create a custom accordion using jquery, have read through quite a
I have an Outlook 2010 addin, and I'm trying to create a custom context
I am trying to create custom function for Main Nav menu where I can
I'm trying to create an expandable menu item in android, which will look like
I am trying to create a custom module.When i click a module menu,empty grid
I'm trying to create a scrollable menu with item in them I want to
I'm trying to create a node form for a custom type. I have organic
I'm trying to programmatically create the custom horizontal menu for my custom module, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.