- Category: Joomla
Sometimes we need to display records on the front end of the website as a table or a list which is linked to a form that can make inquiries based on the row item selected . For example a list of business opportunities can be displayed on a page which visitors can apply online by clicking on a list item which pops up a form.
On Joomla environment , there are number of extentions which can help us to implement this function. From those extensions, we have used Fabrik component many time to create special forms funtionality on Joomla websites which saved us lot of time and effort.
Understanding and using Fabrik is pretty simple , but recently a client requested that he needs to order the rows of a table in a custom order which he decides. When this requirement came , we already has created the form using Fabrik component and it had no facility to implement custom ordering of records.
After little research, we managed to use the Fabriks Form settings to process a custom PHP file just after the data is stored which solved the problem.
- Add a row to the fabrik table ( i.e an element) named RowOrder
- Create a php file e.g. sort.php in htdocs\veenus\components\com_fabrik\plugins\form\fabrikphp\scripts
- Add the following code to the sort.php
4. Setup a submission plugging for the relevent form to execute this php file after the data is stored.
Thats it. :)