Customizing the frontend item form

  • Published by
    George Papadakis
  • Last modified
    12 January 2014
  • Up to date
    Yes
  • Profile concerned
    Webdesigner, Developer
  • Concerns
    Component Template
  • Since Version
    1.5.4
  • Voting
    Average rating
    6 votes
    • 1
    • 2
    • 3
    • 4
    • 5
  • Favourites
    201 Customizing the frontend item form /documentation/tutorials-english/69-templating-module-plugin-content/201-customizing-the-frontend-item-form.html
  • Tags
    developer

To customize the frontend item form:
- use field configuration to customize the display and behaviour of your fields
- assign fields to specific content types (in field configuration)
- use ACL to control which fields are editable (in field configuration)
- order fields per content type (in backend fields manager)
- set FRONTEND ITEM form parameters in (a) Component settings and (b) override/set these parameters per content type (in content type configuration)


To MANUALLY customize the item frontend item form, you need to create a joomla template override for the file:

components/com_flexicontent/views/item/tmpl/form.php

  1. copy above file to templates/mytemplate/html/com_flexicontent/item/form.php 
  2. modify it to suit your needs

NOTE: For J1.5 use 'items' insterad of 'item'TIP 1: You cannot override the view file components/com_flexicontent/views/items/view.html.php, but you can copy code from this file to your joomla template override. TIP 2: You can use create many different forms , e.g. form1.php , form2.php, form3.php and link to them by creating joomla menu items of type external link:

  • index.php?option=com_flexicontent&view=item&layout=form1&task=add
  • index.php?option=com_flexicontent&view=item&layout=form2&task=add
  • index.php?option=com_flexicontent&view=item&layout=form3&task=add
  • index.php?option=com_flexicontent&view=item&layout=form1&task=edit&id=44
  • index.php?option=com_flexicontent&view=item&layout=form2&task=edit&id=44
  • index.php?option=com_flexicontent&view=item&layout=form3&task=edit&id=44