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

Fabrik 2.0August 2010

Rob Clayburn

Page 2: fabrik

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
Page 4: fabrik

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

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

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

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

Page 5: fabrik

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

Prerequisites

Page 7: fabrik

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

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

Upgrading

Additional Help

What is Fabrik?

Page 9: fabrik

FormsTablesVisualizations

Scheduled tasks

Key Concepts

Placeholders

nameusernameemailusertype

blockgid

registerDatelastvisitDateguest

Page 10: fabrik

URL structure

Page 11: fabrik

Design strategy

objectsrelationships

Objects

Relationships

created by

Page 13: fabrik

Unpublish

Copy

Delete

Edit -

Published

Update database

View data

Page 14: fabrik

Editing or Adding a Form

Basic settings

Page 15: fabrik
Page 16: fabrik

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

Ajax validation -

Success message

Spoof Check

Use cookies on multipage forms -

Note

Note

Page 18: fabrik

Form publishing

Published

Author

Author alias

Created Date -

Start Publishing -

Finish Publishing -

Page 19: fabrik

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

Remove-

Randomise groups

Templates

Detailed view template -

Form template

PDF template

Page 21: fabrik

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

Category

Submission plug-ins

Do

In -

On -

Delete -

Page 23: fabrik

Email Submission Plug-in

Email to -

Email to (eval)

From -

Email subject line -

Page 24: fabrik

PHP/HTML Template - -

Article template -

Attachment type

Attachments (eval)

Condition -

Page 25: fabrik

Receipt Submission Plug-in

Send confirmation receipt to

Receipt title -

Message to send ...

Page 26: fabrik

Redirect Submission Plug-in

Jump page -

Append jump url with data -

Thanks message when form submitted -

Use as search data -

Condition -

Page 27: fabrik

Run PHP

Process scripts -

PHP File -

PHP code to execute on from submission

Page 28: fabrik

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

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

Create a link to your form

Row id

key name -

Show random records -

Template

Groups

Page 31: fabrik

Published

Unpublish

Copy

Delete

Edit -

Published

Form

Number of elements -

Page 32: fabrik

Editing or adding a group

Details

Name

Title

CSS -

Columns

Repeat group button -

Page 33: fabrik

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

Add to table view -

Remove from table view -

Published

Unpublish

Copy

Delete

Edit -

Published

Show in table

Order

Page 35: fabrik

Editing/Adding an Element

Details

Name -

Label -

Group -

Order -

Element type -

Options

Page 36: fabrik

Publishing

Published -

Add to page title -

Access -

Read only access -

Encrypt data -

RSS

Page 37: fabrik

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

Table settings tab

Show in table -

Link to details -

Allow ordering -

Heading label -

Icon folder -

custom link -

Use as row class

Page 39: fabrik

Filters

Filter type -

None -

Field -

Dropdown -

Autocomplete

Range -

Exact match -

Filter access -

Return only full word searches on field searches -

Page 40: fabrik

Include in advanced search -

Include in search all

Required -

Filter data

Default -

Show table data -

Show all

Page 41: fabrik

Table Column CSS

Heading class -

Heading CSS -

Cell class -

Cell CSS -

Page 42: fabrik

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

Validations

Is alpha-numeric

Error message -

Condition -

Page 44: fabrik

Is email

Error message -

Condition -

Allow empty -

Page 45: fabrik

Is not

Error message -

Condition -

Is not

Page 46: fabrik

Is Numeric

Error message -

Condition -

Allow empty -

Page 47: fabrik

Is Unique

Error message -

Condition -

Case insensitive search

Not empty

Page 48: fabrik

Error message -

Condition -

Page 49: fabrik

PHP

Error message -

Condition -

PHP -

Match or Replace -

Page 50: fabrik

Regular Expression

Error message -

Condition -

Regular expression -

Match or Replace -

Replace string -

Page 51: fabrik

JavaScript

Add

Code -

Do -

That -

Is -

hide group1 when this == 1

show group1 when this != 1

Page 52: fabrik

Getting Element's values with JavaScript

Setting Element Values With JavaScript

Element plug-ins

Button

Page 53: fabrik

Checkbox

Default Value -

Default Label -

Element before label -

Options per row -

Sub Elements

Add

Value -

Label -

Page 54: fabrik

Default -

Delete -

Note

Add Options

Allow user to add drop down option -

Only add label -

Save new additions -

Advanced

Separator

Page 55: fabrik

Database join

Page 56: fabrik

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

Add option in front end

Add option in front end -

Page 58: fabrik

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

Date

Width -

Hidden -

Eval -

Default -

return 'default';

Table date format -

Form date format -

Page 60: fabrik

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

Drop down

Sub Elements

Add

Value -

Label -

Default -

Delete -

Note

Page 62: fabrik

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

Field

Width - -

Hidden -

Eval -

Default -

Password

Maximum length -

Format -

Integer length -

Page 64: fabrik

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

File upload

Page 66: fabrik
Page 67: fabrik

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

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

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

Image

Default image -

Root folder -

Allow users to select image in front end -

Show in table -

Float image -

Link -

Page 71: fabrik

Link

Width -

Default label -

Default URL

Link target -

Smart link -

Bit.ly

Use bit.ly

Login name

API Key

Page 72: fabrik

Radio button

Element before label

Options per row -

Sub Elements

Add

Value -

Label -

Default -

Delete -

Note

Page 73: fabrik

Add Options

Allow user to add drop down option -

Only add label -

Save new additions -

Text area

Width -

Height -

Eval -

Default -

Page 74: fabrik

Use WYSIWYG Editor -

Show max limit -

Maximum length -

