[pmwiki-users] Misc ZAP questions...
editor at fast.st
Mon Oct 30 12:45:00 CST 2006
On 10/30/06, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> > 2) I found a thread discussing ways to show categories in a pagelist
> > that did not have associated category pages created for them. But
> > never could find the thread that explained how it could be done. Or
> > is it a future code enhancement?
> There are several ways to do it. Also, pmwiki-2.2 has the
> ability to automatically create Category pages.
Can you elaborate more?
> > 4) Can you retrieve a range of times in a pagelist. Suppose you have
> > page names created by timestamps, or better yet some text variable
> > timestamp in a page. Could you retrun all the pages less then 30 days
> > old? Maybe by setting up some kind of conditional in a pagelist?
> It would need to be a custom conditional.
I guess you define it similar to how you did the (:if exists:) conditional?
> > 7) The following lines of code are absolutely failing and I cannot for
> > the life of me figure out why. This is part of the magic boxes which
> > takes encoded values and restores them to the proper values for use in
> > a textarea field:
> > $htmlout = array("'", '"', ' ', ":)");
> > $htmlin = array(''', '"', ' ', ':)');
> > $x = str_replace($htmlin, $htmlout, $x);
For what it's worth, I discovered due to some changes in how ZAP was
working & was being changed to & or something. With that could
get the match to work. All is fixed in ZAP's magic boxes!
More information about the pmwiki-users