Forums

SEF on mod_chronocontact and Multi Page

bwi 27 Jul, 2009
I'm displaying a short form firstname, lastname, email on the side bar of several pages using mod_chronocontact - the first form submits to the second 'longer' form, etc...

I've been trying to find a way to give the Multi Page url a search engine friendly url rather than index.php?option=com_chronocontact&task=send&chronoformname=Motherform.

I've tried sh404SEF, to which I've been able to create an sef for the Motherform, but it doesn't work as desired from the mod_chronocontact pages. Can someone give any input?

I've tried an if statement on the action, giving the action the sef url (below) but this simply opens the first form of the Multi Page form process.

if($MyForm->formrow->name == "Motherform") {
$actionurl = '/Motherform.html';

Thanks!
nml375 27 Jul, 2009
Hi,
My first thoughts would be to implement a custom router.php file with CF. This would have to care for all CF-form fields (task, chronoformname, action, cfformstep and possibly others). Since this would affect all forms, care would have to be taken to support most CF-fields without breaking any plugins.

I'm not familiar with sh404SEF, so I cannot advice if/how you could create SEF-URLs with this extension for CF though. You would, however, have to figure a way to retrieve the cfformstep value from the url, and set it as a POST-style form data (JRequest::setInt('cfformstep', thevalue);)

/Fredrik
bwi 29 Jul, 2009
Hey thanks for your advice, I'll see what I can do with the POST-style form data (JRequest::setInt('cfformstep', thevalue);)
This topic is locked and no more replies can be posted.