Jump to content

Community

Adriano Faria

+Clients
  • Content Count

    24,777
  • Joined

  • Days Won

    306

 Content Type 

Profiles

Downloads

IPS4 Documentation

IPS4 Providers

Release Notes

IPS4 Guides

IPS4 Developer Documentation

Invision Community Blog

Forums

Article Comments posted by Adriano Faria


  1. There's also the textarea type: \IPS\Helpers\Form\TextArea

        $form->add( new \IPS\Helpers\Form\TextArea( 'admin_notes', ( isset( \IPS\Data\Store::i()->admin_notes ) ) ? htmlspecialchars( \IPS\Data\Store::i()->admin_notes, \IPS\HTMLENTITIES, 'UTF-8', FALSE ) : '' ) );

     


  2. A few examples to load Nodes (forums, groups, downloads or gallery categories, themes, etc.):

    Forums:

        $form->add( new \IPS\Helpers\Form\Node( 'setting_name', \IPS\Settings::i()->
    setting_name ? \IPS\Settings::i()->setting_name : 0, FALSE, array( 'class' => 'IPS\forums\Forum', 'zeroVal' => 'use_cat_forum' ), NULL, NULL, NULL, 'setting_name' ) );

    The important here is the 'class' => 'IPS\forums\Forum'. You can use other elements:

    'class' => '\IPS\Theme'
    'class' => 'IPS\Application'
    'class' => 'IPS\gallery\Album'
    'class' => 'IPS\gallery\Category'
    'class' => 'IPS\downloads\Category'

    :)
     

×
×
  • Create New...