Skip to content
This repository was archived by the owner on Nov 28, 2018. It is now read-only.

Commit

Permalink
added in hooks field instead of redirect_to
Browse files Browse the repository at this point in the history
  • Loading branch information
silentworks committed Aug 10, 2013
1 parent a79d3d6 commit 64b1607
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 33 deletions.
32 changes: 5 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,10 @@
formz is a Form building extra that allows you to get forms up and running on your website.
You can store the information inside the database or send a email and store in database.

## How to Export

First, clone this repository somewhere on your development machine:
## Documentation

`git clone http://github.com/silentworks/formz.git ./`

Then, create the target directory where you want to create the file.

Then, navigate to the directory formz is now in, and do this:

`git archive HEAD | (cd /path/where/I/want/my/new/repo/ && tar -xvf -)`

(Windows users can just do git archive HEAD and extract the tar file to wherever
they want.)

Then you can git init or whatever in that directory, and your files will be located
there!

## Configuration

Now, you can create some System Settings:

- 'formz.core_path' - Point to /path/to/formz/core/components/formz/
- 'formz.assets_url' - /path/to/formz/assets/components/formz/

Then clear the cache. This will tell the Extra to look for the files located
in these directories, allowing you to develop outside of the MODx webroot!
You can find the documentation here: [Formz Documentation][formzdocs]

## Requirements

Expand All @@ -50,5 +27,6 @@ Go to a page that has the template variable assigned to its template, and you sh
You can now start to create Forms by going to the components menu __Formz Builder__.

## Feedback
Any comments or issues please raise that using the ticketing system, do remember this Extra is still in its early stages.
I would not recommend using on a live site if the Extra is still in alpha.
Any comments or issues please raise that using the issues system.

[formzdocs]: http://silentworks.github.io/formz/
2 changes: 1 addition & 1 deletion _build/build.transport.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
define('PKG_NAME', 'Formz');
define('PKG_ABBR', strtolower(PKG_NAME));
define('PKG_VERSION', '1.0.0');
define('PKG_RELEASE', 'rc2');
define('PKG_RELEASE', 'rc3');

/* define sources */
$root = dirname(dirname(__FILE__)).'/';
Expand Down
Binary file added _packages/formz-1.0.0-rc3.transport.zip
Binary file not shown.
9 changes: 4 additions & 5 deletions core/components/formz/model/formz/mysql/fmzforms.map.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
'email' => '',
'success_message' => '',
'identifier' => '',
'redirect_to' => '',
'hooks' => '',
'action_button' => '',
'properties' => '',
'createdon' => NULL,
Expand Down Expand Up @@ -62,11 +62,10 @@
'null' => true,
'default' => '',
),
'redirect_to' =>
'hooks' =>
array (
'dbtype' => 'int',
'precision' => '10',
'phptype' => 'integer',
'dbtype' => 'text',
'phptype' => 'string',
'null' => true
),
'action_button' =>
Expand Down

0 comments on commit 64b1607

Please sign in to comment.