[TYPO3-english] experience and best practice for flux update?

bernd wilke t3ng at bernd-wilke.net
Thu Jan 22 16:10:39 CET 2015


Am 21.01.15 um 11:39 schrieb bernd wilke:

> meanwhile I started an update to flux 7.0.0 and got errors because of:
> * flex:flexform.field.file lost parameter 'internalType'
> * flex:flexform.field.file renamed param showThumbs -> showThumbnails
> * flex:flexform.field.select lost parameter commaSeparatedItems (use items)
>
> now I'm testing wether the output stays the same after the modifications.
>
> further needed changes will follow.
>

the update to 7.0.0 went well with no changes in rendering.

now I did the final update to flux 7.1.2 / vhs 2.2.0

and got a lot of problems:

solved:

* v:if.type.isArray changed to v:condition.type.isArray

* change of the namespace declaration:
-{namespace flux=Tx_Flux_ViewHelpers}
-{namespace v=Tx_Vhs_ViewHelpers}
-<f:layout name="Content" />
-<div xmlns="http://www.w3.org/1999/xhtml"
-	 xmlns:flux="http://fedext.net/ns/flux/ViewHelpers"
-	 xmlns:v="http://fedext.net/ns/vhs/ViewHelpers"
-	 xmlns:f="http://typo3.org/ns/fluid/ViewHelpers">
+<div xmlns="http://www.w3.org/1999/xhtml" lang="en"
+	 xmlns:f="http://typo3.org/ns/fluid/ViewHelpers"
+	 xmlns:v="http://typo3.org/ns/FluidTYPO3/Vhs/ViewHelpers"
+	 xmlns:flux="http://typo3.org/ns/FluidTYPO3/Flux/ViewHelpers">
+    <f:layout name="Content" />

* flux:flexform changed to flux:form and changed also the parameters:
- <flux:flexform wizardTab="myTab" id="myCE" 
icon="{v:extension.path.resources(path: 'Icons/myCE.png')}">
+ <flux:form options="{group: 'myTab', 
icon:'{v:extension.path.resources(path: \'Icons/myCE.png\', 
extensionName:\'my_ext\')}'}" id="myCE">

* the declaration of the flexform changes completely:
** flux:flexform.sheet  -> flux:form.sheet
** flux:flexform.object -> flux:form.object
** flux:flexform.field.* -> flux:field.*
** flux:flexform.grid   -> flux:grid
** flux:flexform.grid.row -> flux:grid.row
** <flux:flexform.grid.column>
	<flux:flexform.content name=... />
    </flux:flexform.grid.column>
    -> <flux:flexform.grid.column name=... />
** flux:flexform.renderContent area=... -> flux:form.content name=...
** flux:flexform.field.wizard.link -> flux:wizard.link

unsolved:

with flux:widget.grid I got a problem which I could not solve yet:
the BE is not rendered  well:
all contained CEs are not available.
neither in BE page view nor in edit of the container CE.

my example:

old configuration:
<flux:flexform.sheet name="panels">
   <flux:flexform.field.select name="variant" commaSeparatedItems="1,2" 
default="1" />
   <flux:flexform.field.select name="Heading" commaSeparatedItems="a,b" 
default="a" />
   <flux:flexform.field.input name="init" />
   <flux:flexform.section name="panels">
     <flux:flexform.object name="panel">
       <flux:flexform.field.input name="title" />
       <flux:flexform.field.select name="class" 
commaSeparatedItems="c,d" default="c" />
     </flux:flexform.object>
   </flux:flexform.section>
</flux:flexform.sheet>
<flux:flexform.grid>
   <f:for each="{panels}" as="panel" iteration="iteration">
     <flux:flexform.grid.row>
       <flux:flexform.grid.column>
         <flux:flexform.content name="content.{iteration.index}" 
label="righthere-{f:if(condition: panel.panel.title, then: 
panel.panel.title, else: 'Content, panel {iteration.cycle}')}" />
       </flux:flexform.grid.column>
     </flux:flexform.grid.row>
   </f:for>
</flux:flexform.grid>


new configuration:
<flux:form.sheet name="panels">
   <flux:field.select name="variant" items="1,2" default="1" />
   <flux:field.select name="Heading" items="a,b" default="a" />
   <flux:field.input name="init" />
   <flux:form.section name="panels">
     <flux:form.object name="panel">
       <flux:field.input name="title" />
       <flux:field.select name="class" items="c,d" default="c" />
     </flux:form.object>
   </flux:form.section>
</flux:form.sheet>
<flux:grid>
   <f:for each="{panels}" as="panel" iteration="iteration">
     <flux:grid.row>
       <flux:grid.column name="content.{iteration.index}" 
label="righthere-{f:if(condition: panel.panel.title, then: 
panel.panel.title, else: 'Content, panel {iteration.cycle}')}" />
     </flux:grid.row>
   </f:for>
</flux:grid>

what is wrong with this declaration so no subelements can be inserted or 
edited? (in FE the existing subelements are shown correct)

bernd
-- 
http://www.pi-phi.de/cheatsheet.html


More information about the TYPO3-english mailing list