Top Banner
User Manual Fabrik 2.0 August 2010 Rob Clayburn
144
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Fabrik User Manual 2 0

User Manual

Fabrik 2.0August 2010

Rob Clayburn

Page 2: Fabrik User Manual 2 0

Table of Contents

What's new in Fabrik 2.0?.............................................................. 7Installation .................................................................................... 7Upgrading ...................................................................................... 8Additional Help .............................................................................. 8What is Fabrik? .............................................................................. 8

Forms .......................................................................................... 12

Groups ......................................................................................... 30

Elements...................................................................................... 33

Page 3: Fabrik User Manual 2 0
Page 4: Fabrik User Manual 2 0

Tables .......................................................................................... 87

Table Filters ............................................................................... 112

Connections ............................................................................... 116

Plug-ins ..................................................................................... 118Visualizations ............................................................................ 119

Page 5: Fabrik User Manual 2 0

Packages.................................................................................... 132Scheduled Tasks ........................................................................ 133

Additional Joomla Plug-ins & Modules ....................................... 136

Troublshooting........................................................................... 141Compatibility with 3rd Party Libraries........................................ 142

Appendix.................................................................................... 143

License & Copyright

Suggestions Modifications and Corrections

Page 6: Fabrik User Manual 2 0

Prerequisites

Page 7: Fabrik User Manual 2 0

What's new in Fabrik 2.0?

The main menu has had some options added and some removed:

+ Plug-ins

+ Visualizations

- Validations- Validation rules

Form creation:

.

Elements:

Google map

CATCHA

RatingColour picker

Yes/no

Installation

Page 8: Fabrik User Manual 2 0

Please do not navigate away from this page whilst this is happening.

Upgrading

Additional Help

What is Fabrik?

Page 9: Fabrik User Manual 2 0

FormsTablesVisualizations

Scheduled tasks

Key Concepts

Placeholders

nameusernameemailusertype

blockgid

registerDatelastvisitDateguest

Page 10: Fabrik User Manual 2 0

URL structure

Page 11: Fabrik User Manual 2 0

Design strategy

objectsrelationships

Objects

Relationships

created by

Page 13: Fabrik User Manual 2 0

Unpublish

Copy

Delete

Edit -

Published

Update database

View data

Page 14: Fabrik User Manual 2 0

Editing or Adding a Form

Basic settings

Page 15: Fabrik User Manual 2 0
Page 16: Fabrik User Manual 2 0

Details

Label

Introduction -

Error message -

Buttons

Reset button

Reset button label

Copy button -

Copy button label

Go Back button

Go back button label

Apply button

Apply button label -

Submit label

Form Processing

Record in database -

Table name -

Page 17: Fabrik User Manual 2 0

Ajax validation -

Success message

Spoof Check

Use cookies on multipage forms -

Note

Note

Page 18: Fabrik User Manual 2 0

Form publishing

Published

Author

Author alias

Created Date -

Start Publishing -

Finish Publishing -

Page 19: Fabrik User Manual 2 0

Groups

Create a group with the same name as this form -

Or select and add the following available groups

Note:a group can only be assigned to one form

Add -

Current groups

Up -

Down-

Page 20: Fabrik User Manual 2 0

Remove-

Randomise groups

Templates

Detailed view template -

Form template

PDF template

Page 21: Fabrik User Manual 2 0

Options

PDF icon

Print icon

Email icon -

Show title

Show title in detailed view

Show related data links

Process Joomla plug-ins

CCK

Page 22: Fabrik User Manual 2 0

Category

Submission plug-ins

Do

In -

On -

Delete -

Page 23: Fabrik User Manual 2 0

Email Submission Plug-in

Email to -

Email to (eval)

From -

Email subject line -

Page 24: Fabrik User Manual 2 0

PHP/HTML Template - -

Article template -

Attachment type

Attachments (eval)

Condition -

Page 25: Fabrik User Manual 2 0

Receipt Submission Plug-in

Send confirmation receipt to

Receipt title -

Message to send ...

Page 26: Fabrik User Manual 2 0

Redirect Submission Plug-in

Jump page -

