Community Documentation

Using Patterns with Facebook Likebox

Last updated March 26, 2013. Created by drozas on July 18, 2012.
Log in to edit this page.

Facebook likebox provides an optional submodule named fb_likebox_patterns since version 7.x-1.4, allowing full integration with the module patterns.
Patterns provides an extremely powerful way to perform automatic system configuration. A set of patterns with the most common configurations of Facebook Likebox are provided in the submodule, and the configuration of the module with patterns can be done in just one click.
Since version 7.x-1.7 of FB Likebox we recommend the use of Patterns 7.x-2.x.

How to enable patterns?

Patterns provides a very detailed documentation for site builders and developers. Here you can find the installation instructions for Patterns 7.x, that is the only version currently supported by FB Likebox.
Remember to enable the submodule "FB Likebox Patterns" at 'Modules' section ('admin/modules').

How to change the settings of FB Likebox using patterns?

  • Go to 'Patterns' in the administration menu or visit the following URL: '/admin/patterns'.
  • In this section you will find a section called "Facebook Likebox", with the most common configurations for this module. The configurations matched the ones described in the main page of the documentation (section 'Configuration examples').
  • Just run your preferred configuration clicking on 'Run' (or 'Re-Run' if you already tried that configuration) and that's all.
    Running patterns for FB Likebox

    How to export FB Likebox settings using patterns?

  • Go to Patterns > Export in the administration menu or visit the following URL: '/admin/patterns/export'.
  • If you click 'Export', you will create a pattern file with all the settings in your site (including the ones from Facebook Likebox).
  • If you want to export only Facebook Likebox options, check the option 'I want to select the components individually (Experimental)' in the section 'Options', and select the following components as detailed on the screenshot below:
    • Export options: fb_likebox checked
    • fb_likebox: all checked

    Exporting fb_likebox settings with patterns
    And that's all. Now you can re-use those configurations in other sites, share them with other users, version-controlling them, etc.

    AttachmentSize
    fb_likebox_patterns_admin.png40.32 KB
    fb_likebox_export_patterns.png15.94 KB

    Page status

    No known problems

    Log in to edit this page

    About this page

    Drupal version
    Drupal 7.x
    Audience
    Programmers, Site administrators
    Keywords
    facebook, fb_likebox, likebox, patterns

    Site Building Guide

    Drupal’s online documentation is © 2000-2013 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License. Comments on documentation pages are used to improve content and then deleted.
    nobody click here