Forums

ChronoConnectivity v5 view image

angykristal 15 Aug, 2014
Hello everyoneπŸ™‚

I uploaded a photo with chronoform v5 in the path of uploads

http://mionomedominio.com/components/com_chronoforms5/chronoforms/uploads/nome_form



and I entered in field image frontlist.

I state that in ChronoConnectivity v5 I have already 'also added the model called "lnt" and related fields in the field list column

lnt.nomefields1: title
lnt.image: logo

Finally, I put the names in the field of logo and title fields always in frontlist.

I have already 'checked that the image has been loaded in the correct directory and should appear in the display table but unfortunately it appears only an empty square, the field title reads it perfectly.

😟 Someone can 'help me? where am I wrong? : o
thanks in advance and good mid-August: D
GreyHead 15 Aug, 2014
1 Likes
Hi angykristal,

If you look at the page source where the empty square appears what HTML is there?

Bob
angykristal 15 Aug, 2014
hi bob
thanks for your attention

appear this link for image : mionomedominio.com/components/com_chronoforms5/chronoforms/uploads/new_team

set table db create in chronoforms and save image in file2
model is lnt

set frontlist :

column list :
lnt.text1:team
lnt.file2:logo

html: ? nothing but test is code:
lnt.file2:<img src="lnt[file2]"/> ( idem not appear image)

images:
lnt.file2:http://nomedominio.com/components/com_chronoforms5/chronoforms/uploads/nome_form

fields:
text1
file2

--------------
link direct file image function:
http://nomedominio.com/components/com_chronoforms5/chronoforms/uploads/nome_form/myimage.jpg

πŸ™„ angy
angykristal 16 Aug, 2014
hi bob
i'm sorry for my last post confused :? but 😲

source html is appear in edit:
<td class="td-lnt.file2" style=""><img src="http://miodominio/components/com_chronoforms5/chronoforms/uploads/nome_form/" /></td>

thanks anticipation greats
angykristal 17 Aug, 2014
Answer
:D hi bob -

hello everyone

πŸ˜‰ I finally solved using the body of the custom, after taking a few examples of the v4 version, this way I can also customize the list, thanks a lot of the great fantastic tool.πŸ˜€ I solved thanks to some threads that showed the difference of the fields to be included in a different way from v4 :

<?php
$alfa= $row['lnt']['file2'];
$beta='<img src="';
$delta='http://miodominio/components/com_chronoforms5/chronoforms/uploads/nome_form/';
$teta='" />';
echo $beta.$delta.$alfa.$teta ;
?>


πŸ˜€ πŸ˜€ πŸ˜€

thank you very much
πŸ˜€ angy
GreyHead 20 Aug, 2014
Hi angy,

Well done - that's good.

Here's a way to code it that is a bit easier to read:
<?php
$path='http://miodominio/components/com_chronoforms5/chronoforms/uploads/nome_form/';
$file= $row['lnt']['file2'];
echo "<img src='{$path}{$file}' />";
?>

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