[TYPO3-templavoila] WG: constace in fce?

Peter Niederlag niederlag at ikd01.de
Wed Jun 11 19:28:55 CEST 2008


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 *


More information about the TYPO3-project-templavoila mailing list