Code Templates

Code templates provide the 'skeleton' from which Component Architect can generate Joomla components.  Each code template consists of folders and files which are used as the basis for multiple components.  By the use of specific naming standards for folders and files combined with an extensive code mark-up language, within the code templates, Component Architect is able to provide the flexibility to use component generation for the widest possible range of applications.

The 'mark-up language' is a series of tags within a code template which direct the code generation process,such as

[%%FOREACH FIELD%%]....some code....[%%ENDFOR FIELD%%]


These logic statements can be nested to an unlimited extent.  Besides logic statements values can also be inserted such as [%%FIELD_CODE_NAME%%] or [%%FIELD_TYPE%%].

During the development of Component Architect it was realised that the original idea of just providing Standard code templates to replicate Joomla! functionality, features and MVC structures was already available through several on-line and downloadable products.  But as our development had begun based on marked-up code templates we could, in fact, provide a wider range of code templates to meet many more development requirements in Joomla! and even provide non Joomla! code generation or even documentation or testing generation.

The initial outcome from this identification of greater potential are the two additional Professional code templates (Joomla! 3.x Enhanced and Joomla! 3.x Test Data Generator) provided with Component Architect Professional.  Further code template development of Component Architect is planned and indeed with Component Architect Professional you can develop you own versions of code templates.  Simply take a copy of the code template with Component Architect Professional and all the database information, folder structure and files are replicated so you can modify them at will.  Or you can start from scratch and develop your own new code templates.

Standard Code Templates

The Standard code templates provide the capability to generate fully working Joomla! components for specific versions of Joomla!.  The functionality and features included in the Standard code templates is based on that of the core components of Joomla. They are coded to combine features from com_content and com_contact which can support a wide range of other components.

Besides the folders, files and code for a component to be generated the Joomla! Standard code templates also provide other extensions to create a full package for a component.  This includes:

  • Modules for display of items
  • Search plugin
  • Smart Search plugin
  • Item Navigation plugin
  • Vote plugin
  • Pagebreak plugin
  • Email Cloaking plugin
  • Load Module plugin

In line with the change in release methodology by Joomla!, Component Architect will be releasing new Standard code templates for each major (e.g. 3.x and 4.x)  release of Joomla!.
Note: for those not yet aware Joomla! is no longer using a Long Term Support (LTS) and Short Term Support (STS) releases system.  For further information see the following articles:

The free Component Architect product and the subscription based Component Architect Professional product will include Standard code templates for the following releases of Joomla:

  • Joomla! 3.4
  • Joomla! 3.3

Note: because of the flexibility of Component Architect you can always turn off the generation of those features which may cause problems in earlier releases of Joomla!.

Enhancements/New Code Templates

The approach taken by Component Architect, using the flexibility of marked up code templates, extensive component definition and an adaptable code generation process provides the opportunity for almost unlimited scope in the functionality and features that can be automatically included in new components.

A number of enhancements to the Joomla! 3.x Enhanced code template are already being investigated, such as:

  • Support of notification emails
  • Log functionality for CRUD changes
  • Cascade functionality in front end (currently only available in the administrator area)
  • Enhanced layouts in front end (a basic tree view has been included but a number of other modern layouts are being investigated)
  • Greater flexibility in administrator list views (select columns and filters in Options)

Besides development of enhancements to the two additional Professional code templates (Joomla! 3.x Enhanced and Joomla! 3.x Test Data Generator) provided with Component Architect Professional, further development of new code templates is planned.  Initial focus will be in developing the following code templates:

  • Joomla!FoF (Framework on Framework) code template - to provide both a learning tool and code generation for FoF components/extensions.
  • Joomla Framework code template - to allow non-CMS based application generation

Ideas for future code templates include - no development currently planned:

  • Selenium System Testing code templates
  • PHPUnit Testing code template
  • Durpal code template
  • Commuity Builder AhaWow code template

We use cookies to improve our website and your experience when using it. Cookies used for the essential operation of the site have already been set. To find out more about the cookies we use and how to delete them, see our Use of cookies.

I accept cookies from this site.