Append jump url with data -

Thanks message when form submitted -

Use as search data -

Condition -

Page 27: Fabrik User Manual 2 0

Run PHP

Process scripts -

PHP File -

PHP code to execute on from submission

Page 28: Fabrik User Manual 2 0

Run JS

var dostuff = new Class({

initialize: function(form){

this.form = form; //the form js object}

});

//class name needs to be the same as the file namevar example = new Class({

initialize: function(form){

this.form = form; //the form js object},//run when submit button is pressedonSubmit: function(){

alert('onSubmit');//return false if you want the form to stop submission

},//run once the form has sucessfully submitted data via ajax

Page 29: Fabrik User Manual 2 0

onAjaxSubmitComplete: function(){alert('complete');

},onDoElementFX: function(){

alert('onDoElementFX');},//run at the start of saving a group to the db// when you move from one group to another on//multipage formssaveGroupsToDb: function(){

alert('saveGroupsToDb');},//run once the ajax call has completed when moving from one group to

another//on multipage formsonCompleteSaveGroupsToDb: function(){

alert('onCompleteSaveGroupsToDb');},//run each time you move from one group to another on//multipage formsonChangePage: function(){

alert('onChangePage');},//run if the form has ajax validaton//run at start of element validaton that occurs on that elements onblur

eventonStartElementValidation: function(){

alert('onStartElementValidation');},//run when above element validation's ajax call is completedonCompleteElementValidation: function(){

alert('onCompleteElementValidation');},//called when a repeatable group is deletedonDeleteGroup: function(){

alert('onDeleteGroup');},//called when a repeat group is duplicatedonDuplicateGroup: function(){

alert('onDuplicateGroup');},//called when the form gets updatedonUpdate: function(){

alert('onUpdate');},//called when the form is resetonReset: function(){}

});

Page 30: Fabrik User Manual 2 0

Create a link to your form

Row id

key name -

Show random records -

Template

Groups

Page 31: Fabrik User Manual 2 0

Published

Unpublish

Copy

Delete

Edit -

Published

Form

Number of elements -

Page 32: Fabrik User Manual 2 0

Editing or adding a group

Details

Name

Title

CSS -

Columns

Repeat group button -

Page 33: Fabrik User Manual 2 0

Show group in form

Javascript to run when repeat group added -

Javascript to run when repeat group removed -

Randomise elements -

Pagination

Page break -

Elements

Page 34: Fabrik User Manual 2 0

Add to table view -

Remove from table view -

Published

Unpublish

Copy

Delete

Edit -

Published

Show in table

Order

Page 35: Fabrik User Manual 2 0

Editing/Adding an Element

Details

Name -

Label -

Group -

Order -

Element type -

Options

Page 36: Fabrik User Manual 2 0

Publishing

Published -

Add to page title -

Access -

Read only access -

Encrypt data -

RSS

Page 37: Fabrik User Manual 2 0

Show in RSS feed -

Include label -

Use as pseudo key -

Tips

Hover text -

Hover text title -

Tips over element -

Show tip in detailed view

Comment -

Page 38: Fabrik User Manual 2 0

Table settings tab

Show in table -

Link to details -

Allow ordering -

Heading label -

Icon folder -

custom link -

Use as row class

Page 39: Fabrik User Manual 2 0

Filters

Filter type -

None -

Field -

Dropdown -

Autocomplete

Range -

Exact match -

Filter access -

Return only full word searches on field searches -

Page 40: Fabrik User Manual 2 0

Include in advanced search -

Include in search all

Required -

Filter data

Default -

Show table data -

Show all

Page 41: Fabrik User Manual 2 0

Table Column CSS

Heading class -

Heading CSS -

Cell class -

Cell CSS -

Page 42: Fabrik User Manual 2 0

Calculations

Sum the column total

Sum access -

Split on

Name Surname Age

Average the column total

Average access -

Split on -

Column median -

Median access -

Split on -

Count records -

Count value -

Count access -

Split on -

Page 43: Fabrik User Manual 2 0

Validations

Is alpha-numeric

Error message -

Condition -

Page 44: Fabrik User Manual 2 0

