I have a page, that has an article with dynamic content - the article itself contains PHP fields that puts there content debending previous choises by user. In other words, some of the content is NOT at the jos_content database for that article.
Now, I have included a short form to that page by chronoforms mambot. To the form I'd need values from the article so that they would be included in the email, telling what the user was seeing. Now, these values are those dynamic ones, so they cannot be read from database.
Is there a possibility to input some user defined data to a form by the mambot? I mean something like this:
and then in form code parse them i.e. like
I wrote 2 different possibilities for both.. anyway, is this kind of possibility allready implemented - if not this is a feature request..π
Or is there some other way to get data passed to a form?
Now, I have included a short form to that page by chronoforms mambot. To the form I'd need values from the article so that they would be included in the email, telling what the user was seeing. Now, these values are those dynamic ones, so they cannot be read from database.
Is there a possibility to input some user defined data to a form by the mambot? I mean something like this:
{chronocontact myDynValue1=123, myDynValue2=<?PHP echo MyValue; ?>}mylittleform{/chronocontact}
and then in form code parse them i.e. like
<input type="hidden" value="{inputted1}">
<input type="hidden" value="<?PHP echo $inputted2; ?>">
I wrote 2 different possibilities for both.. anyway, is this kind of possibility allready implemented - if not this is a feature request..π
Or is there some other way to get data passed to a form?
Hi seppo,
At present the ChronoForms Mambot/Plugin doesn't take parameters and there is no mechanism in Joomla to add them.
You could perhaps write form html that recognises the page it's on and then looks up the data in the database table; or it might be easier to turn the whole page into a form??
Not a trivial problem :-(
Bob
At present the ChronoForms Mambot/Plugin doesn't take parameters and there is no mechanism in Joomla to add them.
You could perhaps write form html that recognises the page it's on and then looks up the data in the database table; or it might be easier to turn the whole page into a form??
Not a trivial problem :-(
Bob
Hi Bob,
And thanks for very propmt reply!
I got my problem rounded as I had one needed value at url, so I just used GET-variable at the form. Anyway, I can imagine running into same kind of needs in future, when I have I can't get the values like that..
Joomla does not provide mechanism for those parameters? I haven't really got into that so it might be so, but they use the parameters in several other plugins, i.e. googlemaps and if I recall right, also simpleimagegallery used those. Might be thought that it is their own mechanism of some kind.
Anyway, I understand the problem is not trivial.. maybe someday there comes more aid from joomla side.. I'll leave this as feature request for the time it can be easily implemented.π
And thanks for very propmt reply!
I got my problem rounded as I had one needed value at url, so I just used GET-variable at the form. Anyway, I can imagine running into same kind of needs in future, when I have I can't get the values like that..
Joomla does not provide mechanism for those parameters? I haven't really got into that so it might be so, but they use the parameters in several other plugins, i.e. googlemaps and if I recall right, also simpleimagegallery used those. Might be thought that it is their own mechanism of some kind.
Anyway, I understand the problem is not trivial.. maybe someday there comes more aid from joomla side.. I'll leave this as feature request for the time it can be easily implemented.π
Hi seppo,
the line above will be inside a content item, how the PHP tags are going to run there ? I think you must have another extension like Jumi to run this first!
it will be easier to just do the dynamic values in the form using some way like the GET method you used!π
Regards
Max
{chronocontact myDynValue1=123, myDynValue2=<?PHP echo MyValue; ?>}mylittleform{/chronocontact}
the line above will be inside a content item, how the PHP tags are going to run there ? I think you must have another extension like Jumi to run this first!
it will be easier to just do the dynamic values in the form using some way like the GET method you used!π
Regards
Max
Yes, in the content item I used sourcerer (like Jumi but better for my needs) to put the PHP-code there.
At this problem it was enought to use GET-values, but there might come situation when this is not possible - i.e. some ajax-powered article page or similar, where the values does not come from GET or POSt, but are generated by the choices on that articlepage.. but well, maybe if the implementation of those attributes comes handy in future Joomla versions, they could be implemented..
At this problem it was enought to use GET-values, but there might come situation when this is not possible - i.e. some ajax-powered article page or similar, where the values does not come from GET or POSt, but are generated by the choices on that articlepage.. but well, maybe if the implementation of those attributes comes handy in future Joomla versions, they could be implemented..
Ok, I will add them to the next mambot release if possible!
Regards
Max
Regards
Max
This topic is locked and no more replies can be posted.