Forums

Breadcrumbs for post submit page

Growltiger 14 Mar, 2008
We have a registration form that have some PHP that execute on pushing the submit button, displaying the results of the form. It works well

On the form the breadcrumbs displays the menu title which is fine

However it does not keep the same title once the submit is processed the page is changes and We cannot figure out how to insert a name into the breadcrumbs

Any help much appreciated
GreyHead 14 Mar, 2008
Hi Growltiger,

I'll take a look but it may not be for a day or two.

Bob
Max_admin 15 Mar, 2008
Hi,

At the Action URL field, paste the same form action URL generated but add to it at the end : &Itemid=##, where ## is the actual form itemid you can see when you view the form!

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
gporterfield 15 Mar, 2008
Max:

Great suggestion, and I am sure it will work to solve the same problem for my forms but I ran into one problem. The Action URL field truncated the string I tried to put in.

The URL I came up with based on your instructions was:
http://mylbox/joomla/index.php?option=com_chronocontact&task=send&chronoformname=prayer_request&Itemid=56

When I pasted this into the Action URL field, it truncated the last 3 characters.

Can this field be made to accept a longer string?

George<br><br>Post edited by: gporterfield, at: 2008/03/14 23:56
Max_admin 15 Mar, 2008
Hi George,

Add this piece only and it will work :

index.php?option=com_chronocontact&task=send&chronoformname=prayer_request&
Itemid=56

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Growltiger 15 Mar, 2008
I tried to do what you suggested but we didn't have any code in the Submit URL Field to begin will and it does not seem to have solved the trouble we are having - we still have no breadcrumbs in the post submit page which just to be clear is being generated by PHP code inserted in the "On Submit code" box

I will try and put up a link but the form is live and active so I will need to make a copy.
gporterfield 15 Mar, 2008
I just tried it with the shorter URL as suggested in response to my earlier post and it WORKS!

Here are the steps I used (modified by the guidance above):
1. In my browser, went to the form on the web site and noted the Itemid at the end of the URL.
2. Submitted the form and went to the response page.
3. Copied part of the URL from the browser URL address text box (where you type in where you want to go). All you need to copy is the part starting with index.php to the end.
4. Paste that information into Submit URL ("form action URL") on the Form URLs tab plus the Itemid=xx using the number noted in step 1.
5. Save.
6. Test.

After some additional testing on another form, I found that the basic form must have a published menu item. (Otherwise there is apparently no information for Joomla to use for the breadcrumb entry). Since my second form is not in my menu, this is a problem for me.

Breadcrumb fixed on one form, still broke on the second form. More brainstorming required.

Thanks all,
George

Post edited by: gporterfield, at: 2008/03/15 03:38

Post edited by: gporterfield, at: 2008/03/15 03:49<br><br>Post edited by: gporterfield, at: 2008/03/15 03:49
Max_admin 15 Mar, 2008
Hi George,

Thanks for providing this helpful info for everyone here, exactly as you said, unless you have a menu item assigned to the form then Joomla will know no itemid for this form and so no breadcrumbs! just add the form to any temporarily menu!

Cheers,

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Growltiger 15 Mar, 2008

Hi George,

Thanks for providing this helpful info for everyone here, exactly as you said, unless you have a menu item assigned to the form then Joomla will know no itemid for this form and so no breadcrumbs! just add the form to any temporarily menu!

Cheers,

Max



We have the search engine friendly urls turned on so:

a) cannot see the itemid easily - think it is in the top left of menu item

b) don't have the .htaccess file enabled so all links are prepended with /index.php/ which makes the string that you suggested too long to work in our case.
Max_admin 15 Mar, 2008
Hi,

a) get the itemid from the menu items page, when you create any menu item you can see the item id just beside it!

b) not sure how your links looks with the SEF but you still have your way, if you are using a SEF component then store the URL as a custom one or just use it as its!

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
gporterfield 15 Mar, 2008
Max:

I ended up creating a menu called "Hidden Menu." It has copies of the menu links from the main menu that would lead to the form if I wanted to include the form on the menu. This "Hidden Menu" (as the name implies) is not displayed in any positions, but it still provides the info for the breadcrumb.

George
Growltiger 16 Mar, 2008
Not sure that I get the picture here sorry for being slow

Joomla treats menu items as pages - I can create hidden menu items that link to articles and they show up fine if the menu is not published but I cannot create links to external links or page aliases. These will not show up unless the menu is published and you click on them. I believe this is because they are NOT actually pages but links in Joomla's mind.

So I cannot make joomla get those links to point at anything with any link not just chronoforms.

I also tried using the URL with Itemid attached in the submit URL box and am still getting no joy.

I have tried entering the URL that the orginal form is at and that doesn't help either.

Once again i apologise for being behind the eightball on this
Max_admin 16 Mar, 2008
Hi George,

You mean that this didn't work :

I ended up creating a menu called "Hidden Menu." It has copies of the menu links from the main menu that would lead to the form if I wanted to include the form on the menu. This "Hidden Menu" (as the name implies) is not displayed in any positions, but it still provides the info for the breadcrumb.



??

Actually it should, the new menu "module" should be published but make it published at any non existing position, like userx for example assuming that your template does NOT have the userx position, let me know!

Cheers,

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
gporterfield 18 Mar, 2008
Max:

The hidden menu option DID work for me. I just created the menu in the Menu Manager, but I did not assign the menu to a module in Module Manager. That way I did not even have to make-up a unused position.

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