|
PmWiki
pmwiki.org
|
An itinerant webmaster for some clubs on Wellington Community Net. Started with UseMod, tried MoinMoin, now found PmWiki.
Once a software developer (Pascal), now joined the dark side as a Project Manager, currently ETL Team Leader. Still dabble with CSS, HTML, JavaScript, and now PHP to support the websites.
|
Jack of all trades ...
the documentation to read if you're going to read documentation
Trying out, but not yet got to work
Search here if all else fails
|
Knows enough to be ...
Cookbook customisations used
- Cookbook:Add image type Add new image type extension
- Cookbook:Add newline Make wiki text end with a newline character, so the last line won't be marked as changed if text is added at the bottom
- Cookbook:AttachLinks Get
Attach: links to display by default without the "Attach:" prefix
- Cookbook:Attachtable Actions to rename, delete & restore deleted attachments, as well as an attachlist replacement to use those actions and show file MIME types.
- Cookbook:Attachlist enhanced How to list missing or orphaned attachments.
- Cookbook:Edit templates (
$EditTemplatesFmt) Specify a wiki page or pages to use as a template when a new page is created.
- Cookbook:Excel paste Copy and paste spreadsheet tables (e.g., from Excel) into pages
- Cookbook:External links Configure external links to open in a new window, have a "tooltip title", or use other CSS classes
- Cookbook:How to report bugs redirects to HowTogetAssistance?
- Cookbook:Image map Directive to create image maps and image toolbars
- Cookbook:Include file How to include an external file (from the same file system)
- Cookbook:Include Url Include html pages into PmWiki 2.x pages
- Cookbook:Inline diff Shows the difference between 2 versions by highlighting the changes in markup on word level.
Cookbook:Markup extensions Adds a range of character, start of line, and link markup extensions
- Cookbook:New group box Input box to create new wiki groups from predefined template pages
- Cookbook:New page box How to provide a form or box to allow users to create new pages
- Cookbook:Page Table of Contents Adds a clickable table of contents to a page
- Cookbook:Per Group Sub Directories Subdivide wiki.d into subdirectories according to page group
- Cookbook:Protect email Email obfuscation
- Cookbook:Random quote Insert random quotes or markup into a page
- Cookbook:Recent uploads log List all uploaded files in the RecentUploads pages
- Cookbook:Recipe check Check for new versions of recipes on pmwiki.org
- Cookbook:Rowspan in simple tables Markup to add a rowspan attribute on a simple table cell
- Cookbook:Skin change change skin via query or cookie setting
- Cookbook:Source block Source code syntax highlighter for PmWiki 2.x using GeSHi
- Cookbook:ROS patterns (
$ROSPatterns) How to use $ROSPatterns (Replace On Save Patterns)?
- Cookbook:Search patterns (
$SearchPatterns) Q & A's on search patterns
- Cookbook:Shared pages and groups Share selected pages among several wikis on a common server, as in WikiFarms
- Cookbook:Show hide and Toggle link Adds toggle buttons and links to show/hide sections and objects
- Cookbook:Thumb list Cookbook:Thumb list-Talk A feature-rich thumbnail picture gallery for PmWiki
- Cookbook:Total counter A statistic counter - counts page views, users, languages, browsers, operating systems, referers, locations and web bots (warning: not suitable for production systens)
- Cookbook:Upload form Alternative file upload form using
(:input file:)
- Cookbook:Watch lists Track the most recent changes to a list of pages
|
Config.php customisations used
Markup('[[<]]', '[[<<]]', '/\\[\\[<\\]\\]/', '<br />'); # break without clear all
$PageSearchForm = '$DefaultGroup.Search'; # to fully use customised search page.
$UploadNameChars = "-\w. !=+#"; # allow exclamations, equals, plus, and hash
My weapons
|
Used as a home intranet (great for the kids),
and for community group websites.
|
My CSS suggestions and customisations
When creating a skin simply include the original pmwiki CSS file,
this ensures you benefit from pmwiki upgrades, viz
@import url("/pmwiki/pub/skins/pmwiki/pmwiki.css");
Use CSS to suppress and change some elements of the page when printing (latterly pmwiki also uses this), eg
@media print {
/* style sheet for print */
#wikilogo, #wikihead, #wikifoot, #wikileft, #wikicmds,
.wikitrail, .noprint {
display : none;
}
}
My template suggestions and customisations
Change the order of the skin CSS and run time CSS lines (which replace the Headertext) to ensure your customised skin CSS overrides the page by page generated CSS, viz
<!--HeaderText-->
<link rel='stylesheet' href='$SkinDirUrl/pmwiki.css' type='text/css' />
|
General tips
- Make Firefox refresh every time
- type about:config in the location bar, right click on browser.cache.check_doc_frequency and select modify, change to 1 and Firefox will now check for a new version of the page on every page load
- Safe Mode and uploads
- try chmod 777 /home/username/public_html/pmwikiuploads/
Like to contribute where I can
Simon
|
My configuration suggestions and customisations
Changes for config.php
$EditTemplatesFmt = array('$Group.Template', '$DefaultGroup.Template');
# include DefaultGroup in page search
$PagePathFmt = array ('$1.{$DefaultName}', '{$Group}.$1', '{$DefaultGroup}.$1', '$1.$1');
# Authors must give a name
$EnablePostAuthorRequired = 1;
# Create a simple 'last changed page' for including on other pages
$RecentChangesFmt['Site.LastChanged'] = '[-[[$Group.$Name]]-][[<<]] ';
# try to make recent changes show all recent changes (YMMV)
if (preg_match('![./]RecentChanges$!', $pagename))
$DefaultPageTextFmt = '(:include Site.AllRecentChanges lines=60 :)';
$RecentChangesFmt['$Group.RecentChanges'] = '(:include Site.AllRecentChanges lines=60 :)';
# add a soft break
Markup('[[<]]', '[[<<]]', '/\\[\\[<\\]\\]/', '<br />'); # break without clear all
# make search stay in group
$PageSearchForm = '$DefaultGroup.Search';
# better control over simple tables (''doesn't work, hoping for help'')
$BlockMarkups['table'] = '<table width=* class="wikisimpletable">';
# Additional uploads file types
$UploadExts['dot'] = 'application/msword'; # Word document template
Set $EnableDiag and
include_once("$FarmD/cookbook/analyze.php");
$AnalyzeKey = 'secret';
on one page only by creating a page specific configuration file.
How do I get a list of categories (as opposed to a page list of category pages)?
Corollary:
How do I refer to a category (eg [[Category/example]]) without joining (being listed in) the category (eg [[!example]])
(2006-05-02) Automatic population of the AuthorTracking field
Running PmWiki as an intranet in a fully windows environment, is there any possibility of hiding, but populating the Author name field from (say) Windows authentication, so that the author for every change is captured (and does not need to be entered (and cannot be changed) by the user)
(:pagelist group=PITS order=-name
$:From=*simon*,*Simon*,-*Simon?B*,-*Simoni* fmt={$FullName}#pitsentry :)
(:if false:)
[[#pitsentry]]
(:template first:)
||width=*
(:template each:)
||[-[[{=$FullName}]]-] ||[-''{=$:Status}''-] ||[-{=$LastModifiedSummary}-]
||[-{=$:Summary}-] ||
[[#pitsentryend]]
(:ifend:)
| | PITS.00962 | Open | Make >><< behave identifcally with other block formatting when [=style= is used-] ||[-Make [=>><< behave identically with other block formatting when style= is used |
| PITS.00957 | Open | add a page | Pages to be added and updated in 2.2.0 beta release |
| PITS.00951 | Awaiting feedback | Vote +1 | {$SiteAdminGroup} page variable not created |
| PITS.00917 | Open | added reference to static pagelist capability and example of creating wiki trail | Page lists? to be able to create wiki trails? |
| PITS.00916 | Open | Support honeypot block list | Support honeypot block list |
| PITS.00915 | Closed in 2.2.0 beta 56 | | Page text variable? erroneous usage loops |
| PITS.00895 | Open | | Allow multiple wiki trails? on a page with anchors |
| PITS.00894 | Open | Alternative solution, allow quotes around the file name | Provide a better means of attaching images with spaces in their names |
| PITS.00885 | Open | restore | Definition list marked up as Intermap Entry |
| PITS.00884 | Open | | Make pagelist parameter names not case sensitive |
| PITS.00880 | Open | | Page text variables change request |
| PITS.00866 | Closed - not a bug | | Blocklist displays error |
| PITS.00860 | Open | vote for this feature request | Add min and max width and height, clear; to table, div, block, and style directives |
| PITS.00850 | Closed, in 2.2.0-beta28 | closed | Blocklist to optionally check Author and Summary fields, and to optionally display blocklist name |
| PITS.00805 | Open | | Search: allow button text to be specified |
| PITS.00799 | Closed - too difficult for benefit obtained | | Odd behaviour of markup |
| PITS.00787 | Closed, in 2.2.0-beta32 | Closed, in 2.2.0-beta32 | (:else:) extension of Conditional Markup |
| PITS.00746 | Reopened - inconsistent with other wikis | restore | Link markup broken in 2.1.6 |
| PITS.00741 | Closed - use %-escapes | add ( example | Escape characters in URLs |
| PITS.00707 | Closed - available in 2.2.0-beta1 | closed - fixed/available in 2.2.0-beta1 | Add conditional markup to detect if text is included |
| PITS.00673 | Closed - not a bug | | PmWiki changes a character with a macron to a character with a circumflex on save |
| PITS.00665 | Open | Cookbook.Attachtable link | Allow customization of attachlist output |
| PITS.00646 | Closed | restore | Search should use the page it is called from to return the result if it contains (:searchresults:) |
| PITS.00638 | Reopened, does not really exist | | Simple table have CSS class added to facilitate customisation |
| PITS.00615 | Closed - no action | restore | Suggested default template changes for 2.1 |
| PITS.00489 | Suspended - needs votes | votes solicited please | classes for Image frames and captions |
| PITS.00485 | Closed -- added to cookbook | link | Include NewPageBox in a release |
| PITS.00467 | Closed | closed, non existent page handling now changed | Describe DummyPage? here needs forced link |
| PITS.00466 | Closed - fixed for 2.0.0 | | Saving Approved URLs issues: Added twice; Case sensitive |
| PITS.00446 | Closed - added to documentation | restore | Approve Links tool tip |
| PITS.00423 | Closed - not a bug | de-sapm | Table attributes have a space added in string value |
| PITS.00411 | Open | | pagelist to exclude redirects |
| PITS.00396 | Confirmed, ToDo | confirmed, todo | Creating uploads directory error message may require tidy |
| PITS.00269 | Closed - not a bug | | %right% need blank line before and after |
| PITS.00250 | Closed | | Provide a "wikiright" to match the existing wikileft |
| PITS.00162 | Closed - fixed for 2.0.beta1 | | Move formatting of $PageLogoFmt into template |
|
(:pagelist trail={$FullName} fmt={$FullName}#watchlist order=-time:)
(:if false:)
[[#watchlist]]
(:template first:)
||width=*
(:template each:)
||[-[[{=$FullName}?action=diff | {=$LastModified}]]-] ||[-''[[{=$FullName}
| {=$Groupspaced}.{=$Namespaced}]]''-] ||[-[[~{=$LastModifiedBy}]]-]
||[-{=$LastModifiedSummary}-]||
[[#watchlistend]]
(:ifend:)
| | August 29, 2008, at 10:39 PM | Group.Name? | Profiles | |
| August 29, 2008, at 11:02 AM | Pm Wiki.Uploads Admin | Andrew Bulmer? | Answered question |
| August 23, 2008, at 05:35 AM | Pm Wiki.Upload Variables | jb | |
| August 21, 2008, at 03:23 PM | Pm Wiki.Troubleshooting | Peter Bowers | added fix for session problems - worked for me. ymmv. |
| August 20, 2008, at 05:21 AM | Pm Wiki.Available Actions | simon | clear right |
| August 19, 2008, at 11:13 PM | Pm Wiki.Wiki Trails | simon | clear right |
| August 19, 2008, at 11:10 PM | Pm Wiki.Page Text Variables | simon | clear right |
| August 19, 2008, at 11:10 PM | Pm Wiki.Page Text Variables | simon | clear right |
| August 19, 2008, at 10:06 PM | Pm Wiki.Url Approvals | simon | trail |
| August 19, 2008, at 10:06 PM | Site Admin.Blocklist | simon | remove blockspot (used on page PmWiki/UrlApprovals) |
| August 19, 2008, at 10:01 PM | Pm Wiki.Notify | simon | trail |
| August 19, 2008, at 10:01 PM | Pm Wiki.Blocklist | simon | trail |
| August 15, 2008, at 03:12 AM | Pm Wiki.Page List Templates | simon | add redirect from email list |
| August 14, 2008, at 08:58 AM | Pm Wiki.Include Other Pages | Peter Bowers | |
| August 13, 2008, at 08:10 PM | Pm Wiki.Security | simon | Answer to read only wiki |
| July 28, 2008, at 03:35 PM | Pm Wiki.Page Lists | overtones99 | link to custom pagelist sort order |
| July 10, 2008, at 08:00 AM | Pm Wiki.Categories | Nucleos? | |
| July 07, 2008, at 04:18 PM | Pm Wiki.Conditional Markup | simon | if may be nested |
| June 23, 2008, at 03:55 PM | Pm Wiki.Comment Markup | Simon | anchor and refactor, questions |
| June 20, 2008, at 09:55 AM | Cookbook.Web Admin | Jeff Muday | |
| June 13, 2008, at 05:04 PM | Pm Wiki.Uploads | Joel Taylor? | Corrected typo |
| May 09, 2008, at 02:44 AM | Pm Wiki.Wiki Farms | kevin? | |
| April 25, 2008, at 06:36 AM | Cookbook.Clean Urls | Peter Bowers | |
| April 25, 2008, at 06:18 AM | Cookbook.Install On IIS | Peter Bowers | |
| April 15, 2008, at 05:53 PM | Cookbook.Wiki Gallery | Petko | CustomPageStore |
| April 14, 2008, at 03:41 PM | Pm Wiki.File Permissions | simon | see also Cookbook/DirectoryAndFilePermissions |
| March 18, 2008, at 04:49 AM | Pm Wiki.Deleting Pages | Bartolin | moved question to FAQ area |
| March 13, 2008, at 05:39 AM | Pm Wiki.Site Analyzer | jdd | |
| February 19, 2008, at 01:01 PM | Pm Wiki.Analyze Results | simon | correct reference |
| January 26, 2008, at 10:24 AM | Pm Wiki.Special Pages | DaveG | Added wikilib.d info from Tegan |
| January 03, 2008, at 08:14 PM | Pm Wiki.Mail Posts | simon | summary |
| December 28, 2007, at 04:40 AM | Cookbook.Chord Pro | NH? | Restore |
| November 28, 2007, at 06:53 AM | Cookbook.Login Logout | Joseph Kynaston Reeves? | |
| October 27, 2007, at 08:46 PM | Cookbook.Auth List Short | Fernando Gutiérrez? | |
| October 09, 2007, at 10:58 AM | Cookbook.Favicon | pjv | |
| August 20, 2007, at 03:48 AM | Cookbook.PHP | simon | |
| May 25, 2007, at 09:58 AM | Cookbook.ROS Patterns | stirlingwestrup | |
| May 22, 2007, at 05:41 PM | Cookbook.Watch Lists | simon | update single page option |
|
Last modified by me
(thanks Pico for the pagelist)
[[#lastmodbyme]]
(:if false:)
(:template defaults order=-time:)
(:template each:)
(:if equal {=$LastModifiedBy} {$Name}:)
# [[{=$Group}.{=$Name}]] [-{=$LastModifiedHost}-] [-{=$LastModified}-]
''[-{=$LastModifiedSummary}-]'' [-{=$:Summary}-]
(:ifend:)
(:ifend:)
[[#lastmodbymeend]]
Pages that were [[{$Name}?action=search&q=fmt={$Name}#lastmodbyme|last
modified by {$Name}]]
(:pagelist fmt={$Name}#lastmodbyme group=PmWiki,Cookbook,PITS:)
|
Pages that were last modified by Simon
- Cookbook.WikiTrails 202.37.32.2 June 30, 2008, at 10:47 PM ifend Ways to use and create WikiTrails along with extensions to enhance them
- Cookbook.RecipeList 202.37.32.2 June 30, 2008, at 10:46 PM remove return to text The 'RecipeList' page list template
- Cookbook.Administration 202.37.32.2 June 30, 2008, at 10:40 PM change summary Recipes for Wiki Administration and Administrators
- PmWiki.CommentMarkup 202.37.32.2 June 23, 2008, at 03:55 PM anchor and refactor, questions various forms of comments and how to achieve them for wiki pages
- Cookbook.CommentsSplit 203.97.214.12 April 18, 2008, at 12:57 AM some other simon A simple way to have publically-editable comments section at the bottom of your pages
- PITS.01005 203.97.214.12 March 29, 2008, at 11:55 PM Simon, try another non de plume, Simon Publish button disabled if Drafts and PageTextVar() is used
- PITS.00489 202.37.32.2 May 02, 2007, at 05:56 PM votes solicited please classes for Image frames and captions
- PITS.00775 202.37.32.2 May 02, 2007, at 05:53 PM fix From Login -> 500 Internal Server Error
- Cookbook.OutlineLists 202.37.32.2 April 30, 2007, at 04:26 PM summary Deprecated, see WikiStylesPlus
- PITS.00916 202.37.32.2 April 26, 2007, at 06:30 PM Support honeypot block list Support honeypot block list
- Cookbook.DivisionsExplained 203.97.214.12 April 20, 2007, at 07:11 PM link to existing documentation Explanation of
(:div:) and >>..<< markup for creating page sections (divisions)
- PITS.00787 202.37.32.2 April 10, 2007, at 05:32 PM Closed, in 2.2.0-beta32
(:else:) extension of Conditional Markup
- PITS.00088 203.97.214.12 December 29, 2006, at 12:24 AM I'd like it RecentUploads don't exists
- PmWiki.AuthorTracking 202.37.34.4 November 30, 2006, at 03:32 PM link to AllRecentChangesPerAuthor
- PITS.00485 202.37.32.2 November 05, 2006, at 06:16 PM link Include NewPageBox in a release
- PITS.00741 202.37.32.2 November 05, 2006, at 06:09 PM add ( example Escape characters in URLs
- PITS.00673 203.97.214.12 April 03, 2006, at 03:41 AM PmWiki changes a character with a macron to a character with a circumflex on save
- PITS.00467 210.246.16.135 February 24, 2006, at 03:21 AM closed, non existent page handling now changed Describe DummyPage? here needs forced link
|
|