![]() |
| | LinkBack | Themen-Optionen | Thema bewerten | Ansicht |
|
#1
| |||
| |||
Hallo erneut, ich habe zwei "Content-Elements"-Bereiche per TemplaVoila. Wie kann ich für beide Bereiche die maximale Breite für eingestellte Bilder einstellen. Über den Constant Editor ("Max Image Width") geht es ja nur global? Ich möchte aber unterschiedliche Maximalbreiten für die die beiden Bereiche, da beide im Frontend unterschiedlich breit sind? Muss in der DS an dieser Stelle irgendwo einfügen, bzw. wie? .. <eType>ce</eType> <TypoScript> 10= RECORDS 10.source.current=1 10.tables = tt_content 10.wrap = <!--TYPO3SEARCH_begin--> | <!--TYPO3SEARCH_end--> </TypoScript> gruss Markus |
|
#2
| |||
| |||
Hallo, genau an dem selben Problem hänge ich auch gerade? Vielleicht weiss ja einer Rat? |
|
#3
| |||
| |||
| Ich habe es gefunden: Über die Anpassung der XML Datenstruktur ist es möglich, dem Bild eine Breite zuzuweisen, die man dann im BE eingeben kann. Im folgenden XML Beispiel habe ich die Möglichkeit geschaffen, dem Bild eine Höhe, Breite, Link, Title und Alt über das BE zuzuweisen Code: <?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
<T3DataStructure>
<meta type="array">
<langDisable>1</langDisable>
</meta>
<ROOT type="array">
<tx_templavoila type="array">
<title>ROOT</title>
<description>Wählen Sie das HTML-Element der Seite,
das Sie als übergeordnetes Container-Element des Templates möchten.</description>
</tx_templavoila>
<type>array</type>
<el type="array">
<field_bild_oben_links type="array">
<tx_templavoila type="array">
<title>Bild oben links</title>
<sample_data type="array">
<numIndex index="0"></numIndex>
</sample_data>
<eType>image</eType>
<TypoScript><![CDATA[
10 = IMAGE
10.altText.field = field_alttext
10.titleText.field = field_titletext
10.file.import = uploads/tx_templavoila/
10.file.import.current = 1
10.file.import.listNum = 0
10.file.width.field = field_imagewidth
10.file.height.field = field_imageheight
10.stdWrap.typolink.parameter.field = field_link]]>
</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>Bild oben links</label>
</TCEforms>
</field_bild_oben_links>
<field_link type="array">
<type>attr</type>
<tx_templavoila type="array">
<title>linktext</title>
<sample_data type="array">
<numIndex index="0"></numIndex>
</sample_data>
<eType>link</eType>
<TypoScript><![CDATA[
10 = TEXT
10.typolink.typolink.parameter.field = field_link]]>
</TypoScript>
<proc type="array">
<HSC type="integer">1</HSC>
</proc>
</tx_templavoila>
<TCEforms type="array">
<config type="array">
<type>input</type>
<size>15</size>
<max>256</max>
<checkbox></checkbox>
<eval>trim</eval>
<wizards type="array">
<_PADDING type="integer">2</_PADDING>
<link type="array">
<type>popup</type>
<title>Link</title>
<icon>link_popup.gif</icon>
<script>browse_links.php?mode=wizard</script>
<JSopenParams>height=300,width=500,status=0,menubar=0,scrollbars=1</JSopenParams>
</link>
</wizards>
</config>
<label>image link</label>
</TCEforms>
</field_link>
<field_imageheight type="array">
<tx_templavoila type="array">
<title>height</title>
<sample_data type="array">
<numIndex index="0"></numIndex>
</sample_data>
<eType>input</eType>
<proc type="array">
<HSC type="integer">1</HSC>
</proc>
</tx_templavoila>
<TCEforms type="array">
<config type="array">
<type>input</type>
<size>4</size>
<eval>int</eval>
<checkbox>0</checkbox>
<range type="array">
<upper>400</upper>
<lower>0</lower>
</range>
<default>0</default>
</config>
<label>height</label>
</TCEforms>
</field_imageheight>
<field_imagewidth type="array">
<tx_templavoila type="array">
<title>width</title>
<sample_data type="array">
<numIndex index="0"></numIndex>
</sample_data>
<eType>input</eType>
<proc type="array">
<HSC type="integer">1</HSC>
</proc>
</tx_templavoila>
<TCEforms type="array">
<config type="array">
<type>input</type>
<size>4</size>
<eval>int</eval>
<checkbox>0</checkbox>
<range type="array">
<upper>300</upper>
<lower>0</lower>
</range>
<default>0</default>
</config>
<label>width</label>
</TCEforms>
</field_imagewidth>
<field_titletext type="array">
<tx_templavoila type="array">
<title>pictitle</title>
<sample_data type="array">
<numIndex index="0"></numIndex>
</sample_data>
<eType>input_a</eType>
</tx_templavoila>
<TCEforms type="array">
<config type="array">
<type>input</type>
<size>40</size>
<eval>trim</eval>
</config>
<label>Bild Mouseover-Text:</label>
</TCEforms>
</field_titletext>
<field_alttext type="array">
<tx_templavoila type="array">
<title>picalt</title>
<sample_data type="array">
<numIndex index="0"></numIndex>
</sample_data>
<eType>input_a</eType>
</tx_templavoila>
<TCEforms type="array">
<config type="array">
<type>input</type>
<size>40</size>
<eval>trim</eval>
</config>
<label>Bild Code-Text:</label>
</TCEforms>
</field_alttext>
</el>
</ROOT>
</T3DataStructure> Gruß Anderl |
![]() |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | Thema bewerten |
| |
Ähnliche Themen | ||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| Was mach ich falsch? Content im Bereich "Content Elements" wird nicht angezeigt. | flenders | TemplaVoila | 4 | 27.06.08 20:20 |
| Content Elements Archiv? | bisaim | TYPO3 4.x Backend | 1 | 09.10.07 19:27 |
| Teaser für Content-Elements? | ralze | Extension suchen und neue vorschlagen | 1 | 07.05.07 16:39 |
| Flexible Content Elements | sholastic | TemplaVoila | 3 | 13.12.06 13:11 |
| Flexible Content Elements | Sun | TemplaVoila | 10 | 04.08.06 21:55 |