Sorting of the menu items

Phoca Restaurant Menu - restaurant menu manager
cruisi
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 02 Aug 2017, 14:40

Sorting of the menu items

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Sorting of the menu items

Post 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
If you find Phoca extensions useful, please support the project
cruisi
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 02 Aug 2017, 14:40

Re: Sorting of the menu items

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Sorting of the menu items

Post 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
If you find Phoca extensions useful, please support the project
cruisi
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 02 Aug 2017, 14:40

Re: Sorting of the menu items

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Sorting of the menu items

Post 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
If you find Phoca extensions useful, please support the project
Giro
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 10 Oct 2017, 21:16

Re: Sorting of the menu items

Post 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
cruisi
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 02 Aug 2017, 14:40

Re: Sorting of the menu items

Post 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
cruisi
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 02 Aug 2017, 14:40

Re: Sorting of the menu items

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Sorting of the menu items

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Post Reply