[pmwiki-users] some publispdf questions

John Rankin john.rankin at affinity.co.nz
Wed Mar 29 20:53:14 CST 2006

On Tuesday, 21 March 2006 12:46 AM, noskule at gmx.net wrote:
>noskule schrieb:
>>hi list hi john
>>I'm on the way to cusotmize publishpdf for the netstreams skin. So I 
>>would like to change the
>>$PublishTagFmt variable to the code below:
>>SDV($PublishTagFmt,"<form class='publish' action='*\$*ScriptUrl' method='get'>
>>    *\$*PublishName<input type='hidden' name='n' value='*\$*FullName' />
>>    <input type='hidden' name='action' value='publish' />
>>    <input type='hidden' name='ptype' value='typeset' />*\$*PublishStyle
>>    $PDFOptionsFmt</form>
>>I did redefine the $PublishTagFmt in config.php but that dont work, 
>>nothing changes. It only work if I change it in the code in 
>>publisher.php. Whay is this.

You need to set this variable above the place where you include the 
wikipublisher library extension.

>>and than add the $PDFCheckboxFmt option to the publish options in the 
>>Site.PublishTemplate. Is this somhow possible?
This is not a good idea, in my view. The PublishTemplate is only 
meaningful if the reader is publishing a pdf. So by the time you 
get to the template page, it knows that you are requesting a pdf, 
so it sets the format for you. Once you uncheck the pdf box, all 
the other options disappear and you just get the html publish 
template. So giving 'pdf' as an option on the publish template
would be confusing, I think.
>$PublishTagFmt seams not to change the pdfbuttons below a wikilist. 
>whats the name of the variable there?

You are talking about search results? You need to look in search.php, 
the FPLCustom function -- there are various FPLByGroup variables that 
turn search results into a form.

Hope this helps.
John Rankin

More information about the pmwiki-users mailing list