Fabrik User Manual 0


Create a link to your form



Yüklə 1,97 Mb.
Pdf görüntüsü
səhifə8/24
tarix17.09.2018
ölçüsü1,97 Mb.
#69275
1   ...   4   5   6   7   8   9   10   11   ...   24

Create a link to your form
To create a Joomla menu link to your form:
• Select "Menu->main menu" from the top administration menu.
• Then press the new button
• Next select "Fabrik->form"
• Give your link a name and on the right hand side of the form select the table you
want to link to.
You have some additional options you can edit if so desired:
• Row id - If the form is set to record in the database then you can specify the
record id that will be displayed in the form. Leave blank to open an new form.
Enter "-1" to use the user's id.
• key name - Leave blank unless you know what you are doing! Column name to
be used with the Row id value. Defaults to the tables primary key. If row id is set
to -1 then this field should contain the name of the field that stores the users
ids.
• Show random records - If set to yes then a random record from the table will
be displayed in the form.
• Template - overrides the table's template when viewing the table from this
menu link
Creating a search form
TODO!
Groups
Groups are the equivalent of HTML field-sets. They are used to contain your form's
elements. Each element you create is assigned to a group. Each of your form must have
at least one group.
Each group can be selected with the check box to the left of its name. Once selected it
can be altered by clicking on the buttons in the top right hand corner:
• Published - sets the state of the group to published
• Unpublish - sets the group's state to unpublished
• Copy - copy's the group. This will not copy the group's elements
• Delete - delete the group
27


• Edit - edit the group, note that you can also edit the group by clicking on its
name
In the top right menu there is also the "New" button which allows you to create a new
group.
Groups can be filter by selecting the an option from the 'form' drop down or searching in
the 'group' field both of which appear at the top of the group list.
For each group in the list you have a couple of links or fields shown:
• Published - toggles the form's published state
• Form - tells you which form the group has been assigned to
• Number of elements - tells you the total number of elements in the group,
regardless of whether they are published.
Editing or adding a group
Details
• Name - the internal reference to the group - this is not shown on the form
• Title - the group's title - this appears on the form at the top of the group
• CSS - a free form text area into which you can enter some css to style the group
• Columns - the number of columns that the group will use to display its elements
28


• Repeat group button - If yes the add/remove buttons are assigned to the top
right of the group. These buttons allow you to duplicate the group and its
elements.
◦ If the group has been created from a table database join. Then each
repeated group will record its data in as a new entry in the joined table.
(or update existing records if you are editing the form)
◦ If the group has not been created from a table database join (i.e. the
normal way in which groups are created), then each elements repeated
data is stored in a single row's cell in the format:
data1//..*..//data2
The //..*..// is Fabrik's internal representation of the data being split by
a group
• Show group in form - Determines if the group is visible when the form is
loaded.
• Javascript to run when repeat group added - Optionally you can specify
some Javascript to run when the group is duplicated
• Javascript to run when repeat group removed - Optionally you can specify
some Javascript to run when a duplicated group is removed
Pagination
Groups can also be used to split up your form into multi-page forms. This is highly useful
when you have large forms, in breaking them down into more manageable sections.
• Page break - If yes selected then this group will become the start of a new
page. Don't select yes for the first group in your form.
• Save to table - If yes selected then when you move from this group's page to a
different page the partially completed form will be saved to the database.
Note that you can turn on your form's "Use cookies on multipage forms" option to set a
cookie each time a user starts a form. This cookie will reload a partially completed form
if the user comes back to edit it at a later stage.
Elements
Elements are the 'widgets' that allow your users to enter data into your forms. They also
define how that data is shown in the table view. Different element types are installable
as plug-ins from the plug-in manager. We pre-install a series of the most commonly
used elements when Fabrik is installed on your Joomla site.
29


Each element can be selected with the check box to the left of its name. Once selected it
can be altered by clicking on the buttons in the top right hand corner:
• Add to table view - Makes the element appear as a column in the table view.
• Remove from table view - Hides the element from the table view.
• Published - sets the state of the element to published (note that other element
publishing options make effect how the element is displayed)
• Unpublish - sets the element's state to unpublished
• Copy - copy's the element
• Delete - deletes the element
• Edit - edit the element, note that you can also edit the element by clicking on
its name
In the top right menu there is also the "New" button which allows you to create a new
element.
For each form in the list you have a couple of links:
• Published - toggles the form's published state
• Show in table - toggles if the element is shown as a column in the table view
• Order - The standard Joomla order widget which defines which order the
element's appear within their groups (note group ordering is handled by editing
the form, selecting the groups tab and reordering the group's in the list)
The element list can quickly become quiet long. Its often advisable to filter it to show
only the elements you are working on. To this effect you can filter using the fields above
the element list
The "Full element name" field shows the text that you should use to access the element
when using placeholders - i.e. {tablename___elementname}
Editing/Adding an Element
30


Yüklə 1,97 Mb.

Dostları ilə paylaş:
1   ...   4   5   6   7   8   9   10   11   ...   24




Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©genderi.org 2024
rəhbərliyinə müraciət

    Ana səhifə