Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
desti Posted February 4, 2020 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?
Adriano Faria Posted February 4, 2020 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; }
desti Posted February 4, 2020 Author Posted February 4, 2020 Adriano, thanks! But it 's a "software way" and nothing like furl.json is here?
Adriano Faria Posted February 4, 2020 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.