Hi All
Is it possible that insert a upload file in the content submit form that users can attach files to contents?
Thank you!
Is it possible that insert a upload file in the content submit form that users can attach files to contents?
Thank you!
Hi psamim,
You'd need to include a link to the uploaded file into one of the content text areas.
If I remember correctly someone posted how to do this a month or two ago.
Bob
You'd need to include a link to the uploaded file into one of the content text areas.
If I remember correctly someone posted how to do this a month or two ago.
Bob
Thank you for your response.
I'm not sure I could say what I wanted. I can make a form to attach files and send it as email but I need a form to add attachments to articles.
I found something I think you meant this:
http://www.chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&f=2&t=13056
That was nice! How can I add the link to the content text?
Thank you again!
I'm not sure I could say what I wanted. I can make a form to attach files and send it as email but I need a form to add attachments to articles.
I found something I think you meant this:
http://www.chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&f=2&t=13056
That was nice! How can I add the link to the content text?
Thank you again!
I added a "upload file" to the content submit package. It uploads files and posts article, bt how can I make it to insert a link to the uploaded file inside the article?
Hi psamim,
you may grab the file link as in the other post and then use the code below to attach the file link at the bottom of the article:
the code above goes in the onsubmit after email box!
Cheers
Max
you may grab the file link as in the other post and then use the code below to attach the file link at the bottom of the article:
<?php
$file_link = 'http://www.domain.com/components/com_chronocontact/uploads/form_name/'.JRequest::getVar("file_field_name");
JRequest::setVar("fulltext", JRequest::getVar("fulltext")."<br><br>".$file_link);
?>
the code above goes in the onsubmit after email box!
Cheers
Max
Thank you very much!
The only problem is that numbers are in my default language, Farsi, so the address is incorrect. I don't know what to do but I will search for a solution. Thank you again!
The only problem is that numbers are in my default language, Farsi, so the address is incorrect. I don't know what to do but I will search for a solution. Thank you again!
Hi,
what does this mean ?
Max
The only problem is that numbers are in my default language,
what does this mean ?
Max
I mean the form saves the file as : 20090405sample.zip
But when saved the numbers are shown in Arabic, so the link does not work.
But when saved the numbers are shown in Arabic, so the link does not work.
Hi psamim,
Ok, in RC5.1 there is a variable to change the file name under the file uploads tab, change it so that it doesn't include the date and this will solve your problem, make sure you replace it with something to make the file name unique though.
Regards,
Max
Ok, in RC5.1 there is a variable to change the file name under the file uploads tab, change it so that it doesn't include the date and this will solve your problem, make sure you replace it with something to make the file name unique though.
Regards,
Max
This topic is locked and no more replies can be posted.