Is email

Error message -

Condition -

Allow empty -

Page 45: Fabrik User Manual 2 0

Is not

Error message -

Condition -

Is not

Page 46: Fabrik User Manual 2 0

Is Numeric

Error message -

Condition -

Allow empty -

Page 47: Fabrik User Manual 2 0

Is Unique

Error message -

Condition -

Case insensitive search

Not empty

Page 48: Fabrik User Manual 2 0

Error message -

Condition -

Page 49: Fabrik User Manual 2 0

PHP

Error message -

Condition -

PHP -

Match or Replace -

Page 50: Fabrik User Manual 2 0

Regular Expression

Error message -

Condition -

Regular expression -

Match or Replace -

Replace string -

Page 51: Fabrik User Manual 2 0

JavaScript

Add

Code -

Do -

That -

Is -

hide group1 when this == 1

show group1 when this != 1

Page 52: Fabrik User Manual 2 0

Getting Element's values with JavaScript

Setting Element Values With JavaScript

Element plug-ins

Button

Page 53: Fabrik User Manual 2 0

Checkbox

Default Value -

Default Label -

Element before label -

Options per row -

Sub Elements

Add

Value -

Label -

Page 54: Fabrik User Manual 2 0

Default -

Delete -

Note

Add Options

Allow user to add drop down option -

Only add label -

Save new additions -

Advanced

Separator

Page 55: Fabrik User Manual 2 0

Database join

Page 56: Fabrik User Manual 2 0

Hidden -

Render join as -

Connection -

Table -

Key -

Label -

Or Concat label -

lastname, ' ', firstname

Joins where statement (sql) -

where 'published' = 1

Apply where beneath -

Appy where when

Value of please select option -

Label of please select option

Eval

Default

Page 57: Fabrik User Manual 2 0

Add option in front end

Add option in front end -

Page 58: Fabrik User Manual 2 0

Popup window Y offset -

Popup window width

Link to joined record -

Front end select

Popup form -

Advanced

Eval options -

Description field -

Apply where to table view -

Page 59: Fabrik User Manual 2 0

Date

Width -

Hidden -

Eval -

Default -

return 'default';

Table date format -

Form date format -

Page 60: Fabrik User Manual 2 0

Default to current date -

Always return today's date -

First Week day -

Allow typing in field -

Show time selector -

Time format -

Display text

Eval

Default -

return 'default';

Show label -

Page 61: Fabrik User Manual 2 0

Drop down

Sub Elements

Add

Value -

Label -

Default -

Delete -

Note

Page 62: Fabrik User Manual 2 0

Options

Multiple selections

Multiple selections height

Eval

Default -

return 'default';

Add Options

Allow user to add drop down option -

Only add label -

Save new additions -

Page 63: Fabrik User Manual 2 0

Field

Width - -

Hidden -

Eval -

Default -

Password

Maximum length -

Format -

Integer length -

Page 64: Fabrik User Manual 2 0

Decimal length -

Number format

Thousand Separator

Decimal Point

Format string - Applies the PHP sprintf function to the string-

Guess link type -

Disable element -

Read only -

Auto complete

Page 65: Fabrik User Manual 2 0

File upload

Page 66: Fabrik User Manual 2 0
Page 67: Fabrik User Manual 2 0

Maximum file size -

Allowed file types -

.jpg, .jpeg, .gif

Upload directory -

Email uploaded file to recipients -

Obfuscate Filename

Length random filename

If existing image found?

Leave original file

Leave original file and increment new file's name

Allow subfolder selection -

Delete images? -

Display

Default image -

Link to file -

Show media in table -

Show media in form -

nothumbnail -

Page 68: Fabrik User Manual 2 0

full size

Image library -

Max width -

Max height -

Title element

Use download script

Thumbnail

Make a thumbnail of the uploaded image -

Thumbnail directory -

Thumbnail prefix -

Thumbnail width

Thumbnail height -

Crop

Crop

Cropdir -

Cropwidth -

Cropheight -

Page 69: Fabrik User Manual 2 0

Storage

Storage type -

Filesystem -Amazon s3 -

