mirror of
https://github.com/e107inc/e107.git
synced 2025-08-24 15:13:04 +02:00
Public Uploads page enabled and admin-ui template added.
This commit is contained in:
@@ -149,12 +149,12 @@ class faq_main_ui extends e_admin_ui
|
||||
protected $pluginTitle = 'FAQs';
|
||||
protected $pluginName = 'faqs';
|
||||
protected $table = "faqs";
|
||||
|
||||
protected $tableJoin = array(
|
||||
'u.user' => array('leftField' => 'faq_author', 'rightField' => 'user_id', 'fields' => 'user_id,user_loginname,user_name')
|
||||
);
|
||||
// without any Order or Limit.
|
||||
//protected $listQry = "SELECT * FROM #faqs";
|
||||
|
||||
//FIXME JOIN should occur automatically. We have all the data necessary to build the query.
|
||||
// ie. faq_author is a 'user' field.
|
||||
|
||||
protected $listQry = "SELECT f.*, u.* FROM #faqs AS f LEFT JOIN #user AS u ON f.faq_author = u.user_id "; // Should not be necessary.
|
||||
|
||||
protected $editQry = "SELECT * FROM #faqs WHERE faq_id = {ID}";
|
||||
|
||||
|
Reference in New Issue
Block a user