Forums

Attach file Field linkable

nio2010 21 Jan, 2014
hi, i need to insert a linkable field to the uploaded file from the form.

this is the table: http://www.metricell.it/index.php?option=com_chronoconnectivity&chronoconnection=Utenti
i need to showing a linkable name file in the "allegato" field.

please help me to find a solution, i didn't found a faq answer.

thank you
Mauro Tardelli
Max_admin 22 Jan, 2014
Hi Mauro,

What's the name of the allgato column in your connection configuration ? if its "allegato" then you can use this in the linkable fields box:
allegato:http://folder_files_link/{alegato}


Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
nio2010 23 Jan, 2014
hi, your code not work.
this is the url generated from your code in a linkable field.
http://www.metricell.it/component/chronoconnectivity/Utenti/http-/www.metricell.it/mauro2/20140121142536_targhette.JPG.html

then i send you the configuration panel, maybe i wronge something.

thank you
Mauro
Max_admin 25 Jan, 2014
Hi Mauro,

Then you will need to edit the record value, here is how:

#1- enter "front" at the "Auto list row event" field.
#2- associate a form with your connection under the "Frontend editing" tab.
#3- in that form create a new "front" event.
#4- add this code to the new "front" event in your form using a "custom code" action:

<?php
$form->data["row"]["allegato"] = "path to files".$form->data["row"]["allegato"];


I hope this works for you, there have been few early posts here on the same subject as well.

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
maurizio.larocca 31 Jan, 2014
Hello Max,
I still have some issue to load file from my folder.
I put all files into a folde named telecomitali under the root folder. and I tried to pu it in planty way to my chronoconnectivyti but the address that comes out from your code i alwyas wrong.
It add always on top of mine the kink to the previous page:

http://www.metricell.it/component/chronoconnectivity/Utenti/telecomitalia/20140121142536_targhette.JPG

I would like, instead of this to point just to my folder: is it possible?
Another point in your code is also that in the table I build up, in the allegato record, there's always teh folder path.
Could be possible to have jus filename also without extension???
[attachment=0]SnapShot_issue.jpg[/attachment]

Thx a lot in advance,

Mauro
Max_admin 01 Feb, 2014
Hi Mauro,

Is your connection too complicated ? if not then I suggest that you read the new Connectivity v5 tutorials and do it using CC v5, it should be very easy to do what you need, you just need to write this in the "Link" box:

Model.allegato:LINK_TO_FOLDER/{Model.allegato}


You will have many new features and its generally easier to use with better interface!

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
maurizio.larocca 03 Feb, 2014
Hello,
it seems to be that Chronoforms v5 has a bug or, more probably, I'm doing some mistake.
Wheen I go to enter the upload path into the record I write documents/telecomitalia/ but the file always go into documents and it is named, by the form, like telecomitalia2014.....

Is this my mystake or a bug of the form? 😲
FYK, I abvoid the issue just adding a space after the folder: docuyments/telecomitalia/"space"

Thx a lot,

Maurizio
Max_admin 04 Feb, 2014
Hi Maurizio,

Yes, unfortunately this is a bug, please check here:
http://www.chronoengine.com/forums/posts/t94155/p323696.html#p323696

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.