查看: 4901|回复: 0


发表于 2010-12-31 15:14:30 | 显示全部楼层 |阅读模式
Dynamic Page List (DPL)是MediaWiki的一个插件,它可以按照一定的规则显示特定目录的文章。
  • 把DynamicPageList目录上传到extensions目录中
  • LocalSettings.php 中增加一行:
  • There is a special feature in DPL which needs another extension: If you use page inclusion and want to use images as link symbols for the original source you must install theLinkedImage extension. For details see there.
  • In some special cases (when DPL queries refer to uncategorized pages) DPL needs a special database view in the MySQL database. You should run the database statement which creates that view if you want to use DPL statements which refer to uncategorized pages. Many installations work well without that and you can postpone this step until you really need it. If DPL cannot execute a DPL statement without that view it will issue a corresponding warning.
    You must have admin rights in your database to execute the "create view" statement; if you defined a database table prefix at installation time of your wiki, you must use that prefix in the statement, otherwise delete "prefix_" before you issue the statement:
CREATE VIEW prefix_dpl_clview AS
SELECT IFNULL(cl_from, page_id) AS cl_from, IFNULL(cl_to, '') AS cl_to, cl_sortkey
  FROM `prefix_page` LEFT OUTER JOIN `prefix_categorylinks` ON page_id=cl_from
Note that you may get a misleading error message from the SQL interpreter (1084 syntax error) if you do not have sufficient privileges to create that view.
If you are using this extension with [url=]IIS[/url] on a Windows box, make sure to give Read & Execute rights to the user IUSR_MACHINENAME (Anonymous Internet Guest Account) for the extensions directory and the DynamicPageList2.php file itself.

使用道具 举报

您需要登录后才可以回帖 登录 | 注册




GMT+8, 2022-8-13 05:55 , Processed in 0.111744 second(s), 15 queries .

Powered by Discuz! X3.4

Copyright © 2001-2022, Tencent Cloud.

快速回复 返回顶部 返回列表