[TYPO3-english] FCE 10.file.width.field problem

Matthew Colton mat at colton.de
Sun Nov 2 16:57:17 CET 2008


Hi,
I created a FCE with a picture that should be scaled automatically. The user 
should be able to chose the width (according to the CI). The possible widths 
should be selectable.

I made the width selectable in a unmapped field and the want to map the field 
to the width value of the image, but that doesn't seem to work. Example:
10.file.width.field = field_width

Any help is appreciated!

This ist the whole data structure:

<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<T3DataStructure>
  <meta type="array">
    <langDisable>1</langDisable>
  </meta>
  <ROOT type="array">
    <tx_templavoila type="array">
      <title>ROOT</title>
      <description>Select the HTML element on the page which you want to be 
the overall container element for the template.</description>
    </tx_templavoila>
    <type>array</type>
    <el type="array">
      <field_container type="array">
        <type>array</type>
        <section>1</section>
        <tx_templavoila type="array">
          <title>Picture</title>
          <description>Picture</description>
          <eType>input</eType>
        </tx_templavoila>
        <el type="array">
          <field_img type="array">
            <type>array</type>
            <tx_templavoila type="array">
              <title>Picture</title>
              <description>Picture</description>
              <eType>input</eType>
            </tx_templavoila>
            <el type="array">
              <field_img_img type="array">
                <tx_templavoila type="array">
                  <title>Picture</title>
                  <description>Picture</description>
                  <sample_data type="array">
                    <numIndex index="0"></numIndex>
                  </sample_data>
                  <eType>imagefixed</eType>
                  <TypoScript>
    10 = IMAGE
    10.file.import = uploads/tx_templavoila/
    10.file.import.current = 1
    10.file.import.listNum = 0
    10.file.width.field = field_width
              </TypoScript>
                </tx_templavoila>
                <TCEforms type="array">
                  <config type="array">
                    <type>group</type>
                    <internal_type>file</internal_type>
                    <allowed>gif,png,jpg,jpeg</allowed>
                    <max_size>1000</max_size>
                    <uploadfolder>uploads/tx_templavoila</uploadfolder>
                    <show_thumbs>1</show_thumbs>
                    <size>1</size>
                    <maxitems>1</maxitems>
                    <minitems>0</minitems>
                  </config>
                  <label>Picture</label>
                </TCEforms>
              </field_img_img>
            </el>
          </field_img>
        </el>
      </field_container>
      <field_width type="array">
        <tx_templavoila type="array">
          <title>Picture width</title>
          <description>Picture width</description>
          <sample_data type="array">
            <numIndex index="0"></numIndex>
          </sample_data>
          <eType>select</eType>
        </tx_templavoila>
        <TCEforms type="array">
          <config type="array">
            <type>select</type>
            <items type="array">
              <numIndex index="0" type="array">
                <numIndex index="0">Full width</numIndex>
                <numIndex index="1">630</numIndex>
              </numIndex>
              <numIndex index="1" type="array">
                <numIndex index="0">Half-width</numIndex>
                <numIndex index="1">302</numIndex>
              </numIndex>
            </items>
            <default>0</default>
          </config>
          <label>Picture width</label>
        </TCEforms>
      </field_width>
    </el>
  </ROOT>
</T3DataStructure>

Ciao
Matthew


More information about the TYPO3-english mailing list