[pmwiki-users] PmWiki 2.2.42 released

2012-08-20 Thread Petko Yotov
Hello. PmWiki version 2.2.42 was published today, and is available at: http://www.pmwiki.org/pub/pmwiki/pmwiki-2.2.42.tgz http://www.pmwiki.org/pub/pmwiki/pmwiki-2.2.42.zip svn://www.pmwiki.org/pmwiki/tags/latest This version provides a fix for wiki pages containing an illegal character, for

[pmwiki-users] Truncate PageTitle

2012-08-20 Thread Brian Tibbels
I need to truncate a page title for side bar presentation (:title Language - Full Page Title:) I need the text after - . Can someone suggest how to do this please? Rgds Brian ___ pmwiki-users mailing list pmwiki-users@pmichaud.com

Re: [pmwiki-users] Truncate PageTitle

2012-08-20 Thread Peter Bowers
On Mon, Aug 20, 2012 at 1:30 PM, Brian Tibbels brian.tibb...@clickmarlow.co.uk wrote: I need to truncate a page title for side bar presentation (:title Language - Full Page Title:) I need the text after - . If the Language - part is a constant length across all pages then standard markup

Re: [pmwiki-users] Truncate PageTitle

2012-08-20 Thread Brian Tibbels
Thank you Peter. Unfortunately the Language part is variable in length. I suppose I'm looking for the equivalent of a strpos in expressions. On 20 August 2012 13:11, Peter Bowers pbow...@pobox.com wrote: On Mon, Aug 20, 2012 at 1:30 PM, Brian Tibbels brian.tibb...@clickmarlow.co.uk wrote:

Re: [pmwiki-users] Truncate PageTitle

2012-08-20 Thread Hans Bracker
Hi Brian, Monday, August 20, 2012, 12:30:23 PM, you wrote: I need to truncate a page title for side bar presentation (:title Language - Full Page Title:) I need the text after - . How is your title constructed (what kind of variables)? How is it represented in the SideBar, as link, in a

Re: [pmwiki-users] Truncate PageTitle

2012-08-20 Thread Peter Bowers
Did the $FmtPV definition work? Or were you hoping for something markup-expression related? Writing a strpos() in MX is fairly simple: $MarkupExpr['strpos'] = 'strpos($args[0], $args[1])'; # $MarkupExpr['add'] = '$args[0] + $args[1]'; // MarkupExprPlus version is better, this will work Then in

Re: [pmwiki-users] Truncate PageTitle

2012-08-20 Thread Dominique Faure
On Mon, Aug 20, 2012 at 1:30 PM, Brian Tibbels brian.tibb...@clickmarlow.co.uk wrote: I need to truncate a page title for side bar presentation (:title Language - Full Page Title:) Using MarkupExprPlus as suggested by Peter, the following expression will do it: {(reg_replace '/^.*\s+-\s*/'

[pmwiki-users] Something (possibly the sqlite recipe) seems to have trouble with UTF-8 in wikilinks

2012-08-20 Thread Alex Eftimiades
The first includes of my config.php is: include_once(scripts/xlpage-utf-8.php); $DefaultPageCharset = array(''='ISO-8859-9', 'ISO-8859-1'='ISO-8859-9'); include_once($FarmD/cookbook/sqlite.php); $WikiDir = new PageStoreSQLite($WorkDir.'/pmwiki.sqlite.db', 1); $WikiLibDirs = array( $WikiDir