Amazon s3 access key id -

Amazon s3 secret key -

Amazon storage location -

Bucket name -

Export

CSV format

Relative pathFull pathRaw file streamBase 64 encoded file stream

JSON format

ID

Page 70: Fabrik User Manual 2 0

Image

Default image -

Root folder -

Allow users to select image in front end -

Show in table -

Float image -

Link -

Page 71: Fabrik User Manual 2 0

Link

Width -

Default label -

Default URL

Link target -

Smart link -

Bit.ly

Use bit.ly

Login name

API Key

Page 72: Fabrik User Manual 2 0

Radio button

Element before label

Options per row -

Sub Elements

Add

Value -

Label -

Default -

Delete -

Note

Page 73: Fabrik User Manual 2 0

Add Options

Allow user to add drop down option -

Only add label -

Save new additions -

Text area

Width -

Height -

Eval -

Default -

Page 74: Fabrik User Manual 2 0

Use WYSIWYG Editor -

Show max limit -

Maximum length -

Tagify

Custom tagify URL

Truncate size

Page 75: Fabrik User Manual 2 0

User

Hidden -

User Data -

Update on edit -

Update on copy

Label of 'Please select' option

Additional Element Plug-ins

Password

Form example

Page 76: Fabrik User Manual 2 0

Administration options

Maximum length

CAPTCHA

Administration options

Show when logged in?

MethodStandard

Page 77: Fabrik User Manual 2 0

Recaptcha -

WidthHeightPublic keyPrivate key

Subscriber Exclusive Element Plug-ins

Rating

Form example

Page 78: Fabrik User Manual 2 0

Administration options

Rating Mode -User rating -

Creator rating -

No rating option first -

Image file type -

Rate in form -

Google Map

Form Example

Page 79: Fabrik User Manual 2 0

Administration settings

Page 80: Fabrik User Manual 2 0

Options

Google Map Key -

Page 81: Fabrik User Manual 2 0

Map type -NormalSatelliteHybrid

Default lat -Default lon -Start zoom level -Map widthMap height3d Buttons -

Control -

NoneLarge map control

Small map control

Scale control -

Map Type control -

Overview control -

Use static map -

Static -

Full

Mouse scrolling -

Show lat/lng fields -

Geocoding

Enable geocodingNo -Yes -

Use Elements -

Address 1 ... Country -

Trigger geocode with -Button -

As you type -

Page 82: Fabrik User Manual 2 0

Table settings

Use static map -Yes

NoMap width-Map height

Cascading Drop down

Form example

Administration settings

Page 83: Fabrik User Manual 2 0

Options

Connection -

Table -ID -

Label -

Advanced

Where query -

Page 84: Fabrik User Manual 2 0

Hidden -Show please select -

Eval -Default -

Front end

Link to joined record

Calculation

Administration settings

Hidden -Width -Calculation - MUST

MUST

Format string -

Only Calc on Save -

Page 85: Fabrik User Manual 2 0

Colour Picker

Form example

Administration settings

Yesno

Form example

Page 86: Fabrik User Manual 2 0

Table example

Administration settings

Default -

Parent / Child elements

Page 87: Fabrik User Manual 2 0

Tables

Published

UnpublishCopy

Page 88: Fabrik User Manual 2 0

DeleteEdit -

New

"import"

"parameters"

Form - edit -View data -

PublishedView details -

Deleting a Table

Page 89: Fabrik User Manual 2 0

Parameters

Use WYSIWYG editor for element labels -

Alter filed types -

Remove tables on uninstallMootools version

none -

1.1 -

1.2

Page 90: Fabrik User Manual 2 0

Note:

Use mediabox instead of slimbox -

Include lightbox js

Merge JS files -

Compress merged JS file -

Spoof check on form submission

This is depreciated -you should set this setting when editing each individual form

Use work in Progress -

Page 91: Fabrik User Manual 2 0

Allow fabrikDebug

Use elements as related data -

Filter data -

Enable single ordering

Importing a CSV file to create a new table

Connection -

CSV file -

Create new table

Label -

Create primary key

import

cancel

Page 92: Fabrik User Manual 2 0

