TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv

TYPO3 Mailingliste: nicht fragen - lesen!

TYPO3 Mailingliste: nicht fragen - lesen!_RR_1-->
Zurück   TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv > TYPO3-Mailinglists: ENGLISH > typo3-project-templavoila@lists.netfielders.de

Registrieren Hilfe Benutzerliste Kalender Suchen Heutige Beiträge Alle Foren als gelesen markieren
  #1  
Alt 11.06.2008, 16:27
Post von Seniorm
Gast
 
Beiträge: n/a
Standard [TYPO3-templavoila] WG: constace in fce?

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
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!
  #2  
Alt 11.06.2008, 16:38
Michael Niemann
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-templavoila] WG: constace in fce?

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 &lt;post (AT) seniorm (DOT) de&gt; wrote:
From: Post von Seniorm &lt;post (AT) seniorm (DOT) de&gt;
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**

&lt;?xml version="1.0" encoding="utf-8"
standalone="yes" ?&gt;
&lt;T3DataStructure&gt;
&lt;meta type="array"&gt;
&lt;langChildren
type="integer"&gt;1&lt;/langChildren&gt;
&lt;langDisable
type="integer"&gt;1&lt;/langDisable&gt;
&lt;/meta&gt;
&lt;ROOT type="array"&gt;
&lt;tx_templavoila type="array"&gt;
&lt;title&gt;ROOT&lt;/title&gt;
&lt;description&gt;Select the HTML element
on
the page which you want to be the overall container element for the
template.&lt;/description&gt;
&lt;/tx_templavoila&gt;
&lt;type&gt;array&lt;/type&gt;
&lt;el type="array"&gt;
&lt;field_layout type="array"&gt;
&lt;type&gt;attr&lt;/type&gt;
&lt;tx_templavoila
type="array"&gt;

&lt;title&gt;Layout&lt;/title&gt;
&lt;sample_data
type="array"&gt;

&lt;numIndex index="0"&gt;&lt;/numIndex&gt;
&lt;/sample_data&gt;

&lt;eType&gt;select&lt;/eType&gt;
&lt;/tx_templavoila&gt;
&lt;TCEforms
type="array"&gt;
&lt;config
type="array"&gt;

&lt;type&gt;select&lt;/type&gt;

&lt;items type="array"&gt;

&lt;numIndex index="0" type="array"&gt;

&lt;numIndex index="0"&gt;Layout 50%/50%&lt;/numIndex&gt;

&lt;numIndex index="1"&gt;fce-2-spalten layout1&lt;/numIndex&gt;

#### Inside here i need a kind of conctance####

###&lt;numIndex index="2"&gt;680&lt;/numIndex&gt;###

&lt;/numIndex&gt;

&lt;numIndex index="1" type="array"&gt;

&lt;numIndex index="0"&gt;Layout 30%/70%&lt;/numIndex&gt;

&lt;numIndex index="1"&gt;fce-2-spalten layout2&lt;/numIndex&gt;

&lt;/numIndex&gt;

&lt;numIndex index="2" type="array"&gt;

&lt;numIndex index="0"&gt;Layout 70%/30%&lt;/numIndex&gt;

&lt;numIndex index="1"&gt;fce-2-spalten layout3&lt;/numIndex&gt;

&lt;/numIndex&gt;

&lt;numIndex index="3" type="array"&gt;

&lt;numIndex index="0"&gt;Layout 60%/40%&lt;/numIndex&gt;

&lt;numIndex index="1"&gt;fce-2-spalten layout4&lt;/numIndex&gt;

&lt;/numIndex&gt;

&lt;numIndex index="4" type="array"&gt;

&lt;numIndex index="0"&gt;Layout 40%/60%&lt;/numIndex&gt;

&lt;numIndex index="1"&gt;fce-2-spalten layout5&lt;/numIndex&gt;

&lt;/numIndex&gt;

&lt;/items&gt;