Tagify

Custom tagify URL

Truncate size

Page 75: fabrik

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

Administration options

Maximum length

CAPTCHA

Administration options

Show when logged in?

MethodStandard

Page 77: fabrik

Recaptcha -

WidthHeightPublic keyPrivate key

Subscriber Exclusive Element Plug-ins

Rating

Form example

Page 78: fabrik

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

Administration settings

Page 80: fabrik

Options

Google Map Key -

Page 81: fabrik

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

Table settings

Use static map -Yes

NoMap width-Map height

Cascading Drop down

Form example

Administration settings

Page 83: fabrik

Options

Connection -

Table -ID -

Label -

Advanced

Where query -

Page 84: fabrik

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

Colour Picker

Form example

Administration settings

Yesno

Form example

Page 86: fabrik

Table example

Administration settings

Default -

Parent / Child elements

Page 87: fabrik

Tables

Published

UnpublishCopy

Page 88: fabrik

DeleteEdit -

New

"import"

"parameters"

Form - edit -View data -

PublishedView details -

Deleting a Table

Page 89: fabrik

Parameters

Use WYSIWYG editor for element labels -

Alter filed types -

Remove tables on uninstallMootools version

none -

1.1 -

1.2

Page 90: fabrik

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

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

Exporting CSV files without using the dialog

Page 93: fabrik

View details

Page 94: fabrik

Edit table

Details

Label -

Introduction

Filters

Page 95: fabrik

Filter trigger -On changeSubmit form -

Show Filters -

Advanced search -

Search all

Page 96: fabrik

Advanced search all

Search all label

Require filtering

Filter data

'Show table data'

'Show all'

Navigation

Page 97: fabrik

Rows per page -

Show add -

Show navigation -

Show All option

Show total

SEF Slug -

Layout

Template -

Admin template -

Detailed view link -

Page 98: fabrik

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

Mutliple ordering

Work in progress

Joomfish data translation -

Title element -

Page 100: fabrik

The Publishing tab

Published -

Author -

Author Alias -

Page 101: fabrik

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

Description -

Access

View table -

View records -

Edit records -

Or use field -

Add records -

Delete records -

Empty records -

Data Tab

Page 103: fabrik

Primary key

Auto increment

Page 104: fabrik

Connection -

Create new table -

Link to table -

Page 105: fabrik

Order by -

Oder direction -

Group by

Group by

Order by -

Template -

Order direction

Prefilter

Prefilter query

Page 106: fabrik

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

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

Teacher Student

Each row separately -Merged joined records into one row -

Teacher Student

Page 110: fabrik

Related Data

Table -

Link to table -

Heading-

Button text

Popup -No -Yes -

Link to form

Heading-

Button text-

Popup -No -

Page 111: fabrik

Yes -

Page 112: fabrik

Table Filters

Filtering via the query string

&tablename___elementname[join]=OR

Page 113: fabrik

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

Clearing filters

clearfilters=1

resetfilters=1

clearorder=1 :

Page 115: fabrik

Copy plug-in

Create a link to you table

Page 116: fabrik

Reload calculations

Template

Connections

Default

Published

Unpublish

Copy

Delete

Edit -

Published

Page 117: fabrik

Test connection-

Add / Edit a Connection

Description -

Host -

Database -

User -

Password -

Confirm password -

Published -

Page 118: fabrik

Plug-ins

Page 119: fabrik

Visualizations

Copy

Delete

Edit -

Published

Page 120: fabrik

Add / Edit Visualization Standard Options

Details

Label -

Intro text -

Plugin

Publishing

Published

Author

Author alias

Created Date -

Start Publishing -

Finish Publishing -

Page 121: fabrik

Plug-ins

Calendar

Template -

Show legend -

Standard event table -

Day view -

Week view -

Popup window y offset -

Page 122: fabrik

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

Anatomy of a Fabrik Calendar

Page 124: fabrik

Filtering

Chart

Template -

Chart type -

Page 125: fabrik

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

Map

Page 127: fabrik

Connection - -

Repeatable controls

Table -

Bubble template -

Icon -

First icon

Last icon

Page 128: fabrik

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

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

Advanced

Maximum number of markers -

Use cookies

Timeline

Page 131: fabrik
Page 132: fabrik

Table -

Start date -

End date

Bubble template -

Create links to visualizations

Packages

Page 133: fabrik

Scheduled Tasks

Run -

Published

Unpublish

Copy

Delete

Edit -

Published

Page 134: fabrik

Add/Edit a Scheduled Task

Label -

Every -

Unit -

E.g. every 1 day

Starting from -

Published -

Connection -

Table -

Plugin -

Page 135: fabrik

Email plugin

Eval

To -

Subject -

Message

Update

Field -

Value -

Page 136: fabrik

Additional Joomla Plug-ins & Modules

Modules

Page 137: fabrik

Form module

Title -

Enabled -

Position -

Order -

Access Level -

Menus

Menus -

Menu Selection -

Page 138: fabrik

Parameters

Module class suffix -

Form id -

Row id -

Table module

Parameters

Module class suffix -

Fabrik table id -

Use AJAX -

Page 139: fabrik

Randomize records -

Number of records to show -

Template -

Plug-ins

Fabrik

Page 140: fabrik

Forms

Tables

Visualisations

Element data

Common modifiers

Page 141: fabrik

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

Compatibility with 3rd Party Libraries

JACL +

Joomfish

sh404SEF

Community Builder

Ensure that you have the Joomla Fabrik plug-in installed

Page 143: fabrik

Joomsocial

Appendix

Common Joomla PHP coding tasks

Databases

Page 144: fabrik