wiki:关闭sitemap
差别
这里会显示出您选择的修订版和当前版本之间的差别。
后一修订版 | 前一修订版 | ||
wiki:关闭sitemap [2020/05/17 17:09] – 创建 zhangguo | wiki:关闭sitemap [2023/03/17 10:12] (当前版本) – 外部编辑 127.0.0.1 | ||
---|---|---|---|
行 1: | 行 1: | ||
- | 关闭sitemap | + | ====== |
+ | |||
+ | ===== - 通过disable action实现 ===== | ||
在local.php文件中输入以下内容,即可关闭sitemap网站地图功能 | 在local.php文件中输入以下内容,即可关闭sitemap网站地图功能 | ||
$conf[' | $conf[' | ||
+ | |||
+ | 注:这个是全局性的行为,即永久关闭sitemap功能,不会因为登录用户的不同而呈现不同的行为。 | ||
+ | |||
+ | |||
+ | |||
+ | ===== - 修改源码实现(推荐方式) ===== | ||
+ | |||
+ | 修改文件 inc / Menu / SiteMenu.php,实现仅管理员可以使用' | ||
+ | |||
+ | <code php> | ||
+ | protected $types = array( | ||
+ | //' | ||
+ | //' | ||
+ | //' | ||
+ | ); | ||
+ | |||
+ | // add this function | ||
+ | // remove the "&& | ||
+ | public function __construct(){ | ||
+ | global $INPUT; | ||
+ | global $INFO; | ||
+ | if($INPUT-> | ||
+ | $this-> | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | |||
+ | ----- | ||
+ | 功能说明: | ||
+ | ^ 标识 | ||
+ | | index | sitemap | ||
+ | | recent | ||
+ | | media | 媒体管理器 | ||
+ | |||
+ | |||
+ | -------------------------------- | ||
+ | |||
+ | |||
+ | ==== - 我自己的修改代码 ==== | ||
+ | 修改文件 inc / Menu / SiteMenu.php,实现仅vip组的用户可以使用' | ||
+ | |||
+ | <code php> | ||
+ | // remove the "&& | ||
+ | public function __construct(){ | ||
+ | global $INPUT; | ||
+ | global $INFO; | ||
+ | | ||
+ | # | ||
+ | # | ||
+ | | ||
+ | # | ||
+ | # | ||
+ | | ||
+ | # | ||
+ | if($INPUT-> | ||
+ | $this-> | ||
+ | } | ||
+ | } | ||
+ | |||
+ | </ | ||
+ | ====== Action Modes aka. do Modes ====== | ||
+ | |||
+ | List of possible action modes (may be incomplete yet) with their descriptions. These actions are usually caused by supplying an according ''? | ||
+ | |||
+ | The action modes are handled in the [[Action Router]]. | ||
+ | |||
+ | The description at this page should reflect the state of the last released version of DokuWiki. Changes between versions (very rare) can be inspected by comparing the code of releases at https:// | ||
+ | |||
+ | ===== Page actions ===== | ||
+ | |||
+ | ==== editing process ==== | ||
+ | |||
+ | * **show**: The default action, whenever no special mode is defined this one will be used. It just causes to render the current page. | ||
+ | * **edit**: Loads the current page into the editor instead of rendering it | ||
+ | * **preview**: | ||
+ | * **save**: Used to save the current page - after saving a redirect using the show mode is sent. You should never see this mode in your template | ||
+ | * **denied**: Internal mode. Used to load the access denied message | ||
+ | * **locked**: Internal mode. Used to show the page locked message | ||
+ | * **cancel**: Cancel conflicting edit, replaced by ' | ||
+ | * **recover**: | ||
+ | * **draft**: Shows the draft dialog | ||
+ | * **draftdel**: | ||
+ | * **conflict**: | ||
+ | |||
+ | ==== other functions ==== | ||
+ | |||
+ | * **backlink**: | ||
+ | * **revisions**: | ||
+ | * **diff**: Generates a diff view for easy comparison between 2 revisions | ||
+ | * **subscribe**: | ||
+ | * **unsubscribe**: | ||
+ | * **media**: launches the media manager | ||
+ | |||
+ | ===== Site actions ===== | ||
+ | |||
+ | ==== main functions ==== | ||
+ | |||
+ | * **index**: Shows a generated index of the pages and namespaces | ||
+ | * **recent**: Displays recently changed pages and allows diffs | ||
+ | * **search**: Search functionality | ||
+ | |||
+ | ==== different views ==== | ||
+ | |||
+ | * **export_raw**: | ||
+ | * **export_xhtml**: | ||
+ | * **export_xhtmlbody**: | ||
+ | * **check**: Dumps some information about the users permissions and the DokuWiki setup. | ||
+ | |||
+ | ==== acl related ==== | ||
+ | |||
+ | * **register**: | ||
+ | * **login**: Login user | ||
+ | * **logout**: Logout user | ||
+ | * **profile**: | ||
+ | * **resendpwd**: | ||
+ | * **admin**: displays the admin menu with all installed [[Admin Plugins]], available to a logged in superuser or manager. | ||
wiki/关闭sitemap.1589706592.txt.gz · 最后更改: 2023/03/17 10:12 (外部编辑)