In-Portal Issue Tracker

Welcome to the In-Portal Open Source CMS Issue Tracker! This is a central management / tracking tool for all types of tasks / issues / bugs for the In-Portal Project. Before reporting any issues, please make sure to read the Guide into Issue Tracker and How to Properly Test and Report Bugs!

View Revisions: Issue #271 All Revisions ] Back to Issue ]
Summary 0000271: Redesign "Data Validation" Engine
Revision 2011-08-13 07:49:34 by alex
Additional Information Form Usage:
===========
You can define as many forms as you need in 'Forms' unit config option, e.g.

'Forms' => Array (
    'front_registration' => Array (
        'Fields' => Array (
            'FirstName' => Array ('required' => 1, 'default' => ''),
        )
    ),
),

In this example new form called 'front_registration' is created. Database field called 'FirstName' is made required on this form. If form called 'default' is also defined, then it is always applied first.


You can override following unit config options from form declaration:
- ItemSQLs
- ListSQLs
- Fields
- CustomFields
- VirtualFields
- CalculatedFields
- AggregatedCalculatedFields


1. to set form name in template use this tag <inp2:prefix.special_FormName name="front_registration"/> before any other tag of this prefix.special.

2. to pass form-name to next template after form submit place this hidden field on a form:
<input type="hidden" name="forms[prefix.special]" value="<inp2:prefix.special_FormName/>"/>

3. to use custom validator class do this:
- add 'ValidatorClass' => 'CustomValidator' to unit config
- register class in factory
Revision 2011-07-28 04:02:49 by alex
Additional Information Usage:
1. see discussion
2. to use custom validator class do this:
- add 'ValidatorClass' => 'CustomValidator' to unit config
- register class in factory
3. to set form name: <inp2:prefix.special_FormName name="front_registration"/>
4. to pass form-name to next template place this hidden field on form:

<input type="hidden" name="forms[prefix.special]" value="<inp2:prefix.special_FormName/>"/>
Revision 2011-07-27 05:52:48 by alex
Additional Information



Web Development by Intechnic
In-Portal Open Source CMS
In-Portal Open Source CMS
Copyright © 2000 - 2009 MantisBT Group

Powered by Mantis Bugtracker