add example config and PageActions

This commit is contained in:
xfnw 2022-05-30 19:23:45 -04:00
parent c6f0808313
commit 79257b3dc2
2 changed files with 49 additions and 0 deletions

21
PageActions.example.txt Normal file
View file

@ -0,0 +1,21 @@
(:Summary:Contains the '[[PmWiki/AvailableActions|action]]' links (like Browse, Edit, History, etc.), placed at the top of the page, see [[PmWiki/site page actions]]:)
(:comment This page can be somewhat complex to figure out the first time you see it. Its contents are documented at PmWiki.SitePageActions if you need help. :)
(:if name *-Talk:)
* [[{*$BaseName}|Page]]
(:else:)
* [[{*$BaseName}-Talk|Talk]]
(:ifend:)
* %item rel=nofollow class=browse accesskey='$[ak_view]'% [[{*$FullName} | $[View] ]]
* %item rel=nofollow class=edit accesskey='$[ak_edit]'% [[{*$FullName}?action=edit | $[Edit] ]]
* %item rel=nofollow class=diff accesskey='$[ak_history]'% [[{*$FullName}?action=diff | $[History] ]]
(:if auth upload:)
* %item rel=nofollow class=upload accesskey='$[ak_attach]'% [[{*$FullName}?action=upload | $[Attach] ]]
(:ifend:)
* %item rel=nofollow class=print accesskey='$[ak_print]'% [[{*$FullName}?action=print | $[Print] ]]
(:if group Site,SiteAdmin,Cookbook,Profiles,PmWiki*:) (:comment delete if and ifend to enable backlinks:)
* %item rel=nofollow class=backlinks accesskey='$[ak_backlinks]'% [[{*$Name}?action=search&q=link={*$FullName} | $[Backlinks] ]]
(:ifend:)
(:if enabled AuthPw:)
* %item rel=nofollow class=logout accesskey="$[ak_logout]"%'' [-[[{*$FullName}?action=logout | $[Logout] ]]-]''
(:ifend:)

28
config.example.php Normal file
View file

@ -0,0 +1,28 @@
<?php
$WikiTitle = "example";
$DefaultPasswords['admin'] = pmcrypt('hackme');
$EnableUpload = 1;
$DefaultPasswords['upload'] = pmcrypt('hackme');
$ScriptUrl = 'https://example.com/wiki/';
$Skin = "pmwiki-plain-responsive";
$DefaultGroup = 'Example';
include_once("scripts/xlpage-utf-8.php");
$EnableBlocklist = 10;
if ($action == 'rss') include_once("scripts/feeds.php");
if ($action == 'atom') include_once("scripts/feeds.php");
$BaseNamePatterns['/(-Talk|-Users)$/i'] = '';
$PmTOC['Enable'] = 1;
include_once("$FarmD/cookbook/footnote2.php");
include_once("$FarmD/scripts/refcount.php");