Community Answers
-
szalik.dev's post in Node::load() but with custom column name instead of id was marked as the answer
Update: yes it's possible by doing this:
#1: Add this to your Node class:
/** * @brief [ActiveRecord] Database ID Fields * @note If using this, declare a static $multitonMap = array(); in the child class to prevent duplicate loading queries */ protected static $databaseIdFields = array('column_name'); #2: then load node row by custom column like so
\IPS\yourapp\class\class::load($id, 'column_name');
-
szalik.dev's post in Custom Class for Captcha was marked as the answer
Problem has been already solved, solution was to change loaded class with hook inside those two functions
public static function supportsModal() & public function __construct()
-
szalik.dev's post in Working with custom Forum settings was marked as the answer
Problem solved, all i had to do was unset that value inside formatFormValues function.
/** * [Node] Format form values from add/edit form for save * * @param array $values Values from the form * @return array */ public function formatFormValues( $values ) { if(isset($values['fa_icon'])) { unset($values['fa_icon']); } return parent::formatFormValues( $values ); }
-
szalik.dev's post in Working with forums settings was marked as the answer
disregard, i've typed
IPS\forums\modules\admin\forums instead of
IPS\forums\modules\admin\forums\forums
it works now.