Hi, 1) in print.xml, add your variable in the "<printdlg>" part with an HTML input tag 2) printdlg.phtml will create a "PrintXML_HTML" object (class defined in incphp/print/printxml.php) that will parse the XML file and add the desired field in the HTML print dialog 3) when you will send the print request, the page called is printmap.phtml. It will create a "PDF" class (defined in incphp/print/printpdf.php).
You have many solutions. 1) retrieve the value in printmap.phtml ($yourValue = $_REQUEST['.....'];) and change the "PDF" constructor with this new parameter (and write the code to use the value in "PDF" class!) 2) retrieve the value in printmap.phtml, add it to the "$pdfSettings" variable and write the code to use the value in "PDF" class 3) retrieve the value in "getPrintParams" function of incphp/print/printxml.php like it is done for printtitle and write the code to use the value in "PDF" class ... Good luck! Thomas Le 30/01/2011 05:01, John Beck a écrit : > Dear List, > > I want to pass a variable to the print.xml file to use as the print title. I > looked at the documentation but I am not sure how in xml you can pass through > the url or with php a variable to the $$printtitle variable. Can anyone > point me in the right direction. I would like to pass thru the URL a > variable that would be used as the Print Title on the PDF print page. Thanks > > JB > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ > pmapper-users mailing list > pmapper-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pmapper-users > > > ------------------------------------------------------------------------------ The modern datacenter depends on network connectivity to access resources and provide services. The best practices for maximizing a physical server's connectivity to a physical network are well understood - see how these rules translate into the virtual world? http://p.sf.net/sfu/oracle-sfdevnlfb _______________________________________________ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users