Exporting CSV files without using the dialog

Page 93: Fabrik User Manual 2 0

View details

Page 94: Fabrik User Manual 2 0

Edit table

Details

Label -

Introduction

Filters

Page 95: Fabrik User Manual 2 0

Filter trigger -On changeSubmit form -

Show Filters -

Advanced search -

Search all

Page 96: Fabrik User Manual 2 0

Advanced search all

Search all label

Require filtering

Filter data

'Show table data'

'Show all'

Navigation

Page 97: Fabrik User Manual 2 0

Rows per page -

Show add -

Show navigation -

Show All option

Show total

SEF Slug -

Layout

Template -

Admin template -

Detailed view link -

Page 98: Fabrik User Manual 2 0

Empty data message -

Detail url -

PDF Icon -

PDF Template -

Notes

Note -

Advanced

Alter existing field types -

Process Joomla plug-ins

Enable Big Selects

Enable Single OrderingSingle ordering

Page 99: Fabrik User Manual 2 0

Mutliple ordering

Work in progress

Joomfish data translation -

Title element -

Page 100: Fabrik User Manual 2 0

The Publishing tab

Published -

Author -

Author Alias -

Page 101: Fabrik User Manual 2 0

Created date -

Start Publishing -

Finish Publishing -

RSS

Create RSS feed -

Feed title -

Feed date -

RSS Limit -

RSS Maximum Limit -

CSV

CSV import -

CSV export -

Heading format -

Export step

Search

Include in search results -

Field -

Page 102: Fabrik User Manual 2 0

Description -

Access

View table -

View records -

Edit records -

Or use field -

Add records -

Delete records -

Empty records -

Data Tab

Page 103: Fabrik User Manual 2 0

Primary key

Auto increment

Page 104: Fabrik User Manual 2 0

Connection -

Create new table -

Link to table -

Page 105: Fabrik User Manual 2 0

Order by -

Oder direction -

Group by

Group by

Order by -

Template -

Order direction

Prefilter

Prefilter query

Page 106: Fabrik User Manual 2 0

Field -

Condition -

Value -

Type -

Text

Johnwhere name EQUALS 'John'

Eval

return 'John';

Query

select 'John';No quotes

Apply filter beneath -

Adding an additional prefilter

Name Age Sex

Page 107: Fabrik User Manual 2 0

where name EQUALS John (type text) age EQUALS 19 (type no quotes)

Name Age Sex

where name EQUALS John (type text) age EQUALS 19 (type no quotes)

Name Age Sex

