Dave: exactly, I want this feature because of the Ajax include in div tags. <br>J. Meijer: that sounds like way too much trouble just to get raw output, instead of through the template file. Isn't it just possible to do something with HandleActions in my current wiki installation? For instance just defining another action, instead of "browse" something like "include"? I first thought the "print" would be enough but it also generates a lot of headers and styles.
<br><br>If that is possible, how exactly do you bind an action to a function?<br>Hmm, I'll have to look this up, thanks.<br><br>Anyone with an easier method or way to do it, like my include.php script file?<br>Thanks!
<br><br>- Wouter<br><br><br><div><span class="gmail_quote">On 1/15/07, <b class="gmail_sendername">J. Meijer</b> <<a href="mailto:commentgg@hotmail.com">commentgg@hotmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div style="text-align: left;"><br></div>It seems to me that the way to go about would be to install a second wiki that reads from your current wiki.d. In the config.php you have to override $HandleActions, notable $HandleActions['browse'] with a function of your own making which returns the correct output.
<br><br>Then make a recipy of it (I remember wanted this once too). <br><br>Actually this was my first response ;-)<br><span class="sg"><br>/jm</span><span class="q"><br><br><br>Wouter Groeneveld wrote:<br>> I already tried that, but the HTML Header is required there...
<br>> This one: <!--HeaderText--><br>><br>> And besides that, I also want to use the <span id="st" name="st" class="st">IncludeText</span> arguments to only<br>> include #from#to like<br>> (:include Group/Page#from#to:) but I'd like this output when I go to
<br>><br>> <a href="http://www.bla.com/wiki/include.php" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">www.bla.com/wiki/include.php</a><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
?grp=Group&art=Page<br>> <<a href="http://www.bla.com/wiki" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.bla.com/wiki</a>/include.php?grp=Group&art=Page><br>><br>> so
include.php is something like<br>><br>> require_once('pmwiki.php');<br>><br>> if(isset($_REQUEST['grp']) && isset($_REQUEST['art'])) {<br>> $group = $_REQUEST['grp'];
<br>> $art = $_REQUEST['art'];<br>><br>> echo "$grp/$art viewing...<br>";<br>> // <span id="st" name="st" class="st">IncludeText</span> call<br>> }<br>><br>> But that instead renders my wiki, and I don't want that to happen...
<br>> Thanks for any help!<br>><br>><br>> - Wouter / Jefklak<br>></blockquote><br><br></span><blockquote style="border-left: 2px solid rgb(0, 128, 128); padding-left: 5px; margin-left: 5px; margin-right: 0px;">
<hr><span class="q"><div style="text-align: left;">On 1/15/07, <b>Wouter Groeneveld</b> <<a href="mailto:jefklak@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">jefklak@gmail.com</a>> wrote:
<div><span></span><blockquote style="padding-left: 1ex;">I
would like to use <span id="st" name="st" class="st">IncludeText</span>() so I can access the text in my wiki
pages, but I do _NOT_ want to generate the whole skin and page. <br>So
when I include("pmwiki.php") > this automatically generates my wiki.
I don't want that, I only want to display the <span id="st" name="st" class="st">includeText</span>() output.
<br><br>Is there any possibility to tell pmwiki not do do anything? I only want to be able to use the function <span id="st" name="st" class="st">includetext</span>()<br></blockquote></div><br>I think you might want to define a skin .tmpl file for this with just this content:
<br><br>$PageText<br><br>That should make pmwiki render the page as html and no more. <br><br>Grtn,<br><br>/jm<br><br></div><br></span></blockquote><span class="q"><br><hr>Get free, personalized online radio with MSN Radio powered by Pandora.
<a href="http://radio.msn.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Try it!</a></span></div>
</blockquote></div><br>