Hi !
I installed CCV5 on a website to display the content of a specific table. Everything is working fine except the fact that I can't find how to display the "Edit" and "Delete" links in the custom template I created.
I tried using the table display, the Edit link words, and so does my edit form created with ChronoForms. I tried all I could think of and all I could find to insert these buttons in my body code but nothing worked. It feels like the answer is right in front of me but I can't see it.
Could you help me on this ?
Thank you
I installed CCV5 on a website to display the content of a specific table. Everything is working fine except the fact that I can't find how to display the "Edit" and "Delete" links in the custom template I created.
I tried using the table display, the Edit link words, and so does my edit form created with ChronoForms. I tried all I could think of and all I could find to insert these buttons in my body code but nothing worked. It feels like the answer is right in front of me but I can't see it.
Could you help me on this ?
Thank you
Hi yosemite,
Please try this in your body code:
Regards,
Max
Please try this in your body code:
_EDIT_
Regards,
Max
Hi,
Thank you for your answer, but that was the first thing I tried and it only displays "_EDIT_" as text on the frontend. I even tried the connection on a fresh joomla installation to avoid any conflict with any other function of the website but it didn't work.
Here's what I have in my body code :
Thank you for your answer, but that was the first thing I tried and it only displays "_EDIT_" as text on the frontend. I even tried the connection on a fresh joomla installation to avoid any conflict with any other function of the website but it didn't work.
Here's what I have in my body code :
<div style="border-bottom:1px solid silver; padding:10px;">
<img style="float:left; border:1px solid silver;" src="/images/barriers/{Barrier.image}_big" />
<table style="float:left;" cellpadding="0" cellspacing="0" border="0">
<tr>
<td colspan="2" style="padding:3px 8px; font-weight:bold; font-size:150%;">{Barrier.reference}</td>
</tr>
<tr>
<td colspan="2" style="padding:3px 8px;">{Barrier.description}</td>
</tr>
<tr>
<td style="padding:3px 8px; font-weight:bold;">Company :</td>
<td style="padding:3px 8px;">{Barrier.company}</td>
</tr>
<tr>
<td style="padding:3px 8px; font-weight:bold;">Containment level :</td>
<td style="padding:3px 8px;">{Barrier.containment_level}</td>
</tr>
<tr>
<td style="padding:3px 8px; font-weight:bold;">Severity level :</td>
<td style="padding:3px 8px;">{Barrier.severity_level}</td>
</tr>
<tr>
<td style="padding:3px 8px; font-weight:bold;">Working width :</td>
<td style="padding:3px 8px;">{Barrier.working_width}</td>
</tr>
</table>
<div style="text-align:right; clear:left;">_EDIT_</div>
</div>
Did you add it to the "Columns list" box ?
_EDIT_:Edit
Yes, I added this to test the edit button in the table display (and this works) and did not remove it afterwards.
Ok, sorry, please try {_EDIT_}
Thought I already tried this but it looks like I didn't. It works, thank you very much !
So I understood but as far as my tests go that only puts up the word 'Edit'. I was hoping to replace that with an image of some sort.
Hi Nick,
In this case you will need to use the "HTML" box and build your own edit link, which is not very hard, just copy the link generated by default and replace the record id with:
use whatever model name and primary key you have!
Regards,
Max
In this case you will need to use the "HTML" box and build your own edit link, which is not very hard, just copy the link generated by default and replace the record id with:
{Model.id}
use whatever model name and primary key you have!
Regards,
Max
Thanks Max - I will try that. Two sort of related questions if I may.
1. What governs the order of fields in the table across the boxes?
2. What governs a choice of table versus custom options? Any guidelines that you might suggest?
Other than that - I progress. Very useful.
Regards
Nick
1. What governs the order of fields in the table across the boxes?
2. What governs a choice of table versus custom options? Any guidelines that you might suggest?
Other than that - I progress. Very useful.
Regards
Nick
Yes - that does it. How do I repeat a field other than reading it twice into the model? I had it in mind to show the record number and add an buttons to print and edit that same record.
Recpt| Ed |Prn
1071 | 🙂 |😃
using the appropriate icons of course.
Thanks for the help.
Nick
Recpt| Ed |Prn
1071 | 🙂 |😃
using the appropriate icons of course.
Thanks for the help.
Nick
Hi Nick,
The data is loaded and is retrieved using this formula:
You can reference the field as many times as you need, for example, either in the "Custom" body section, or in any function box, like HTML, images...etc
The order of fields matter only in the "Columns list" box and in the "Table" mode, but in "Custom mode there is no specific order of fields.
The main function of the "Columns list" is to define all the list fields in table mode, and to define any complex fields in "Custom" code, for example, if you want to display an image in "custom" mode, you can either code it directly in the "Custom" body box, or define it in the "Columns list" then use the field name in the "Images" box then use the field name directly (no image code) in the "Body" box.
I hope this helps!🙂
Regards,
Max
The data is loaded and is retrieved using this formula:
{Model.Field}
You can reference the field as many times as you need, for example, either in the "Custom" body section, or in any function box, like HTML, images...etc
The order of fields matter only in the "Columns list" box and in the "Table" mode, but in "Custom mode there is no specific order of fields.
The main function of the "Columns list" is to define all the list fields in table mode, and to define any complex fields in "Custom" code, for example, if you want to display an image in "custom" mode, you can either code it directly in the "Custom" body box, or define it in the "Columns list" then use the field name in the "Images" box then use the field name directly (no image code) in the "Body" box.
I hope this helps!🙂
Regards,
Max
This topic is locked and no more replies can be posted.
