Module Dev: Add method / layout

I understand how the main and view page layouts can be controlled.

I do not see how I tie the create / add method to a physical layout file.

I can add fields to the create / add form with out issue.  (The system generated form)

How do I make a custom create / add form where I can control the layout and add other information to the form?

Thanks,

Cory

Quote · 15 Feb 2013

anyone?

Quote · 16 Feb 2013

Hi, in case if you like to make custom forms - you always can use raw php and html.

as example, you can put HTML structure of your form into 'templates/base' folder of your module, and then you can use this template in PHP

Quote · 16 Feb 2013

I am with you on concept.  I feel like I am missing a step though.

 

So I see how I can change the main / home and view forms.  

I do not see how I make the create use a template though.  It looks like it is using a code method to drop the fields etc in a standard dolphin block.  How do I make it use the new template I create?

 

Thank you,

Cory

Quote · 16 Feb 2013

It is easy, there are only 2 steps:

1) create your custom html template in 'templatesbase' folder of your module

2) php code:

$aKeys = array (
    'key1' => 'key1 value',
    'key2' => 'key2 value'
);
$sValue = $this->_oTemplate->parseHtmlByName('your_template.html', $aKeys);

Quote · 17 Feb 2013

Thank you,

testing this today.

 

Cory

Quote · 18 Feb 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.