This is the official custom fields repository for the Joomla 3.6 version. Please open here issues and pull requests for feedback.
This repository adds custom fields functionality to the Joomla CMS, based on the code of DPFields. It will be integrated as a horizontal component. This means, loading of fields into JForm and displaying them on the front is controlled trough the Fields system plugin. Field management is done trough the com_fields component and will be integrated similar to com_categories as a new Fields menu item in the articles manager.
Please keep in mind that this repository adds two new tables and new entries to the extension table. The following test instruction acts more as a getting started guide. How to get more information can be found at the end of this file.
- Log in on the back end.
- Navigate to Content -> Articles.
- Click on the left sidebar on Fields.
- Click on the New button on the top.
- Define a title and label.
- Click the Save & Close button on the top.
- Log in on the back end.
- Navigate to Content -> Articles.
- Click on the New button on the top.
- Define a title.
- Open the Fields tab.
- Add some text on the custom field.
- Click the Save & Close button on the top.
- Log in on the back end.
- Create an article menu item in the menu manager and select the new article.
- Go to the front site of your Joomla installation.
- Open the article.
- Check if the custom field is displayed.
A more detailed test instruction article with screenshots can be found on our blog. We scratched here only on the surface of com_fields. If you want to check out what is all possible with this PR should have a look on the full documentation of DPFields. There are many options like layout overrides, inline field rendering in the article description, categories per fields, permissions. What works for DPFields will also work for com_fields.
As the current code is more or less a one to one copy of DPFields the following approaches do need clarification:
- Is the system plugin approach right? Or should it be integrated as Observer on JTable and JModelForm?
- com_fields uses a new permission, who can edit the value of a field? Should that be made as a new permission in core too, as at the moment a field can't inherit from the categories or even the global configuration?
- Copyright (C) 2005 - 2016 Open Source Matters. All rights reserved.
- Special Thanks
- Distributed under the GNU General Public License version 2 or later
- See License details