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

  • Home
  • SEARCH
  • 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 8767933
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:56:38+00:00 2026-06-13T16:56:38+00:00

I have 3 images (content Objects): tempProjectImage = IMAGE tempProjectImage { file{ #Nur der

  • 0

I have 3 images (content Objects):

tempProjectImage = IMAGE                                                                  
                tempProjectImage {
                    file{
                        #Nur der erste Eintrag.
                        import.listNum = 0

                        #Datei wird aus DAM gelesen
                        import.cObject = USER                               
                        import.cObject {
                            userFunc = tx_dam_tsfe->fetchFileList
                            refField = project_picture
                            refTable = tx_nmshowroom_items
                        }                            
                        width = 298
                        height = 200                            
                    }

                    altText.field = title
                    titleText.field = title
                    params = class="previewImage"                                                                                                       
                }

tempItemImage = IMAGE                                                                  
                tempItemImage {
                    file{
                        #Nur der erste Eintrag.
                        import.listNum = 0

                        #Datei wird aus DAM gelesen
                        import.cObject = USER                               
                        import.cObject {
                            userFunc = tx_dam_tsfe->fetchFileList
                            refField = images
                            refTable = tx_nmshowroom_items
                        }                            
                        width = 298
                        height = 200                            
                    }

                    altText.field = title
                    titleText.field = title
                    params = class="previewImage"                                                                                                       
                }

custImage = IMAGE
                    custImage {
                        file{
                            #Nur der erste Eintrag.
                            import.listNum = 0

                            #Datei wird aus DAM gelesen
                            import.cObject = USER                               
                            import.cObject = USER                               
                            import.cObject {
                                userFunc = tx_dam_tsfe->fetchFileList
                                refField = images
                                refTable = tx_nmshowroom_customers
                                refUid.field = tx_nmshowroom_customers
                            }                        
                            width = 298
                            height = 200                            
                        }

                        altText.field = title
                        titleText.field = title
                        params = class="previewImage"                                                                                                       
                    }

In my HTML Template I have

###IMAGE###

What I want to do is a sort of multiple override:

If tempItemImage is empty then display tempProjectImage and if tempProjectImage is also empty, then display custImage.

I started with:

image < .customers.custImage
image.file.import.override.cObject < .tempProjectImage.file.import.cObject

And this works perfectly. But when I add another override:

image < .customers.custImage
image.file.import.override.cObject < .tempProjectImage.file.import.cObject
image.file.import.override.cObject < .tempItemImage.file.import.cObject

It does not work anymore. tempItemImage (if present) will never override the other images.

What am I doing wrong?

Thanks in advance,
Davide

  • 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-06-13T16:56:39+00:00Added an answer on June 13, 2026 at 4:56 pm

    There is a stdWrap function “ifEmpty”, i guess that fits to what you want to do.

    (untested)

    # you need only one IMAGE object,
    # but you add an ifEmpty statement, two times with
    # the fall back USER-Object
    tempProjectImage = IMAGE                                                                  
    tempProjectImage {
      file{
        import.listNum = 0
        import.cObject = USER                               
        import.cObject {
          # default
        }
        import.ifEmpty.cObject = USER
        import.ifEmpty.cObject {
           # Fallback 
        }
        import.ifEmpty.ifEmpty.cObject = USER
        import.ifEmpty.ifEmpty.cObject {
           # second fallback
        }
      }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an image on my web page like this: <img src=/Images/content/home.png alt= style=float:
I have a simple Button control that contains an Image object as its content.
I have several images stored in content://media/external/images/media. I would like to display by using
I have two images - 1)a rectangular one, displaying the actual content and 2)a
I have the following code: svg = $(#rsr).svg({ loadURL: '@Url.Content(~/Content/images/svg_curv.svg)', onLoad: svgLoaded }); This
I have below code: <a href=# id=@item.Id name=vote ><img src=/Content/images/021.png style=float:left alt= /></a> which
I have the following CSS code .editable:before { content: url(../images/icons/icon1.png); padding-right:5px; } this is
I have two tables, content and images (and a ContentImages table for the one
We have an application that allows users to add/edit/replace/delete content (text, images, swfs, mp3s,
I would like to have our web applications pull static content (css, js, images)

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.