desti Posted February 4, 2020 Share Posted February 4, 2020 Quote When developing an application, your FURL configuration is created in a file named furl.json in the /data directory of your app. But if I am developing a plugin, can I add furl somehow? Link to comment Share on other sites More sharing options...
Adriano Faria Posted February 4, 2020 Share Posted February 4, 2020 Yes, with a hook on \IPS\Http\Url\Friendly::furlDefinition(): Example: public static function furlDefinition( $revert=FALSE ) { $furls = parent::furlDefinition($revert); if( !isset( $furls['settings_recenttopics'] ) ) { $furls['settings_recenttopics'] = array( 'friendly' => 'settings/recenttopics', 'real' => 'app=core&module=system&controller=settings&area=recenttopics', 'regex' => array('settings\/recenttopics'), 'params' => array(), ); } return $furls; } Link to comment Share on other sites More sharing options...
desti Posted February 4, 2020 Author Share Posted February 4, 2020 Adriano, thanks! But it 's a "software way" and nothing like furl.json is here? Link to comment Share on other sites More sharing options...
Adriano Faria Posted February 4, 2020 Share Posted February 4, 2020 1 minute ago, desti said: But it 's a "software way" and nothing like furl.json is here? furl.json are for apps only. Link to comment Share on other sites More sharing options...
desti Posted February 4, 2020 Author Share Posted February 4, 2020 Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.