Hey,
I was wondering if i could use chronoform to insert articles?
The idea is that our webusers can add a file to the website with some predefined fields.
Of course, this can be done perfectly with chronoform.
But the trick is that our webusers should be able to see all 'records' in a nicely organised way.
So I was thinking of something simular like an article in a group...
ps the idea is that we offer a kind of 'roadbook' part.
Where users can fill in some data like:
[list]
Name
title
description
distance
Region
time
GPS file
[/list]
I was wondering if i could use chronoform to insert articles?
The idea is that our webusers can add a file to the website with some predefined fields.
Of course, this can be done perfectly with chronoform.
But the trick is that our webusers should be able to see all 'records' in a nicely organised way.
So I was thinking of something simular like an article in a group...
ps the idea is that we offer a kind of 'roadbook' part.
Where users can fill in some data like:
[list]
[/list]
Hi brononius,
ChronoForms v4 has a Submit Article action in the Joomla actions group. It's a little limited in functionality but will do what you describe.
The trick is to use Custom Code action before the Submit Article to build the article content from the form inputs and add the result to $form->data['introtext'] so that it will be saved in the article body.
Bob
ChronoForms v4 has a Submit Article action in the Joomla actions group. It's a little limited in functionality but will do what you describe.
The trick is to use Custom Code action before the Submit Article to build the article content from the form inputs and add the result to $form->data['introtext'] so that it will be saved in the article body.
Bob
Sounds promising...
I'll see if i can figure out how i can use the custom code and so.
Any examples/docs how i can build the content with several form fiels? :$
At least i know i'm going into the right direction.😉
I'll see if i can figure out how i can use the custom code and so.
Any examples/docs how i can build the content with several form fiels? :$
At least i know i'm going into the right direction.😉
Poeweee, GREAT TOOL!!!
With another topic/answer of you, i found a lot of info:
I've added following in a custom code:
And in the fulltext of the action 'submit article', i've added 'fulltext' as value...
Now some finetuning, extra fields...
Thanks!!!
With another topic/answer of you, i found a lot of info:
I've added following in a custom code:
<?php
$order = array("\r\n", "\n", "\r");
$replace = '<br />';
$form->data['fulltext'] = "
{$form->data['roadbook_omschrijving']} <br><br>
<h4>Extra details</h4>
Start in de regio:<b> {$form->data['roadbook_regio']} </b><br>
Totaal aantal km van de rit:<b> {$form->data['roadbook_km']} </b><br>
Type rit:<b> {$form->data['roadbook_typ']} </b><br>
<br><br>
<h4>Eventuele opmerking van de auteur</h4>
<b>{$form->data['roadbook_opmerking']} </b><br><br>
";
?>
And in the fulltext of the action 'submit article', i've added 'fulltext' as value...
Now some finetuning, extra fields...
Thanks!!!
You've got no idea how good...😉
Once it's completely done, i'll post some printscreens of the form, and of the results.
I sadly can't give you the link, since it's only for our sitemembers...
ps Maybe it's an idea to put on your site a kind of 'showcase' categorie? And of course, this is a predefined form by chronoforms... :wink:
Once it's completely done, i'll post some printscreens of the form, and of the results.
I sadly can't give you the link, since it's only for our sitemembers...
ps Maybe it's an idea to put on your site a kind of 'showcase' categorie? And of course, this is a predefined form by chronoforms... :wink:
This topic is locked and no more replies can be posted.