HarleyDavidson86 / OGContacts

Contact management plugin for bludit to manage contacts and show them on your website.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OGContacts

Contact management plugin for bludit to manage contacts and show them on your website

Setup

After activating this plugin you will find a link to the plugins page in the admin panel.

Creating categories

In the second tab you can create categories to group contacts.

If you want to delete a category, just empty the input field and hit save.

Set up contact fields

In the third tab you can create fields which are available later in the contacts form.

If you want to delete a field, just empty the input field and hit save.

Remember to adjust your contactcard.php that the new fields are shown correctly.

Set a link in content

Single contact

To show a contact on a page, just copy the placeholder snippet you see in the contactlist.
This placeholder will be replaced with the contactcard.

List of contacts by category

To show a list of contacts of a certain category, just place the shortcode CONTACTLIST{<CATEGORYID>} on a page.
You can find the category id in the category list view below the inputfield.

You can also specify an own template for a list-view. Just place the shortcut CONTACTLIST{<CATEGORYID>;<TEMPLATENAME>} on a page.
The templatename must be lowercase and alphanumeric.
For example: CONTACTLIST{staff;stafflist}. The plugin is looking for a file called categorylist.stafflist.php. If it cannot find it, the default template will be used.

Customize the contact card

The plugin is looking for a file called contactcard.php in your themes folder. If you want to customize the card, just copy the layout/contactcard.php in your themes folder and edit it. In this file you have access to the object $fields and $contact to access all information you want to place. Just have a look to the default contactcard.php.

Customize the category list

The plugin is looking for a file called categorylist.php in your themes folder. If you want to customize the card, just copy the layout/categorylist.php in your themes folder and edit it. In this file you have access to the object $fields and $filteredcontacts to access all information you want to place. Just have a look to the default categorylist.php.

About

Contact management plugin for bludit to manage contacts and show them on your website.


Languages

Language:PHP 100.0%