where (name EQUALS John (type text) age EQUALS 19 (type no quotes)

Name Age Sex

Page 109: Fabrik User Manual 2 0

Teacher Student

Each row separately -Merged joined records into one row -

Teacher Student

Page 110: Fabrik User Manual 2 0

Related Data

Table -

Link to table -

Heading-

Button text

Popup -No -Yes -

Link to form

Heading-

Button text-

Popup -No -

Page 111: Fabrik User Manual 2 0

Yes -

Page 112: Fabrik User Manual 2 0

Table Filters

Filtering via the query string

&tablename___elementname[join]=OR

Page 113: Fabrik User Manual 2 0

Querystring filtering to Search Across All Fields:

fabrik_table_filter_all -search-mode-advanced

all -any -exact -none

Prefilters

Get the records stored in the last 2 months:

WHERE:GREATER THAN:TYPE:

Get the records for the upcoming week:

WHERE:GREATER THAN:TYPE:

Display only the logged in users records:

WHERE:EQUALS:TYPE:

Element Filters

Page 114: Fabrik User Manual 2 0

Clearing filters

clearfilters=1

resetfilters=1

clearorder=1 :

Page 115: Fabrik User Manual 2 0

Copy plug-in

Create a link to you table

Page 116: Fabrik User Manual 2 0

Reload calculations

Template

Connections

Default

Published

Unpublish

Copy

Delete

Edit -

Published

Page 117: Fabrik User Manual 2 0

Test connection-

Add / Edit a Connection

Description -

Host -

Database -

User -

Password -

Confirm password -

Published -

Page 118: Fabrik User Manual 2 0

Plug-ins

Page 119: Fabrik User Manual 2 0

Visualizations

Copy

Delete

Edit -

Published

Page 120: Fabrik User Manual 2 0

Add / Edit Visualization Standard Options

Details

Label -

Intro text -

Plugin

Publishing

Published

Author

Author alias

Created Date -

Start Publishing -

Finish Publishing -

Page 121: Fabrik User Manual 2 0

Plug-ins

Calendar

Template -

Show legend -

Standard event table -

Day view -

Week view -

Popup window y offset -

Page 122: Fabrik User Manual 2 0

First week day -

Connection -

Data

Table -

Start date element -

End date element -

Label element -

Color -

Month View options

Day width -

Day height -

Greyscale weekends -

Page 123: Fabrik User Manual 2 0

Anatomy of a Fabrik Calendar

Page 124: Fabrik User Manual 2 0

Filtering

Chart

Template -

Chart type -

Page 125: Fabrik User Manual 2 0

Fill line graph -

Show legend -

Width -

Height -

chds

chxl

chg

chm

Connection -

Table -

Element -

Legend label -

Colour -

Axis label -

Axis measurement unit -

Where

Page 126: Fabrik User Manual 2 0

Map

Page 127: Fabrik User Manual 2 0

Connection - -

Repeatable controls

Table -

Bubble template -

Icon -

First icon

Last icon

Page 128: Fabrik User Manual 2 0

Data icon -

Icon letter

Poly line element

Polyline width -

Polyline colour -

Google Map Key -

Map Type -

Start Zoom Level -

Center map on - first loads

Middle -

Last marker -

Users location -

3D buttons -

Map width (px)

Map height (px)

Template -

Controls

Page 129: Fabrik User Manual 2 0

Control -

Scale control -

Map type control -

Overview control -

Ajax Refresh

Ajax Refresh -

Ajax re-centre -

Ajax refresh rate

Clustering

.

Clustering -

Cluster size split -

Cluster size increment

Page 130: Fabrik User Manual 2 0

Advanced

Maximum number of markers -

Use cookies

Timeline

Page 131: Fabrik User Manual 2 0
Page 132: Fabrik User Manual 2 0

Table -

Start date -

End date

Bubble template -

Create links to visualizations

Packages

Page 133: Fabrik User Manual 2 0

Scheduled Tasks

Run -

Published

Unpublish

Copy

Delete

Edit -

Published

Page 134: Fabrik User Manual 2 0

Add/Edit a Scheduled Task

Label -

Every -

Unit -

E.g. every 1 day

Starting from -

Published -

Connection -

Table -

Plugin -

Page 135: Fabrik User Manual 2 0

Email plugin

Eval

To -

Subject -

Message

Update

Field -

Value -

Page 136: Fabrik User Manual 2 0

Additional Joomla Plug-ins & Modules

Modules

Page 137: Fabrik User Manual 2 0

Form module

Title -

Enabled -

Position -

Order -

Access Level -

Menus

Menus -

Menu Selection -

Page 138: Fabrik User Manual 2 0

Parameters

Module class suffix -

Form id -

Row id -

Table module

Parameters

Module class suffix -

Fabrik table id -

Use AJAX -

Page 139: Fabrik User Manual 2 0

Randomize records -

Number of records to show -

Template -

Plug-ins

Fabrik

Page 140: Fabrik User Manual 2 0

Forms

Tables

Visualisations

Element data

Common modifiers

Page 141: Fabrik User Manual 2 0

Search System Plug-in

Search limit -Section heading

Scheduled Task System Plug-in

Troubleshooting

Problem:

"getData: The SELECT would examine more than MAX_JOIN_SIZE rows.."

Solution:

Page 142: Fabrik User Manual 2 0

Compatibility with 3rd Party Libraries

JACL +

Joomfish

sh404SEF

Community Builder

Ensure that you have the Joomla Fabrik plug-in installed

Page 143: Fabrik User Manual 2 0

Joomsocial

Appendix

Common Joomla PHP coding tasks

Databases

Page 144: Fabrik User Manual 2 0