Forums

Add ChronoConnectivity to article?

gwza 18 May, 2010
Can you add a ChronoConnectivity to an article similar to the way you do a ChronoForm (i.e using something like {chronocontact}form_name{/chronocontact} in the HTML)?

The reason I'm asking is that I want to list a number of items from a table in the database(for example a number of pictures submitted by users using ChronoForm) and then have a visitor vote for one of these items via another form at the end of the page by entering the picture number and his e-mail address (which will then be recorded to a separate voting table in the database and will be authenticated based on the e-mail address).

I tried to add {chronocontact}form_name{/chronocontact} to the ChronoConnectivity Footer but it does not work.

I assume you would need a Plugin similar to chronocontact.php?

Any other way to do this?

Regards
Gert
GreyHead 18 May, 2010
Hi gert,

There is no plugin for ChronoForms but you may be able to use a General Purpose plugin to get it to work. Someone posted today about using one to get ChronoConnectivity to display in a Module.

Bob

PS You could also do this whole page with ChronoConnectivity adding the text and form in the header or footer boxes and putting a checkbox or link by each image.
gwza 20 May, 2010
Hi Bob,

thanks for the reply. I like the idea in your PS.

If I may ask - what code would i need to add to the body in order to include a checkbox/radio button per image?

THanks

Gert
GreyHead 22 May, 2010
Hi gwza,

Just the normal HTML but with some entry to identify the record that it belongs to. Here's a link I used to connect to an edit form recently
<a href='index.php?option=com_chronocontact&chronoformname=add_user&task=edit&cf_id={cf_id}'>edit</a>
For a checkbox I guess it would be something like
<input type='checkbox' name='vote[]' id='vote{cf_id}' value='{cf_id}' />

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