Chronoconnectivity v5 Edit button in custom display

yosemite 08 Dec, 2014
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
Max_admin 09 Dec, 2014
Hi yosemite,

Please try this in your body code:
_EDIT_


Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
yosemite 10 Dec, 2014
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 :
<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>
Max_admin 10 Dec, 2014
Did you add it to the "Columns list" box ?

_EDIT_:Edit
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
yosemite 11 Dec, 2014
Yes, I added this to test the edit button in the table display (and this works) and did not remove it afterwards.
Max_admin 11 Dec, 2014
Answer
1 Likes
Ok, sorry, please try {_EDIT_}
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
yosemite 12 Dec, 2014
Thought I already tried this but it looks like I didn't. It works, thank you very much !
NickOg 19 Jan, 2015
Can this be done with Table display in some way?
yosemite 19 Jan, 2015
You just need to add this to the "Column list" box :

_EDIT_:Edit
NickOg 19 Jan, 2015
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.
Max_admin 19 Jan, 2015
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:
{Model.id}


use whatever model name and primary key you have!

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
NickOg 19 Jan, 2015
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
NickOg 19 Jan, 2015
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
Max_admin 20 Jan, 2015
Hi Nick,

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
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
dadoonan 04 Feb, 2015
See http://www.chronoengine.com/forums/posts/f12/t98684/form-not-found-or-is-not-published.html for a similar issue I'm having.

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