Antwort
 
LinkBack Themen-Optionen Thema bewerten Ansicht
  #1  
Alt 14.03.07, 10:26
Forum Newbie
 
Registriert seit: 16.03.05
Beiträge: 14

Bilderbreite für Content Elements


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 = &lt;!--TYPO3SEARCH_begin--&gt; | &lt;!--TYPO3SEARCH_end--&gt;
</TypoScript>

gruss Markus
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #2  
Alt 26.03.07, 11:22
Forum Stammgast
 
Registriert seit: 01.09.06
Ort: Grafenwöhr
Alter: 32
Beiträge: 218

Suche ich auch gerade


Hallo,

genau an dem selben Problem hänge ich auch gerade? Vielleicht weiss ja einer Rat?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #3  
Alt 26.03.07, 13:55
Forum Stammgast
 
Registriert seit: 01.09.06
Ort: Grafenwöhr
Alter: 32
Beiträge: 218
Daumen hoch

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>
Ich hoffe, das hilft Dir weiter!!

Gruß Anderl
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
Antwort

Lesezeichen

Themen-Optionen
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an


Ä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


Alle Zeitangaben in WEZ +1. Es ist jetzt 17:06 Uhr.


Powered by vBulletin® Version 3.7.3 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0