|
|||||||
| Registrieren | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
|
#1
|
|||
|
|||
|
Hi list,
i got an fce for a two-colum layout. I've mapped the class attribut from the sourounding div container as selectbox where you can choose the typo of layout. For example 70/30 or 60/40. Now i whant to define the maxImageWidth for the contentelements but i diddn't know how to define a kind of constance inside my selecbox. Here is the XML of the fce element and my thoughts how to define the maxImageWidth. I have totaly no idea how to realize what im looking for an will be very thankfull for any kind of tipp and sorry for my bad grammar. I hope it is possible what i mean. Greetings Nat** <?xml version="1.0" encoding="utf-8" standalone="yes" ?> <T3DataStructure> <meta type="array"> <langChildren type="integer">1</langChildren> <langDisable type="integer">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_layout type="array"> <type>attr</type> <tx_templavoila type="array"> <title>Layout</title> <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">Layout 50%/50%</numIndex> <numIndex index="1">fce-2-spalten layout1</numIndex> #### Inside here i need a kind of conctance#### ###<numIndex index="2">680</numIndex>### </numIndex> <numIndex index="1" type="array"> <numIndex index="0">Layout 30%/70%</numIndex> <numIndex index="1">fce-2-spalten layout2</numIndex> </numIndex> <numIndex index="2" type="array"> <numIndex index="0">Layout 70%/30%</numIndex> <numIndex index="1">fce-2-spalten layout3</numIndex> </numIndex> <numIndex index="3" type="array"> <numIndex index="0">Layout 60%/40%</numIndex> <numIndex index="1">fce-2-spalten layout4</numIndex> </numIndex> <numIndex index="4" type="array"> <numIndex index="0">Layout 40%/60%</numIndex> <numIndex index="1">fce-2-spalten layout5</numIndex> </numIndex> </items> <default>fce-2-spalten layout1</default> </config> <label>Layout</label> </TCEforms> </field_layout> <field_fce2links type="array"> <tx_templavoila type="array"> <title>Inhalt Links</title> <sample_data type="array"> <numIndex index="0"></numIndex> </sample_data> <eType>ce</eType> <TypoScript> 5. = LOAD_REGISTER # here i what to override the value with the value from the selectbox # or in need the value from the field layout..... 5.maxImageWidthInText = {$maxImageInText} 5.maxImageWidth = {$maxImage} 10= RECORDS 10.source.current=1 10.tables = tt_content 10.wrap = <!--TYPO3SEARCH_begin--> | <!--TYPO3SEARCH_end--> #15 = RESTORE_REGISTER </TypoScript> <oldStyleColumnNumber type="integer">0</oldStyleColumnNumber> </tx_templavoila> <TCEforms type="array"> <config type="array"> <type>group</type> <internal_type>db</internal_type> <allowed>tt_content</allowed> <size>5</size> <maxitems>200</maxitems> <minitems>0</minitems> <multiple>1</multiple> <show_thumbs>1</show_thumbs> </config> <label>Inhalt Links</label> </TCEforms> </field_fce2links> <field_fce2rechts type="array"> <tx_templavoila type="array"> <title>Inhalt Rechts</title> <sample_data type="array"> <numIndex index="0"></numIndex> </sample_data> <eType>ce</eType> <TypoScript> 10= RECORDS 10.source.current=1 10.tables = tt_content </TypoScript> <oldStyleColumnNumber type="integer">1</oldStyleColumnNumber> </tx_templavoila> <TCEforms type="array"> <config type="array"> <type>group</type> <internal_type>db</internal_type> <allowed>tt_content</allowed> <size>5</size> <maxitems>200</maxitems> <minitems>0</minitems> <multiple>1</multiple> <show_thumbs>1</show_thumbs> </config> <label>Inhalt Rechts</label> </TCEforms> </field_fce2rechts> </el> </ROOT> </T3DataStructure> _______________________________________________ TYPO3-project-templavoila mailing list TYPO3-project-templavoila (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-templavoila |
|
#2
|
|||
|
|||
|
hi,
can't you put the constant value in a filed that is not mapped and has no input type but set it via typoscript? regards Michael --- On Wed, 6/11/08, Post von Seniorm <post (AT) seniorm (DOT) de> wrote: From: Post von Seniorm <post (AT) seniorm (DOT) de> Subject: [TYPO3-templavoila] WG: constace in fce? To: typo3-project-templavoila (AT) lists...netfielders.de Date: Wednesday, June 11, 2008, 2:27 PM Hi list, i got an fce for a two-colum layout. I've mapped the class attribut from the sourounding div container as selectbox where you can choose the typo of layout. For example 70/30 or 60/40. Now i whant to define the maxImageWidth for the contentelements but i diddn't know how to define a kind of constance inside my selecbox. Here is the XML of the fce element and my thoughts how to define the maxImageWidth. I have totaly no idea how to realize what im looking for an will be very thankfull for any kind of tipp and sorry for my bad grammar. I hope it is possible what i mean. Greetings Nat** <?xml version="1.0" encoding="utf-8" standalone="yes" ?> <T3DataStructure> <meta type="array"> <langChildren type="integer">1</langChildren> <langDisable type="integer">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_layout type="array"> <type>attr</type> <tx_templavoila type="array"> <title>Layout</title> <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">Layout 50%/50%</numIndex> <numIndex index="1">fce-2-spalten layout1</numIndex> #### Inside here i need a kind of conctance#### ###<numIndex index="2">680</numIndex>### </numIndex> <numIndex index="1" type="array"> <numIndex index="0">Layout 30%/70%</numIndex> <numIndex index="1">fce-2-spalten layout2</numIndex> </numIndex> <numIndex index="2" type="array"> <numIndex index="0">Layout 70%/30%</numIndex> <numIndex index="1">fce-2-spalten layout3</numIndex> </numIndex> <numIndex index="3" type="array"> <numIndex index="0">Layout 60%/40%</numIndex> <numIndex index="1">fce-2-spalten layout4</numIndex> </numIndex> <numIndex index="4" type="array"> <numIndex index="0">Layout 40%/60%</numIndex> <numIndex index="1">fce-2-spalten layout5</numIndex> </numIndex> </items> <default>fce-2-spalten layout1</default> </config> <label>Layout</label> </TCEforms> </field_layout> <field_fce2links type="array"> <tx_templavoila type="array"> <title>Inhalt Links</title> <sample_data type="array"> <numIndex index="0"></numIndex> </sample_data> <eType>ce</eType> <TypoScript> 5. = LOAD_REGISTER # here i what to override the value with the value from the selectbox # or in need the value from the field layout..... 5.maxImageWidthInText = {$maxImageInText} 5.maxImageWidth = {$maxImage} 10= RECORDS 10.source.current=1 10.tables = tt_content 10.wrap = <!--TYPO3SEARCH_begin--> | <!--TYPO3SEARCH_end--> #15 = RESTORE_REGISTER </TypoScript> <oldStyleColumnNumber type="integer">0</oldStyleColumnNumber> </tx_templavoila> <TCEforms type="array"> <config type="array"> <type>group</type> <internal_type>db</internal_type> <allowed>tt_content</allowed> <size>5</size> <maxitems>200</maxitems> <minitems>0</minitems> <multiple>1</multiple> <show_thumbs>1</show_thumbs> </config> <label>Inhalt Links</label> </TCEforms> </field_fce2links> <field_fce2rechts type="array"> <tx_templavoila type="array"> <title>Inhalt Rechts</title> <sample_data type="array"> <numIndex index="0"></numIndex> </sample_data> <eType>ce</eType> <TypoScript> 10= RECORDS 10.source.current=1 10.tables = tt_content </TypoScript> <oldStyleColumnNumber type="integer">1</oldStyleColumnNumber> </tx_templavoila> <TCEforms type="array"> <config type="array"> <type>group</type> <internal_type>db</internal_type> <allowed>tt_content</allowed> <size>5</size> <maxitems>200</maxitems> <minitems>0</minitems> <multiple>1</multiple> <show_thumbs>1</show_thumbs> </config> <label>Inhalt Rechts</label> </TCEforms> </field_fce2rechts> </el> </ROOT> </T3DataStructure> _______________________________________________ TYPO3-project-templavoila mailing list TYPO3-project-templavoila (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-templavoila _______________________________________________ TYPO3-project-templavoila mailing list TYPO3-project-templavoila (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-templavoila |
|
#3
|
|||
|
|||
|
Hello,
Post von Seniorm schrieb: > Hi list, [...] > <TypoScript> > 5. = LOAD_REGISTER > # here i what to override the value with the value from the selectbox > # or in need the value from the field layout..... > 5.maxImageWidthInText = {$maxImageInText} > 5.maxImageWidth = {$maxImage} > 10= RECORDS > 10.source.current=1 > 10.tables = tt_content > 10.wrap = <!--TYPO3SEARCH_begin--> | <!--TYPO3SEARCH_end--> > #15 = RESTORE_REGISTER > </TypoScript> In case someone ever needs the solution, comments are german, sry. <TypoScript><![CDATA[ 5 = LOAD_REGISTER 5 { maxImageWidth { preCObject = CASE preCObject { key.field = field_layout # fuer das Leerzeichen / start key.listNum = 1 key.listNum.splitChar = 32 # fuer das Leerzeichen / end default = TEXT default.value = 410 layout1 = TEXT layout1.value = 200 layout2 = TEXT layout2.value = Just default # @todo # weitere wert fuer andere layouts } } # @todo # das gleiche für maxImageWidthIn Text (oder wie das heisst) # ggf. einfach mir prioriCalc o.ä. arbeiten # @todo # dito fuer rechte Spalte! # ggf. würde ich versuchen mit Berechnungen zu arbeiten (.prioriCalc) } # debugging #7 = COA #7 { # 3 = TEXT # 3.value = debug Register Bearbeitung FCE # 3.wrap = <h4>|</h4> # 5 = TEXT # 5.field = field_layout # 5.wrap = <p>Feld 'layout': |</p> # 10 = TEXT # 10.data = register:maxImageWidth # 10.wrap = <p>Wert im Register: |</p> # wrap = <div style="border: 5px solid green; background: #000;">|</div> #} 10= RECORDS 10.source.current=1 10.tables = tt_content 10.wrap = <!--TYPO3SEARCH_begin--> | <!--TYPO3SEARCH_end--> 15 = RESTORE_REGISTER ]]></TypoScript> Have fun, Peter -- Peter Niederlag http://www.niekom.de * TYPO3 & EDV Dienstleistungen * http://www.typo3partner.net * professional services network * _______________________________________________ TYPO3-project-templavoila mailing list TYPO3-project-templavoila (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-templavoila |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | Thema bewerten |
|
|
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| [TYPO3-german] Probleme mit rgaccordion in templavoila - condition für templavoila content | Ralf-René Schröder | typo3-german@lists.netfielders.de | 1 | 28.01.2008 18:17 |
| [TYPO3-german] Probleme mit rgaccordion in templavoila - condition für templavoila content | Ralf-René Schröder | typo3-german@lists.netfielders.de | 0 | 26.01.2008 15:41 |
| [TYPO3-german] Probleme mit rgaccordion in templavoila - condition für templavoila content | Ralf-René Schröder | typo3-german@lists.netfielders.de | 0 | 26.01.2008 15:24 |
| [TYPO3-german] rgaccordion in templavoila - condition für templavoila content | Ralf-René Schröder | typo3-german@lists.netfielders.de | 0 | 26.01.2008 15:09 |
| Re: [TYPO3-templavoila] TemplaVoila v/s Traditional Templating(Template AutoParser, TypoScript etc.) | Dennis Riedel | typo3-project-templavoila@lists.netfielders.de | 5 | 02.12.2006 22:27 |