CC custom list link structure

marcinwolejko 29 Aug, 2013
I've been looking everywhere and tried a variety of options; however, I still cannot make it work.

What I am trying to do is to link a field in CC to a CF form other than the one set as a default form for editing.

What I have is a listing with a various inputs regarding our clients.

People working in my company fill in the data via a CF form and later add some more info using CC+CF.
I have two db tables - one with the inputs made by my co-workers and the other one with client and their details (price lists etc.)

What I wanted to achieve is to have one field - Klient ({epi.zleceniodawca})link to a form with client's details (preferably open it in a lightbox).
[attachment=0]tabela.jpg[/attachment]

The code I am using in the custom listing is as follows
<td style="border: 1px solid #e7e4e4;"><a <a class="modal" href="index.php?option=com_chronoconnectivity&view=connection&Itemid=136task=cc_edit_data&cb=<?php echo $FIRMY.cf_id;?> rel="{handler: 'iframe', size: {x: 1000, y: 310}}"> {epi.zleceniodawca}</td>


The form with clients' details has its model ID - FIRMY.

SEF is switched off and the connection with clients details has na ID 136 (as shown in the code).

Whatever option I am using to create the link forwards me to the Clients listing, however it wont show the details and the url looks as follows:
index.php?option=com_chronoconnectivity&view=connection&Itemid=136task=cc_edit_data&cb=%20rel=

As you can see there should be something after the last "=" however I cannot make it work.

Can someone please help me in the struggle 'cause I'm losing my mind over that...😢
marcinwolejko 29 Aug, 2013
OK. One step forward:
this link:
a href="index.php?option=com_chronoconnectivity&view=connection&Itemid=136&task=cc_edit_data&cb=FIRMY.cf_id">{epi.zleceniodawca}


Took me to the right place. I can see the right connection and the form. HOWEVER, the details remain empty which means I still cannot get the right id.

The browser link looks as follows
mydomain.com/index.php?option=com_chronoconnectivity&view=connection&Itemid=136&task=cc_edit_data&cb=FIRMY.cf_id


and I believe the FIRMY.cf_id should be an id (cf_id) number, which I cannot achieve.
GreyHead 02 Sep, 2013
Hi marcinwolejko,

at the end of the URL you have &Itemid=136task=cc_edit_data&cb=<?php echo $FIRMY.cf_id;?>. There's an & missing in this part &Itemid=136&task=cc_edit_data

For the cf_id either &cb={FIRMY.cf_id} or &cb=<?php echo $row['FIRMY']['cf_id']; ?>

Bob
marcinwolejko 09 Sep, 2013
How stupid of me.
I followed the FAQ yet again and I realised I forgot to add the multitable relation. Now it works perfectly! :mrgreen:
Thanks a lot.
This topic is locked and no more replies can be posted.