[pmwiki-users] (no subject)

J. Meijer commentgg at hotmail.com
Wed Apr 11 07:38:18 CDT 2007


You may try this:  # use {$FullTitle} in page;list templates etc$FmtPV['$FullTitle'] = $FmtPV['$Title'];   # {$Title} is now for exclusive use in pagelist, leading A & The stripped$FmtPV['$Title'] = "preg_replace('^(A|The) ','',".$FmtPV['$Title'].")";What it does is substitute {$Title} with a version that strips leading A & The. Pagelists will use this value and therefore sort correctly. The original {$Title} is still available as {$FullTitle}. Use this in pagelist templates and page text. Hope this helps,/jmOn 4/11/07, david at ellendee.co.uk <david at ellendee.co.uk> wrote:I'm putting together a couple of sites. One involves titles of books andthey both involve peoples names. For the titles I need to ignore a leading'A' or 'The' when sorting and for the names I'd like to sort on surname(last 'word' in title).Are these possible?
_________________________________________________________________
Take a break and play crossword puzzles - FREE!
http://games.msn.com/en/flexicon/default.htm?icid=flexicon_ wlmemailtaglinemarch07
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20070411/54aa42af/attachment.html 


More information about the pmwiki-users mailing list