[pmwiki-users] Using pmwiki's functions without building the wiki

DaveG pmwiki at solidgone.com
Mon Jan 15 12:12:26 CST 2007


This would be really useful for Ajax page rendering functions on PMwiki 
as well.

  ~ ~ Dave

Wouter Groeneveld wrote:
> I already tried that, but the HTML Header is required there...
> This one: <!--HeaderText-->
> 
> And besides that, I also want to use the IncludeText arguments to only 
> include #from#to like
> (:include Group/Page#from#to:) but I'd like this output when I go to
> 
> www.bla.com/wiki/include.php?grp=Group&art=Page 
> <http://www.bla.com/wiki/include.php?grp=Group&art=Page>
> 
> so include.php is something like
> 
> require_once('pmwiki.php');
> 
> if(isset($_REQUEST['grp']) && isset($_REQUEST['art'])) {
>     $group = $_REQUEST['grp'];
>     $art = $_REQUEST['art'];
>    
>     echo "$grp/$art viewing...<br>";
>    // IncludeText call
> }
> 
> But that instead renders my wiki, and I don't want that to happen...
> Thanks for any help!
> 
> 
> - Wouter / Jefklak
> 
> 
> On 1/15/07, * J. Meijer* <commentgg at hotmail.com 
> <mailto:commentgg at hotmail.com>> wrote:
> 
> 
> 
>     On 1/15/07, *Wouter Groeneveld* < jefklak at gmail.com
>     <mailto:jefklak at gmail.com>> wrote:
> 
>         I would like to use IncludeText() so I can access the text in my
>         wiki pages, but I do _NOT_ want to generate the whole skin and
>         page.
>         So when I include("pmwiki.php") > this automatically generates
>         my wiki. I don't want that, I only want to display the
>         includeText() output.
> 
>         Is there any possibility to tell pmwiki not do do anything? I
>         only want to be able to use the function includetext()
> 
> 
>     I think you might want to define a skin .tmpl file for this with
>     just this content:
> 
>     $PageText
> 
>     That should make pmwiki render the page as html and no more.
> 
>     Grtn,
> 
>     /jm
> 
> 
> 
>     ------------------------------------------------------------------------
>     Get free, personalized online radio with MSN Radio powered by
>     Pandora. Try it! <http://radio.msn.com>
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users




More information about the pmwiki-users mailing list