Updating your FLEXIcontent J1.5 templates to work with FC v2.x for J2.5 / J3.x

  • Published by
    George Papadakis
  • Last modified
    28 October 2013
  • Up to date
    Yes
  • Profile concerned
    End user, Webdesigner, Developer
  • Concerns
    Template
  • Since Version
    2.0
  • Voting
    Average rating
    1 vote
    • 1
    • 2
    • 3
    • 4
    • 5
  • Favourites
    300 Updating your FLEXIcontent J1.5 templates to work with FC v2.x for J2.5 / J3.x /documentation/tutorials-english/69-templating-module-plugin-content/300-updating-your-flexicontent-j15-templates-to-work-with-fc-v2x-for-j25-j3x.html

To make the XML files of your J1.5 FLEXIcontent templates compatible with J2.5 format replace in item.xml  and  category.xml:

1
<metadata>, </metadata>
with
1
<form>,</form>

 

1
<params addpath="/administrator/components/com_flexicontent/elements">
with
1
2
<fields name="attribs">
  <fieldset name="attribs" addfieldpath="/administrator/components/com_flexicontent/elements">

 

1
</params>
with
1
2
  </fieldset>
</fields>

 

1
<param ...> , </param>
with
1
<field ...> , </field>

 

NOTE 1: make sure you clean cache after editing an XML

NOTE 2: For XML syntax errors you will be warned, but not for invalid XML values,
e.g
- you will not be warned if your J1.5 XML files have not been updated, instead you probavly get an JS error in category/item edit form
- e.g. all you item/category parameters must have their type param set e.g. type="sometype", so type="" will break the form, so check you XML file for it