- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 4
3rd Party Requirements
Besides core components, third party extensions can also have associations and take advantage of the com_associations list view, as well as the side-by-side for better work-flow. Meeting certain requirements, third party extensions will also be listed on the list view's filters, and on the side-by-side as these images exemplify:
List view:

Side-by-side:

- 
Component should have a ROOT/components/<com_componentname>/helpers/association.phpExample here
- 
ROOT/component/<com_componentname>/helpers/association.phpneeds to loadroute.php:JLoader::register(<ComponentName>'HelperRoute', JPATH_SITE . '/components/<com_componentname>/helpers/route.php');Example here
- 
Component using Categories with associations should have the method getCategoryAssociationsinROOT/component/<com_componentname>/helpers/association.php. Example here
- 
Component with associated items should have $associationsContextand$typeAliasdefined in the model concerned. Example here and here
- 
Component should have in backend specific modal_associations.phpviews for the item, parallel to the edit view. Example here Another way is to have chosen fields, any other implementation will not work.
- 
Edit modals have to use &tmpl=componentby implementing an EDIT functionnality inROOT/administrator/components/<com_componentname>/models/fields/modal/<item>, not only a Select. Example: here
- 
Associated item must have the following fields: id, title, alias, languagein order to work, com_associations will also use the following fields if they exist:ordering, menutype, level, catid, access, published, created_by, checked_out, checked_out_timethe fields mentioned can have other names in case the model contains the variable$_columnAlias, example:
    protected $_columnAlias = array(
        'component_id' => 'id',
        'title'        => 'name',
        'created'      => 'created_by',
    );- Components that support multiple categories context MUST have each item type categories context (aka extension) in their item types models. Exmaple:
    protected $categoriesContext = 'com_mycomponent.myitem1';to do