Jump to content

Community

Adriano Faria

+Clients
  • Content Count

    25,657
  • Joined

  • Days Won

    334

Reputation Activity

  1. Like
    Adriano Faria got a reaction from wtanton in Form Helper (*)   
    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...

Important Information

We use technologies, such as cookies, to customise content and advertising, to provide social media features and to analyse traffic to the site. We also share information about your use of our site with our trusted social media, advertising and analytics partners. See more about cookies and our Privacy Policy