Forums

About the syntax inside the Front end list custom body part

christones 07 Aug, 2014
Hello Sir,

I have additional two problems :
1. I am trying to display my database content via the syntax that considers each database table as an array with the model id considered to be the name of the array. But it is not working . This the syntax
<?php echo $proj['nom'] ?>

2. i am also trying to display data that proceed from joint tables in one-to-many relationship. How do we do that ?
The last point is a remark about the $MyRow-> fieldname tip you have given on the forum's front end .I have trueied it on my Chroncooncetivity but it has not displayed the table's field.
GreyHead 09 Aug, 2014
Hi christones,

How and where have you defined $proj? That's not something I recognise from CC.

Similarly, exactly what code are you using with $MyRow->fieldname and where is it?

Bob
christones 12 Aug, 2014
Hi GreyHead,
proj is the model id of my main chronoconnectivity and the code itself is written in the body section of the front end list setting. I was told that instead of using
{proj.fieldname}
i can use but
$proj[fieldname]
to access a fieldname kind of value of the correspondong table in the database.
Max_admin 13 Aug, 2014
Please try:
$row['proj']['fieldname']


If your connection is still new or you can't get it working then you can try CCv5 which can be installed with v4 on the same site just fine.

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.