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
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
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
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:
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
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
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*/'
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