PmWikiZhCn / LocalCustomizations
/local/config.php/pub/css/local.csscss
,PmWiki:
- Skins - Change the look and feel of part or all of PmWiki
- - Language internationalisation of web pages
- Custom Markup - Using the Markup() function for custom wiki syntax; migration to PHP 5.5
- InterMaps - Interwiki links definition and use
local/config.php
PmWikiWikiWiki pmwiki.phpPmWiki.Variables
1 ( TRUE)?action=diagphpinfo?action=phpinfo
$EnableDiag = 1;
- )PmWiki“1”“0” (truefalse) (Robots):
# Remove the default "rel='nofollow'" attribute for external links. $UrlLinkFmt = "<a class='urllink' href='\$LinkUrl' title='\$LinkAlt'>\$LinkText</a>"
“config.php”
include_once("cookbook/recipefile.php");
include_once("scripts/scriptfile.php");
config.php
“scripts/stdconfig.php”“local/config.php”
0
$EnableStdConfig
=0;
config.php
$ScriptUrl
$PubDirUrl
- SQLiteCompressedPageStorePerGroupSubDirectories
- include_once scripts/xlpage-utf-8.php,
- next call XLPage() which needs the definitive (rw)
$WikiDir
already set in order to find the wiki page containing the translations, - include authuser.php ()PmWiki
- config.php, ResolvePageName(), CondAuth(), PageTextVar(), PageVar(), RetrieveAuthPage(), config.php
'config.php
config.php
UTF-8"without Byte Order Mask (BOM)"
pub/css/local.css
CSSCSS
h1, h2, h3, h4, h5 { color: #880000; } /*dark red titles*/ a { text-decoration: none; } /* don't underline links */
pmwiki.php
“pmwiki.php”scripts/“config.php”config.php include_once(...)
pmwiki? Cookbook
FAQ
“local”“config.php”
"docs/sample-config.php" "local""config.php". "#" Group Customizations
“Main.HomePage”($DefaultPage
)
$DefaultPage
$DefaultGroup
$DefaultName
:
$DefaultPage = 'ABC.StartPage';
How do I get the group / page name in a local configuration file (e.g. local/config.php)?
## Get the group and page name $pagename = ResolvePageName($pagename); $page = PageVar($pagename, '$FullName'); $group = PageVar($pagename, '$Group'); $name = PageVar($pagename, '$Name');
wikilib.d
Site.*SiteAdmin.*PmWiki*
404