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 6349079
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:32:44+00:00 2026-05-24T21:32:44+00:00

I have a HTML template which I made a typo3 template of, using automaketemplate.

  • 0

I have a HTML template which I made a typo3 template of, using automaketemplate. In this HTML, I have a setup of divs like this

 <div class="bigPostItWrap">1 
                <div class="postit">2
                    <div class="postit_tesa">3</div>
                    <div class="postItWrap">4
                        <ul class="menusmall">5
                            <li>* Team</li>6
                            <li>* something else</li>
                            <li>* Third point</li>
                        </ul>
                    </div>
                </div>
    </div>

The UL should contain the secondary navigation, only displayed if a certain primary navigation object is selected. As it is positioned somewhere else on the screen, I made it an independent menu like this

postitMenu = HMENU
postitMenu {
  # show the submenue relative to this entry level (?)
  entryLevel = 1
  # the first level of the menu is a text menu
  1 = TMENU
  # wrap the whole menu with <ul class="menu"> | </ul>
  1.wrap = <ul class="menusmall"> | </ul>

  # enable the "no"rmal state
  1.NO = 1
  # for the normal state, wrap it in li
  1.NO.linkWrap = <li>* |</li>

  #enable active state
  1.ACT = 1
  #copy all properties from normal state to active state
  1.ACT < .NO
  # disable the link for the active menu-point
  1.ACT.doNotLinkIt = 1
  # wrap the active menulink in li with the class = "active"
  1.ACT.allWrap = <li class="active">* |</li>
}

All this works quite well, and the menu only gets displayed on the correct main-menu entry. But the outer div postit contains a background image (you may guess, it’s a postIt), and the postit_tesa shows a strip of sticky tape on top of the postit. Of course, if I don’t show the secondary menue, i also don’t want the postIt and sticky tape to be rendered.

As I am fairly new to typoScript, I have no clue how to achieve that. And I don’t know how to google for that, at least I don’t find any solution. I thought that somehow, if I make the bigPostItWrap around it, I may do something like

if there is an li-element, 
render the subpart bigPostItWrap, 
else, don't render it

but II can’t get behind the ts-if, or doing something totaly wrong.. Any hint is appreciated. It’s probably ridiculous easy for a pro, but I can’t figure it out, and I’m trying since the day before yesterday -.-

Thanks!

  • 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-24T21:32:45+00:00Added an answer on May 24, 2026 at 9:32 pm

    For anyone facing the same problem: I did it with a cheat.. in fact there are two ways.

    First, I simply made the outer wrap-div, and assigned it all the other code, and than made the menu build inside this code, if the page ID was the one i wanted. That worked, but wasn’t nice.

    The second, probably cleaner approach is via css.. Just set the wrapper’s visibility to hidden. Than make typo3 give your body tag the UID inside the body tag

    # generate a bodyTag with the current page UID
    page.bodyTag >
    page.bodyTagCObject = TEXT
    page.bodyTagCObject.field = uid
    page.bodyTagCObject.wrap = <body id="pid-|">
    

    In your css, make a new selector (assuming page 3 is the one you want the menu to appear)

    #pid-3 .your-wrappers-name {
    visibility: visible;
    }
    

    There you go. The Div will only be visible on the page with the UID 3.

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

Sidebar

Related Questions

OK, So I have set up this html template which allows us to display
something driver me crazy here i have a big HTML template which i can't
I have an e-mail template which is just a plain, static HTML page. I
I have a big chunk of HTML which is a template for some data
I have a view and template called index.html. I have a image which is
I have a base.html template that contains a list of links. Example: <div id=sidebar1>
I have javascript code embedded inside a html template file. When I load this
I'm building a HTML template for my site and would like to have a
I'm newbie at TYPO3, trying to install my custom template. I have HTML/CSS/IMAGES files,
I have HTML template which has empty forms. How can i fill these forms

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.