Forums

Front Permissions - Edit View and Detail View?

taylor 12 Mar, 2009
Hi,

I've got me now viewed somewhat Chrono Connectivity, is a really powerful Joomla Componente.
However, I just hang on a problem, I can have on Front Permissions either a Edit View or Detail View template. Is there a method with which add both functions to my Grid List?

Example: name - mail - date - {edit_record} and costumize add {detail_record}?


Greetings,

Taylor
nml375 12 Mar, 2009
The edit part is well covered by CC, and you'll find a few examples in the forum.
The view part however, is not (to my best knowledge).

I believe you could accomplish the "view" part with CC + CF and a little creative coding.
Been thinking of something like this myself, but have not yet competed it.
Basic outline of the idea though:

Create your view-form in ChronoForms, and enable the Profile (chronoforms)plugin. Link the Profile plugin to your table (so we can fill in the form with proper data). Make sure this form has no emails setup and data storage is disabled.

Next, in your ChronoConnectitivity form, add something like this in the header:
<?
 $url = new JURI('path-to-chronoforms-form-here');
 $a = $url->getQuery(true);
?>


Next step, is to add the request parameter and value to the query (as setup in the Profile plugin). We'll need to to this for each row, so this goes into the body part:
<?

// Ugly hack here, hijack value from the current row. Expects the "Body Loop" setting to be "Inside Body Loop". 
 $a['id'] = $row->cf_id;

 $url->setQuery($url->buildQuery($a)); ?>

...
<a href="<? $url->toString(); ?>">View record</a>

Here, I chose to use 'id' as the parameter, and 'cf_id' as the corresponding table id. You'll need to update these corresponding to your database table and Profile plugin settings.
This topic is locked and no more replies can be posted.