Buy Now
Sign in

Attach file Field linkable

nio2010 , January 21 2014
N
nio2010
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
admin
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
If your main question got answered then please mark the answer using the button!​
​Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
N
nio2010
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
Attachments
metricell.png
metricell.png
(147.2 KiB)
1166 Downloads/Views
admin
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
If your main question got answered then please mark the answer using the button!​
​Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
M
maurizio.larocca
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???
SnapShot_issue.jpg

Thx a lot in advance,

Mauro
Attachments
SnapShot_issue.jpg
SnapShot_issue.jpg
(197.97 KiB)
1014 Downloads/Views
admin
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
If your main question got answered then please mark the answer using the button!​
​Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
M
maurizio.larocca
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
admin
Hi Maurizio,

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

Regards,
Max
Max
If your main question got answered then please mark the answer using the button!​
​Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!