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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T07:42:09+00:00 2026-05-20T07:42:09+00:00

Im trying to use a condition on an IMG_RESOURCE in my datastructure. But the

  • 0

Im trying to use a condition on an IMG_RESOURCE in my datastructure. But the problem is that this part does not seem to work:

the_img = IMG_RESOURCE
the_img.if.equals.field = field_positiontype
the_img.if.value = top

the_img.file.XY = 200,150
the_img.file.import = uploads/tx_templavoila/
the_img.file.import.field = field_tabimage
the_img.file.import.listNum = 0
the_img.file.maxW = 20
the_img.file.minW = 20
the_img.file.maxH = 15
the_img.file.minH = 15

the_img.file.params = -rotate 90

165 < the_img

No matter what the value of “field_positiontype” is, the image is build anyway.
Here are a snippet of my data structure:

            <field_positiontype type="array">
                <tx_templavoila type="array">
                    <title>Position</title>
                    <sample_data type="array">
                        <numIndex index="0"></numIndex>
                    </sample_data>
                    <eType>select</eType>
                    <TypoScript></TypoScript>
                    <proc type="array">
                        <int>0</int>
                        <HSC>1</HSC>
                        <stdWrap></stdWrap>
                    </proc>
                    <preview></preview>
                </tx_templavoila>
                <TCEforms type="array">
                    <label>Position</label>
                    <config type="array">
                        <type>select</type>
                        <items type="array">
                            <numIndex index="0" type="array">
                                <numIndex index="0">Left</numIndex>
                                <numIndex index="1">left</numIndex>
                            </numIndex>
                            <numIndex index="1" type="array">
                                <numIndex index="0">Right</numIndex>
                                <numIndex index="1">right</numIndex>
                            </numIndex>
                            <numIndex index="2" type="array">
                                <numIndex index="0">Top</numIndex>
                                <numIndex index="1">top</numIndex>
                            </numIndex>
                            <numIndex index="3" type="array">
                                <numIndex index="0">Bottom</numIndex>
                                <numIndex index="1">bottom</numIndex>
                            </numIndex>
                        </items>
                        <default>0</default>
                    </config>
                </TCEforms>
            </field_positiontype>   
            <field_content type="array">
                <tx_templavoila type="array">
                    <title>Text</title>
                    <sample_data type="array">
                        <numIndex index="0"></numIndex>
                    </sample_data>
                    <eType>rte</eType>
                    <TypoScript><![CDATA[

the_img = IMG_RESOURCE
the_img.if.equals.field = field_positiontype
the_img.if.value = top

the_img.file.XY = 200,150
the_img.file.import = uploads/tx_templavoila/
the_img.file.import.field = field_tabimage
the_img.file.import.listNum = 0
the_img.file.maxW = 20
the_img.file.minW = 20
the_img.file.maxH = 15
the_img.file.minH = 15

the_img.file.params = -rotate 90

165 < the_img





                            ]]></TypoScript>
                    <proc type="array">
                        <HSC type="integer">0</HSC>
                    </proc>
                </tx_templavoila>
                <TCEforms type="array">
                    <config type="array">
                        <type>text</type>
                        <cols>48</cols>
                        <rows>5</rows>
                    </config>
                    <label>Text</label>
                    <defaultExtras>richtext:rte_transform[flag=rte_enabled|mode=ts_css]</defaultExtras>
                </TCEforms>
            </field_content>
  • 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-20T07:42:09+00:00Added an answer on May 20, 2026 at 7:42 am

    Try to use the IMG_RESOURCE’s stdWrap-Property:

    the_img = IMG_RESOURCE
    the_img.stdWrap.if.equals.field = field_positiontype
    the_img.stdWrap.if.value = top
    

    This should work,
    elbachata

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

Sidebar

Related Questions

I am trying to use scrollspy, but at http://twitter.github.com/bootstrap/javascript.html#scrollspy , the example seems not
I'm trying to learn about condition variables and how to use it in a
I am trying to use a condition on events when the start_at DateTime is
Can anyone explain this strange behavior found when trying to use sapply and which.min
im trying to use a simple if condition to equate the title of the
I'm trying to use a regex with some condition on it, (i.e), (?(expression1)expression2) In
I am trying to use a closure to ensure that a function can only
I'm trying to use validation in Spring.NET to validate that a string property of
I am trying to use an 'if' condition to check whether a location for
I'm trying to use if inside a pipeline. I know that there is where

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.