[horde] Re: Problem with Text_Wiki?

Paul Wagland paul at kungfoocoder.org
Tue Jun 8 15:11:49 PDT 2004


On Tue, 8 Jun 2004 16:27:17 -0500, Paul M Jones <pmjones at ciaweb.net> wrote:

> On Jun 8, 2004, at 4:03 PM, Paul Wagland wrote:
>
>> OK... I have started to look at the problem. I have figured out what 
>> the first
>> change required is... get rid of the configuration array. So far so good ;-)
>>
>> This solves the problem of not being able to view pages, however, of course,
>> this leads straight to a new problem... there is no configuration, and so
>> Text_Wiki is putting up the wrong links for creating a new page, and 
>> it cannot
>> find the pages to link to.
>
> Most of the useful configuration bits have moved to
> Text_Wiki::setRenderConf().  Does that help?

Possibly... knowing more about PHP would probably also help ;-)

I have the following lines in Page.php:

             require_once 'Text/Wiki.php';
             $this->_proc = &new Text_Wiki($rules);
             $this->_proc->setRenderConf('Xhtml', 'Freelink',  array(
                         'pages' => &$pages,
                         'view_url' => $view_url,
                         'new_url' => Util::addParameter($view_url, 
'autocreate',
1),
                         'new_text' => Horde::img('question.gif')
                     ));


But, they do not change the output links at all... I figure, once I can 
get the
first configuration change made the others should be easier :-)

Cheers,
Paul



More information about the horde mailing list