Concatenating Content using the Calc Element

fabrikAn additional Fabrik element that you can download separately is the Calc element.  This article describes using Calc to concatenate existing Firstname and Surname fields into one Fullname field.

Download and Install

Start by browsing to

  1. Click the Download button.
  2. Filter the search by typing in the word calc.
  3. Select Type, All.
  4. Download element - calc plug-in 3.5.1.
  5. Install as you would any Joomla extension.

This is the version that works with Joomla 3.2 +


Adding the Element

Browse to the back-end of Joomla with your Administrator account.

  1. Go to Components > Fabrik > Elements.
  2. Click New to add a new element.
  3. Give your element a Name (e.g. Fullname).
  4. Choose Plugin calc.
  5. Make sure your element is in the right Group.
  6. Select the More tab.
  7. In the Calculation area, enter the following content, amending the element names to suit your installation.
return '{yourtable___firstname}' . ' ' . '{yourtable___lastname}';

 Note the full-stops used to concatenate, and the ' ' space in the middle


Thanks for visiting,