<div dir="ltr"><div><div><div></div>I have tried the latest version of pagelist.php script, and it works !<br></div>Thanks a lot because it was central in my website wich is built on ptvs.<br><br></div><div><div style="margin-left:40px"><span class="im">P.S. When you write:</span><br></div><div style="margin-left:40px"><span class="im"></span></div><span class="im">
<br></span><div style="margin-left:40px"><span class="im">
(:input form "<a href="http://labo.nonmarchand.org/pmwiki/" rel="noreferrer" target="_blank">http://labo.nonmarchand.org/pmwiki/</a>" method:)</span><br></div><div style="margin-left:40px"><span class="im"></span></div><span class="im">
<br></span><div style="margin-left:40px">
instead of "method" you should use "POST" or "GET" (or nothing).</div><br>
<br></div>Oups ! Thanks for your advice. :-) I will change this in my forms<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-02-09 9:49 GMT+01:00 Petko Yotov <span dir="ltr"><<a href="mailto:5ko@5ko.fr" target="_blank">5ko@5ko.fr</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Currently PmWiki searches and pagelists don't allow the setting of a $:PageTextVariable in a separate form field: it only accepts them if written in the (:pagelist $:PTV=2:) markup, or as a part of the "q" request parameter.<br>
<br>
I've made a change that should allow you to use $:PTVs in individual form fields. For example, you can search for $:Audience=*author* in PmWiki/:<br>
<br>
<a href="http://www.pmwiki.org/wiki/PmWiki/PmWiki?action=search&q=PmWiki%2F&ptv_Audience=*author*" rel="noreferrer" target="_blank">http://www.pmwiki.org/wiki/PmWiki/PmWiki?action=search&q=PmWiki%2F&ptv_Audience=*author*</a><br>
<br>
<br>
Please test the latest scripts/pagelist.php from Subversion and report if it works for you.<br>
<br>
<a href="http://www.pmwiki.org/wiki/PmWiki/Subversion" rel="noreferrer" target="_blank">http://www.pmwiki.org/wiki/PmWiki/Subversion</a><br>
<br>
Using PageVariables like $Name as a form field name is still not supported (and will probably not be).<br>
<br>
Petko<span class=""><br>
<br>
P.S. When you write:<br>
<br>
(:input form "<a href="http://labo.nonmarchand.org/pmwiki/" rel="noreferrer" target="_blank">http://labo.nonmarchand.org/pmwiki/</a>" method:)<br>
<br></span>
instead of "method" you should use "POST" or "GET" (or nothing).<br>
<br>
---<br>
Change log : <a href="http://www.pmwiki.org/wiki/PmWiki/ChangeLog" rel="noreferrer" target="_blank">http://www.pmwiki.org/wiki/PmWiki/ChangeLog</a><br>
Release notes : <a href="http://www.pmwiki.org/wiki/PmWiki/ReleaseNotes" rel="noreferrer" target="_blank">http://www.pmwiki.org/wiki/PmWiki/ReleaseNotes</a><br>
If you upgrade : <a href="http://www.pmwiki.org/wiki/PmWiki/Upgrades" rel="noreferrer" target="_blank">http://www.pmwiki.org/wiki/PmWiki/Upgrades</a><span class=""><br>
<br>
<br>
On 2016-02-07 21:03, Benjamin Grassineau wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
Hello,<br>
<br>
A problem !<br>
<br>
I use a form in order to create a research page. It works, but I can't get<br>
the value of page text variables.<br>
<br>
Example of form :<br>
<br>
(:input form "<a href="http://labo.nonmarchand.org/pmwiki/" rel="noreferrer" target="_blank">http://labo.nonmarchand.org/pmwiki/</a>" method:)<br>
(:input hidden n 'Accueil.Recherche':)<br>
(:input hidden group 'Blog':)<br>
(:input hidden action search:)<br>
(:input hidden $:RubriqueArticle '2':)<br>
(:input hidden req 0:)<br>
(:input submit value="Results":)<br>
(:input end:)<br>
<br>
The result in the adress bar is :<br>
<br>
<a href="http://labo.nonmarchand.org/pmwiki/?n=Accueil.Recherche&group=Blog&action=search&" rel="noreferrer" target="_blank">http://labo.nonmarchand.org/pmwiki/?n=Accueil.Recherche&group=Blog&action=search&</a><br></span>
*ptv_RubriqueArticle*=2&req=0<br>
<br>
And it doesn't work. The value of *ptv_*RubriqueArticle is omitted.<br>
<br>
But it works if I manually change the writing of ptv (*$:*RubriqueArticle)<span class=""><br>
in the adress bar as follow :<br>
<br>
<a href="http://labo.nonmarchand.org/pmwiki/?n=Accueil.Recherche&group=Blog&action=search&" rel="noreferrer" target="_blank">http://labo.nonmarchand.org/pmwiki/?n=Accueil.Recherche&group=Blog&action=search&</a><br></span>
*$:RubriqueArticle*=2&req=0<span class=""><br>
<br>
So my question is how can I get the value of ptv in a search form ?<br>
<br>
Thanks if you have any solution.<br>
<br>
Benjamin<br>
<br></span>
_______________________________________________<br>
pmwiki-users mailing list<br>
<a href="mailto:pmwiki-users@pmichaud.com" target="_blank">pmwiki-users@pmichaud.com</a><br>
<a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users" rel="noreferrer" target="_blank">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a><br>
</blockquote>
<br>
_______________________________________________<br>
pmwiki-users mailing list<br>
<a href="mailto:pmwiki-users@pmichaud.com" target="_blank">pmwiki-users@pmichaud.com</a><br>
<a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users" rel="noreferrer" target="_blank">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><blockquote style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><i>"Donner, partager..."<br><br></i><a href="http://nonmarchand.org" target="_blank">Association pour les échanges non marchands et la culture libre</a><br></blockquote></div>
</div>