Fix text in the embed code license
[com.zyxware.civiwci.git] / README.md
CommitLineData
1e0a740c 1# CiviCRM Widget Creation Interface (WCI) Extension
a218e680 2
1e0a740c 3## Overview
3db58255 4
1e0a740c 5This is a CiviCRM CMS independent extension for creating and managing embeddable widgets which can showcase content from various CiviCRM properties like Donate links to contribution pages, Contribution status as progressbar, Malinglist signup forms, html text etc. The Widget Creation Interface (WCI) offer the flexibility to CiviCRM users to customize the look and feel of the widgets.
3db58255 6
1e0a740c 7## Prerequisite
3db58255
J
8
9- CMS. (Preferably Drupal Version 7.x)
10- CiviCRM Version 4.7.x or above
11
1e0a740c 12## Features
3db58255 13
1e0a740c
J
14- CiviCRM users can create embeddable widgets using existing CiviCRM compontents like Contribution pages as well as Mailinglists.
15- Progress bars can be created and added to widgets which draws its value from a formula including values from one or more contribution pages
16- We have seperated the embed code and widgets so that it is possible to change the widget appearing in a website without chaning the embed code.
17- It is possible to cache the widget generated to reduce the load on the CiviCRM server.
3db58255 18
1e0a740c 19### Progress bar
3db58255
J
20
21To draw a progress bar we need a starting amount, goal amount and current amount. Using 'Create Progress bar' (civicrm/wci/progress-bar/add) form user can set these information. Current amount for the progress bar is taken from the contributions done in the selected Civi Contribution page. User can select multiple source contribution pages and percentage of amount to take from those contribution pages for calculating current amount in the progress bar. By clicking save the information is saved to database and form gets forwarded to 'Manage Progress bar' page. There user can edit or delete already created progress bars.
22
1e0a740c 23### Widget
3db58255
J
24
25A lot of widget properties can be set here. User can give colors, texts, image for the widget and its elements. There is provision to show either amount or percentage on top of the progress bar in the widget. Also can hide or show border, title, and progress bar caption. Advanced users can override default template by checking 'Override' check box. At that time they have to provide custom template code which should be based on smarty v2.
26
27Mailing list Groups can be added using Civi Group(civicrm/group/add?reset=1). To get that group in the CreateWidget form check 'Mailing List' check box only.
28
29By clicking Save and Preview button information will be saved to the database and a sample widget will be displayed on top of the form. To go to the Manage Widget page click 'Save' button. There user can edit, or delete existing widgets.
30
1e0a740c 31### Embed Code
3db58255
J
32
33To use the widget in other web sites, user has to create embed code. This can be done in 'New Embed Code' (civicrm/wci/embed-code/add) form. Select a widget, give a title and save and preview, it will show the preview of the widget and embed code that can be used in other web sites. Click 'Save' to save and go to 'Manage Embed Code' page where user can edit or delete existing embed codes.
34
1e0a740c 35### Settings
3db58255 36
1e0a740c 37Mailing list subscription feature also exposed though widget. To use that first create a Profile and set the visibility as public. Then in that profile add field of type 'contact' as 'email'. Add one more field 'contact' as 'group'. Use 'Public Pages' for 'Visibility'. Note the profile id. Use this id in the Widget Settings(civicrm/wci/settings) for Default profile.
3db58255 38
1e0a740c 39For getting better performance WCI widget uses a cache system. A timeout value can be provided 'Widget cache timeout' field for saving the widget in database for that specified time. Static widgets (widgets with out progress bar) will be caches permanently unless there is any change in the widget.
3db58255 40
d2d4567c
J
41### Permission
42
43There are 2 permissions associated with CiviWCI.
115158e7
J
44- 'Administer CiviWCI' : All WCI menu items are available for user of this permission. Please enable it in your CMS permission page.
45- 'Access CiviWCI Widget' : To see the widget the user should have this permission. Enable this to anonymous users too, if they want to view the widget.
d2d4567c 46
1e0a740c 47CiviCRM-WCI development is sponsored by [Zyxware Tehnologies](http://www.zyxware.com).