This section contains a walkthrough how to quickly enable existing Directory and how to display it in your site. In our examples we are using Contacts Directory which already exists in your site.

Enabling a Directory

Plugin Configuration

To enable a custom Flex Directory, you need to go to Plugins > Flex Objects.

We are interested in Directories option inside the plugin, which lists all the detected Flex Directories. Just select the directories you're interested in and make sure toggle has Enabled option checked.

TIP: Enable directory called Contacts

Hit Save and the directory should show up after a page load.

Install Sample Data (Optional)

For our example, we assume that you have copied the sample data set for Contacts Directory:

$ cp user/plugins/flex-objects/data/flex-objects/contacts.json user/data/flex-objects/contacts.json

Create a Page

Go to Pages and add a new page. Enter following values:

  • Page Title: Flex-Objects
  • Page Template: Flex-objects

After this you can click on Continue button.

In the Content Editor enter directory and add content:

  • Flex Directory: Contacts
  • Content:
    # Directory Example

When you are happy with the page, hit Save.

TIP: If you do not specify Flex Directory, the page will list all directories instead of displaying entries from a single directory.

Display the Page

You can just go to your site and look at the menu. It should contain Contacts. Entering to that page should display:

In case if you did not select any directory, this is what you would see instead:

Found errors? Think you can improve this documentation? Simply click the Edit link at the top of the page, and then the icon on Github to make your changes.