1
0
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:
Cameron
2012-12-10 18:40:44 -08:00
parent 6e9ccdb59e
commit c65b549af7
3 changed files with 153 additions and 7 deletions

View File

@@ -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}";