[pmwiki-users] Pagelists, adjunct data pages & variable sort orders
Crisses
crisses at kinhost.org
Tue Oct 17 03:33:22 CDT 2006
Oh yeah
Sidenote, just in case, my pagenames (for Simile pages) have : in them.
Crisses
---
I grew out of guys that age when I grew out of watching Dawson's
Creek....but then again, Pacey is more my type....um, oh.
On Oct 17, 2006, at 4:30 AM, Crisses wrote:
> On Oct 17, 2006, at 2:55 AM, Patrick R. Michaud wrote:
>
>> $FmtPV['$Year'] =
>> "PageTextVar('Data-'.PageVar(\$pn, '\$BaseName'), '$:Year')";
>>
>> $FmtPV['$Work'] =
>> "PageTextVar('Data-'.PageVar(\$pn, '\$BaseName'), '$:Work')";
>>
>> $FmtPV['$WAuthor'] =
>> "PageTextVar('Data-'.PageVar(\$pn, '\$BaseName'),
>> '$:WAuthor')";
>
> This didn't work....
>
> I tried it out by putting
>
> {$Year}
>
> {$WAuthor}
>
> {$Work}
>
> in the body of a Simile page, and nothing is coming back from it.
> I don't see why the code isn't creating output though. Am I
> calling the page variables correctly?
>
>
>
> Once I do have it working, I guess I could make "stripped" (or
> "safe") pagevar versions and eliminate that custom markup I have
> for creating Category markup? These might actually work equally
> well for sorting and grouping...something like:
>
> $FmtPV['$sYear'] = "preg_replace('/[^A-Za-z0-9 -]/', '', PageTextVar
> ('Data-'.PageVar(\$pn, '\$BaseName'), '$:Year'))";
>
> $FmtPV['$sWork'] = "preg_replace('/[^A-Za-z0-9 -]/', '', PageTextVar
> ('Data-'.PageVar(\$pn, '\$BaseName'), '$:Work'))";
>
> $FmtPV['$sWAuthor'] = "preg_replace('/[^A-Za-z0-9 -]/', '',
> PageTextVar('Data-'.PageVar(\$pn, '\$BaseName'), '$:WAuthor'))";
>
>
> I have
> Markup('{$var}', '>$[phrase]',
> '/\\{(\\*|!?[-:\\w.\\/\\x80-\\xff]*)(\\$:?\\w+)\\}/e',
> "htmlspecialchars(PageVar(\$pagename, '$2', '$1'),
> ENT_NOQUOTES)");
> in my config.php -- I tried commenting it out and my {$:Vars}
> broke, but I thought that they were built in at this point...I
> don't mind leaving it in, I'm just trying to figure out what has
> been obsoleted since I started this wiki a couple months ago.
>
>
> Crisses
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20061017/cad3f5b4/attachment.html
More information about the pmwiki-users
mailing list