ChronoEngine.com homepage

Forums

Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.

Thank you for your support!

Download a file

Paolo.Ferlini 16 Jan, 2014
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
GreyHead 16 Jan, 2014
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
Paolo.Ferlini 16 Jan, 2014
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
GreyHead 16 Jan, 2014
Hi Paulo,

There's no easy way to use the File Downloader action with a variable file as far as I can see :-(

Bob
This topic is locked and no more replies can be posted.

2Checkout.com

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com