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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:39:16+00:00 2026-05-26T15:39:16+00:00

There is a Database-table tt_content check in my TypoScript code. Depending on whether the

  • 0

There is a Database-table “tt_content” check in my TypoScript code.
Depending on whether the CONTENT is empty or not, I want to set a variable VAR to “empty” or “full”.
Is it possible?

MIDCONTENT= CONTENT
MIDCONTENT{
  table = tt_content
  select.orderBy = sorting
  select.where = colPos = 0  
}

I allready have found a way to set the MIDCONTENT itselfe to empty, by doing

MIDCONTENT= CONTENT
MIDCONTENT{
  table = tt_content
  select.orderBy = sorting
  select.where = colPos = 0  

  stdWrap.ifEmpty.cObject = TEXT
  stdWrap.ifEmpty.cObject.value = empty
}

But what i need, is setting another variable, and i need to check the full state either.

  • 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-26T15:39:17+00:00Added an answer on May 26, 2026 at 3:39 pm

    untested

    If i unterstand you right, you want to add an class=”full” to ATagParams only if there are tt_content records in that page?

    NO.ATagParams.append = TEXT
    NO.ATagParams.append {
      value = class="full"
      # Space before and after
      noTrimWrap = | | |
      if.isTrue.numRows {
        table = tt_content
        select {
          where = colPos = 0 
          # the uid of the page, is the pid of the tt_content elements
          pidInList.field = uid
        }
      }
    }
    

    If there are no records on that page, numRows will return 0, so if.isTrue will returns false and the TEXT object will not be rendered.

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

Sidebar

Related Questions

I want to add only unique records into a database table. Is there any
Is there a command to drop a specific table in the database and not
Is there any method by which I can set expiry time for a database(table)?
In a MySQL (5.1) database table there is data that represents: how long a
Is there a database term for table or view? In my app, the table
is there a standard or best practice with database table names and fields in
Is there any application that will read a MySQL database table and generate a
There is small system, where a database table as queue on MSSQL 2005. Several
I have a database table named call with columns call_time, location, emergency_type and there
For instance, there’s an integer column in a database table. Then in java model,

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.