Forums

Keeping same menu items sorting form data...?

murrayb 09 Nov, 2009
OK, this might not be possible, and I don't even know if I will be able to ask the question correctly, so bear with me!

I have a form which has, for example, a sort option on each column. I have added this form to a particular menu, and then assigned other modules to that menu item. HOWEVER, when I click on one of the sorts, the sorted form reappears but with all the items from the main index page, and not the items from the page it was published on.

e.g. My main page is for a sports complex and this page has generic menus covering the various activities in the complex. When you select an activity like 'Football' the page layout changes to be focussed on football, with a link back to the home page. I can browse to the fixtures list, which is a form, but when I select one of the column sorts the data/form is redisplayed but within the menus/modules/etc of the home/main page of the site.

For info, I am using the latest version of ChronoForms (updated last week) & the Beez template.

Thanks,

Brian.

p.s. I am now a licensed user as I use this great product so much!🙂
GreyHead 09 Nov, 2009
Hi Brian,

Not sure that I understand these corners of Joomla either :-(

How are you switching templates?

I think that you need the ChronoForms 'onsubmit' url to reflect the 'site area' parameter you have in your menu url. At present it won't do this, the url is fixed in the form 'index.php?option=com_chronocontact&chronoformname=form_name&task=send'

It would be useful if this worked better - perhaps in a future version; or it might be possible to do the change in a plugin.

Bob
murrayb 09 Nov, 2009
Hi Bob - Eureka! & thanks for the prompt response.

I have changed the Submit URL from
/index.php?option=com_chronocontact&chronoformname=FootyFixtureList
...to...
/index.php/FootballFixtures

This works for me because my form "FootyFixtureList" has hidden/post variables and therefore the URL remains the same regardless of the select 'sort' option.

For info for others:-
I have a form called "FootyFixtureList". This has a default sort and is accessed via the 'Fixtures' menu item (called 'FootballFixtures') when in the 'Football' section, and this section has bespoke menus. The 'Fixtures' menu item is a 'Chrono Forms' type.

When the users click on the column heading to sort the page it calls the same form with hidden/post parameters. The Submit URL was therefore:
/index.php?option=com_chronocontact&chronoformname=FootyFixtureList
As soon as the user applies a sort then the form (FootyFixtureList) appears within the layout of the main page for my Joomla site, and not within the layout of the Football section.

This is because the Submit URL has no associated menu items and therefore it gets published within the default homepage.

If you have parameters in your URL I don't think my solution will work...

Brian.
GreyHead 09 Nov, 2009
Hi Brian,

Excellent, I'm delighted that works for you.

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