Hi All,
i'm using with satisfaction Chronoform for my site. Now i've a problem :
i'm trying to autodownload a file when the user press a button.
The action of the button is to activate a new window on the same form with the event "downlod". This event contains the php code for reading the file and for echoing the contents.
my problem is related to the fact that if i use the option "format=raw" in the call then the result is a completely blank download file with only one row containing "Cronoform", if i omit the option then the text is included but the download file containd the includes and the whole structure of joomla and Chronoform.
i've googoled a lot before to ask you a suggestion without any result.
Can you suggest me how to proceed ?
tks
Paolo
i'm using with satisfaction Chronoform for my site. Now i've a problem :
i'm trying to autodownload a file when the user press a button.
The action of the button is to activate a new window on the same form with the event "downlod". This event contains the php code for reading the file and for echoing the contents.
my problem is related to the fact that if i use the option "format=raw" in the call then the result is a completely blank download file with only one row containing "Cronoform", if i omit the option then the text is included but the download file containd the includes and the whole structure of joomla and Chronoform.
i've googoled a lot before to ask you a suggestion without any result.
Can you suggest me how to proceed ?
tks
Paolo
Hi Paolo,
Please try using &tmpl=component. That should hide the template (if the template is well-behaved).
You can possibly also use the Download File action in CFv4 to handle this.
Bob
Please try using &tmpl=component. That should hide the template (if the template is well-behaved).
You can possibly also use the Download File action in CFv4 to handle this.
Bob
Hi Bob,
many thanks for your suggestion and for the prompt replay.
I've not take in consideration the Download file action because the file name is different (based on a radio button in the main form ).
Pehaps can you suggest me how to solve this issue with the Download File component ?
thanks
paolo
many thanks for your suggestion and for the prompt replay.
I've not take in consideration the Download file action because the file name is different (based on a radio button in the main form ).
Pehaps can you suggest me how to solve this issue with the Download File component ?
thanks
paolo
Hi Paulo,
There's no easy way to use the File Downloader action with a variable file as far as I can see :-(
Bob
There's no easy way to use the File Downloader action with a variable file as far as I can see :-(
Bob
Ok,
thanks for your time.
:-)
paolo
thanks for your time.
:-)
paolo
Hi,
Just write
For editing the download file parameter using php:
http://www.chronoengine.com/faqs/53-cfv4/cfv4-file-uploads/2630-how-can-i-upload-files-under-some-users-folder.html
Just write
exit;
after your code to terminate any further processing, you may also use:$mainframe = \JFactory::getApplication();
$mainframe->close();
For editing the download file parameter using php:
http://www.chronoengine.com/faqs/53-cfv4/cfv4-file-uploads/2630-how-can-i-upload-files-under-some-users-folder.html
This topic is locked and no more replies can be posted.