List Manager Forum

Change File Name in the PDF export file

User moon_531 2012-07-05 16:14:05

Wen i export my data to PDF or XLS the default file name is LISTMANAGER.PDF/LISTMANAGER.XLS I want to change to anything.PDF/anything.XLS how can i do that? thanks

Moonsoft support 2012-07-05 18:10:41

Hello,

You can change the name of PDF file (in Joomla 1.5 version) at:

JOOMA/components/com_listmanager/views/listmanager/view.pdfr.php

search for:

JResponse::setHeader('Content-Disposition', 'attachment; filename=listmanager.pdf');

and change listmanager.pdf by the name of the file you want.


If you want to change Excel file name(joomla 1.5-2.5 versions), check:

JOOMLA/components/com_listmanager/views/listmanager/view.excel.php

search for:

JResponse::setHeader('Content-Disposition', 'attachment; filename=listmanager.xls');

and change listmanager.xls by the name you want.

Regards,

User moon_531 2012-07-06 01:56:47

Thank you!

...
Support/development 10 hours

Get a bigger amount of hours for more complex tasks and get a 10% discount

Buy now!
...
Support/development

Perfect for small code changes or to correct any bug at your site

Buy now!