1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 17:14:42 +02:00

FAQs now supports submitted questions from anonymous users and improved tag search/urls.

This commit is contained in:
Cameron
2015-03-31 06:26:06 -07:00
parent cae329a1f9
commit 24f2b22e6a
7 changed files with 124 additions and 41 deletions

View File

@@ -31,13 +31,21 @@ class faqs_url // plugin-folder + '_url'
'redirect' => '{e_PLUGIN}faqs/faqs.php', // file-path of what to load when the regex returns true.
);
$config['tag'] = array(
'regex' => '^faqs/tag/(.*)$',
'sef' => 'faqs/tag/{tag}', // {faq_info_sef} is substituted with database value when parsed by e107::url();
'redirect' => '{e_PLUGIN}faqs/faqs.php?tag=$1'
);
$config['category'] = array(
'regex' => '^faqs/(.*)$',
'sef' => 'faqs/{faq_info_sef}', // {faq_info_sef} is substituted with database value when parsed by e107::url();
'redirect' => '{e_PLUGIN}faqs/faqs.php?cat=$1'
);
return $config;
}