&lt;default&gt;fce-2-spalten layout1&lt;/default&gt;
&lt;/config&gt;

&lt;label&gt;Layout&lt;/label&gt;
&lt;/TCEforms&gt;
&lt;/field_layout&gt;
&lt;field_fce2links
type="array"&gt;
&lt;tx_templavoila
type="array"&gt;
&lt;title&gt;Inhalt
Links&lt;/title&gt;
&lt;sample_data
type="array"&gt;

&lt;numIndex index="0"&gt;&lt;/numIndex&gt;
&lt;/sample_data&gt;

&lt;eType&gt;ce&lt;/eType&gt;
&lt;TypoScript&gt;
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 = &lt;!--TYPO3SEARCH_begin--&gt; | &lt;!--TYPO3SEARCH_end--&gt;
#15 = RESTORE_REGISTER
&lt;/TypoScript&gt;

&lt;oldStyleColumnNumber
type="integer"&gt;0&lt;/oldStyleColumnNumber&gt;
&lt;/tx_templavoila&gt;
&lt;TCEforms
type="array"&gt;
&lt;config
type="array"&gt;

&lt;type&gt;group&lt;/type&gt;

&lt;internal_type&gt;db&lt;/internal_type&gt;

&lt;allowed&gt;tt_content&lt;/allowed&gt;

&lt;size&gt;5&lt;/size&gt;

&lt;maxitems&gt;200&lt;/maxitems&gt;

&lt;minitems&gt;0&lt;/minitems&gt;

&lt;multiple&gt;1&lt;/multiple&gt;

&lt;show_thumbs&gt;1&lt;/show_thumbs&gt;
&lt;/config&gt;
&lt;label&gt;Inhalt
Links&lt;/label&gt;
&lt;/TCEforms&gt;
&lt;/field_fce2links&gt;
&lt;field_fce2rechts
type="array"&gt;
&lt;tx_templavoila
type="array"&gt;
&lt;title&gt;Inhalt
Rechts&lt;/title&gt;
&lt;sample_data
type="array"&gt;

&lt;numIndex index="0"&gt;&lt;/numIndex&gt;
&lt;/sample_data&gt;

&lt;eType&gt;ce&lt;/eType&gt;
&lt;TypoScript&gt;
10= RECORDS
10.source.current=1
10.tables = tt_content
&lt;/TypoScript&gt;

&lt;oldStyleColumnNumber
type="integer"&gt;1&lt;/oldStyleColumnNumber&gt;
&lt;/tx_templavoila&gt;
&lt;TCEforms
type="array"&gt;
&lt;config
type="array"&gt;

&lt;type&gt;group&lt;/type&gt;

&lt;internal_type&gt;db&lt;/internal_type&gt;

&lt;allowed&gt;tt_content&lt;/allowed&gt;

&lt;size&gt;5&lt;/size&gt;

&lt;maxitems&gt;200&lt;/maxitems&gt;

&lt;minitems&gt;0&lt;/minitems&gt;

&lt;multiple&gt;1&lt;/multiple&gt;

&lt;show_thumbs&gt;1&lt;/show_thumbs&gt;
&lt;/config&gt;
&lt;label&gt;Inhalt
Rechts&lt;/label&gt;
&lt;/TCEforms&gt;
&lt;/field_fce2rechts&gt;
&lt;/el&gt;
&lt;/ROOT&gt;
&lt;/T3DataStructure&gt;



_______________________________________________
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
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!
  #3  
Alt 11.06.2008, 19:28
Peter Niederlag
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-templavoila] WG: constace in fce?

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':&nbsp;|</p>
# 10 = TEXT
# 10.data = register:maxImageWidth
# 10.wrap = <p>Wert im Register:&nbsp;|</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
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!
 

Lesezeichen

Themen-Optionen
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine 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
[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


Alle Zeitangaben in WEZ +1. Es ist jetzt 03:28 Uhr.


Powered by vBulletin® Version 3.7.4 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Template-Modifikationen durch TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75