• A new version of Full Calendar is now available.

    See the details here

Community Builder

  • Views Views: 18,813
  • Last updated Last updated:
  • The Fabrik CB plugin is not longer compatible with Community Builder.
    But now you can use CB fields to display Fabrik content.

    Simply create a CB field of the type "Custom HTML" and enter a shortcode like {fabrik view=list id=1} in its "Description" field under the "General" tab. Don't forget to enable "Prepare content using CMS Content plugins" under the "Parameters" tab.

    Also make sure to set this CB field to not show on CB registration or profile edit pages, because otherwise you'll end up with nested <form> tags.

    To integrate with the Joomla Community Builder Extension we provide a Community builder plug-in which is capable of rendering all of Fabrik's views (Forms, tables and Visualizations) inside the community builder user profile page.

    It uses the same syntax as the Fabrik content plug-in, and should work in both Fabrik 2.x and Fabrik 3.x.

    Get the Fabrik CB plug-in from fabrikar.com/downloads (type=3rd party plugin)

    (or update from GitHub, go to components\com_comprofiler\plugin\user, zip the folder "plug_fabrik")

    • Install it via community builders plug-in management page
    • Make sure the plug-in is published
    • Ensure that you have the Joomla Fabrik content plug-in installed and enabled
    • Go to community builders 'cb tab manager' page
    • Edit the fabrik tab that should be there
    • On the right hand side in the parameters section enter your Joomla plug-in text to call Fabrik:
    Examples​

    Code:
    {fabrik view=list id=11 listname___user_raw=[user] resetfilters=1}
    Code:
    {fabrik view=list id=11 listname___user_raw=[$my->id] resetfilters=1}
    Code:
    {fabrik view=list id=11 listname___user_raw=[user||[$my->id]] resetfilters=1}
    will load list 11 filtered on the profile user resp. the current user
    Code:
    {fabrik view=details id=1 usekey=user rowid=[user]|[$my->id]}
    will load details view related to the profile user (defaulting to current user if no user is set by CB).

    See the fabrik content plug-in for a full list of Options, but basically you can show any view that fabrik has (Forms/Visualizations/Lists etc).

    Session Data:
    The plugin stores the currently viewed user profile id in the session. This is useful if you want to use this value elsewhere, for example in a prefilter you could set it to be eval'd with this value:

    PHP:
    $session = JFactory::getSession();
    return $session->get('fabrik.plugin.profile_id');

    The user element also has a switch to Use Social Profile, which tells the User element to use the session profile_id as the userid to store, if it is present, instead of the logged on userid. This is useful in certain circumstances, when (say) an admin is adding rows to a list which is shown in a user's CB profile.

    Creating Additional Community Builder Tabs:
    Unfortunately at the time of writing Community builder's interface does not allow for multiple instances of the same plugin, but we can achieve this by editing the database.

    • Open PhpMyAdmin (or similar)
    • View the data for the database table #__comprofiler_tabs (replace #_ with your Joomla database prefix)
    • You should see an entry which has a title 'Fabrik'
    • Copy this row and rename its title to 'Fabrik2'
    Now when you go to community builders tab manager page you should see 2 Fabrik plug-ins 'Fabrik' and 'Fabrik2'

    To add another instance of Fabrik to the tabs page, simply repeat steps 1-4.
Back
Top