Jump to content

update form \IPS\cms\modules\front\database\_record::edit


BomAle

Recommended Posts

Posted

The code here could be improved call buildEditForm instead of:

$form = new \IPS\Helpers\Form( 'form', isset( \IPS\Member::loggedIn()->language()->words[ $recordClass::$formLangPrefix . '_save' ] ) ? $recordClass::$formLangPrefix . '_save' : 'save' );
$form->class = 'ipsForm_vertical';

foreach( $formElements as $name => $field )
{
	$form->add( $field );
}

matt3.thumb.png.06de1ea13eb2466a5c2a8a11659f3a81.png

this permise developers to add for example new tab

tab.png.b3b2aff5aaea9bc292b99051e4e5f9f7.png

@Matt some details into mp (remove $collection)

  • 4 weeks later...
  • 2 months later...

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...