Page 1 of 1

Sorting of the menu items

Posted: 02 Aug 2017, 14:44
by cruisi
Hello,
is it possible to sort the menu items in the backend. I forgot to list one item and now it is not possible to place it for example at the second place.
When i reorder the items in the backend, nothing changes at the frontend.
I work with the SPPageBuilder.
Best regards
cruisi

Re: Sorting of the menu items

Posted: 03 Aug 2017, 18:05
by Jan
Hi, when you reorder the items in administration, you should see the reordered items in frontend. :idea: Do you use some cache on your site?

See image:
Image

Jan

Re: Sorting of the menu items

Posted: 04 Aug 2017, 11:10
by cruisi
Hello and thanks for your answer,

unfortunately it doesn't work, although there is no caching activated - not in the Joomla configuration and not in the configuration of the component. I have implemented the menu with the SPPage Builder, but although when i create a new page after i reorderes the menu, the page will display the old order of the menu items.
Do you have another idea?

Regards

Re: Sorting of the menu items

Posted: 04 Aug 2017, 12:26
by Jan
Hi, which version do you run? Really no idea, as this ordering works from beginning of the component, and until now I get no info that it does not work - testing now on 3 different servers, without any problem. It is just a basic feature. Do you use some template which can override component outputs?

Jan

Re: Sorting of the menu items

Posted: 08 Aug 2017, 14:19
by cruisi
Hi Jan and thanks for your answer,
these are my system infos:
- Phoca Restaurant MenĂ¼ 3.1.0
- Joomla 3.7.4
- PHP 7.0.20
- Template: https://themeforest.net/item/joomla-res ... a/13548747 (this Template works with the SPPage Builder and with a special plugin for your Component, to implement the menu easy with the SPPage Builder)
I also have asked some minutes ago the support of the template.

Regards,
Denis

Re: Sorting of the menu items

Posted: 12 Aug 2017, 00:03
by Jan
Hi, the important information should be:
Does this template override somehow the component (Joomla! templates can override Joomla! components - so when component has some view, such can be created in the template and then the view of the template is used)

The next problem can be a cache, you will reorder the items but in the frontend, the outcome is still the same as it is loaded by cached page :idea:

Jan

Re: Sorting of the menu items

Posted: 10 Oct 2017, 21:47
by Giro
Hi,

problem is in SP Page builder. Find the file templates\...\sppagebuilder\addons\restauran_menu\tpl\dotted.php. Change the line 23-24:

. ' WHERE `pmi`.`catid` = ' . $id
. ' ORDER BY ordering ASC';

Than its works.

If you use other style of menu you must change default.php, but I dont know the line.

Giro

Re: Sorting of the menu items

Posted: 11 Oct 2017, 11:30
by cruisi
Hello Giro,
you made my day - thank you very much. That was the perfect solution, also in my file it was the line 12 instead of 23.

Best regards and thanks again,
Denis

Re: Sorting of the menu items

Posted: 14 Nov 2017, 11:56
by cruisi
Hello and also thanks for your answer. But the solution from Giro works now perfectly for me. But i will try your solution also.

Best regards,
cruisi

Re: Sorting of the menu items

Posted: 06 Oct 2018, 13:36
by Jan
Ok