[Pmwiki-users] PmWiki2 test site]

Pierre ROUZEAU pierre
Sat Oct 2 16:19:30 CDT 2004


Patrick R. Michaud wrote:

>On Sat, Oct 02, 2004 at 06:32:34PM +0200, Pierre ROUZEAU wrote:
>  
>
>>   Hello,
>>   I'm in the process to install a Wiki site under PmWiki2.
>>   The conversion from PmWiki1 was relatively easy though some things are
>>   not working.
>>
>>   1/ I have not been able to call the Index function (formerly called by
>>   $Index)
>>    
>>
>
>Ummmm, what Index function?
>
A custom version of DTIndex.
The function call is defined in the program by the line :
SDV($InlineReplacements['/\\[\\[\\$Index\\]\\]/e'], "DTIndexAll()");
I think this is the line which needs to be modified but i have no clue 
about php .

2/ The top search box don't transfer data to search- maybe this is

>>   related  to internationalisation, it seems it was working before I set
>>   XLPages
>>    
>>
>
>Do you mean that the search term doesn't reappear in the search box on the
>results page?  Or that it doesn't actually search for the correct term?
>
Both. I got no result at all, and the term is not reported.
The french search page have been adapted to V2 and does work.

Herebelow  the template :
<form action='$ScriptUrl/$[Main/SearchWiki]'>
      <input type='hidden' name='pagename' value='$[Main/SearchWiki]' />
      <a href='$ScriptUrl/$[Main/SearchWiki]'>$[SearchWiki]</a>:
      <input class='searchbox' type='text' name='text' value='' />
      <input class='searchbutton' type='submit' value='$[Go]' /></form>

And the HTML code produced (there is the XLPage interpretation ) :

<form action='http://www.rouzeau.net/w2/pmwiki.php/PmWikiFr/RechercheWiki'>
      <input type='hidden' name='pagename' value='PmWikiFr/RechercheWiki' />
      <a href='http://www.rouzeau.net/w2/pmwiki.php/PmWikiFr/RechercheWiki'>RechercheWiki</a>:
      <input class='searchbox' type='text' name='text' value='' />

      <input class='searchbutton' type='submit' value='Go' /></form>

------------------------------------

>You can add the pmwiki 1 wikilib.d/ directory in to the list of
>directories to be searched, as in 
>
>    $WikiLibDirs = array(&$WikiDir,
>        new PageStore1x('/path/to/pmwiki1/wiki.d/$PageName'),
>        new PageStore('$FarmD/wikilib.d/$PageName'),        
>        new PageStore1x('/path/to/pmwiki1/wikilib.d/$PageName'));
>
Thanks: that works  !

>Pm
>
>  
>
And another question : before going public, i wish to make an expirediff 
on all pages.
(at least on PmWiki1 pages).
Ho can i loop on all the pages ? I suppose you already have such a 
function  ?

And also note that the safety on expirediff don't work (no permission is 
asked)

---------------------------------------------------------------------------
Pierre Rouzeau - Proud indigenous of old Europe
CNC Router - Fraiseuse CN  www.otocoup.com <http://www.otocoup.com>
Hovercraft model - A?roglisseur mod?le www.aeroglisseur.com
<http://www.aeroglisseur.com>---------------------------------------------------------------------------

-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users_pmichaud.com/attachments/20041003/c128064a/attachment.htm


More information about the pmwiki-users mailing list