SEF: Restaurant Menu pro

Phoca Restaurant Menu - restaurant menu manager
willson
Phoca Member
Phoca Member
Posts: 36
Joined: 16 Mar 2009, 12:26

SEF: Restaurant Menu pro

Post by willson »

With Menu Items set up for a dailymenu (as in the Lite version) and a foodmenu (Pro) the following occurs with SEF (core sef, no htaccess).

Environment: Joomla! 1.5.11

Symptoms:

Non SEF links -
Day menu - http://example.com/index.php?option=com_phocamenu&view=dailymenu
Bill of fare - http://example.com/index.php?option=com_phocamenu&view=foodmenu

SEF links -
Day menu - http://example.com/index.php/component/phocamenu/
Bill of Fare - http://example.com/index.php/component/phocamenu/

Notably, the last two are the same. Apparenty the view parameter is not being processed.
This might even be a Joomla! router problem and not a Phoca issue - but it's confounding either way.

Meanwhile I'll run non-SEF and look further into the situation later on this week. But, if anyone has any ideas ....
-----
Using: Restaurant Menu Pro, Gallery, Maps, Guestbook, PDF
User avatar
caro84g
Phoca Hero
Phoca Hero
Posts: 1369
Joined: 11 Feb 2008, 17:52
Location: Holland
Contact:

Re: SEF: Restaurant Menu pro

Post by caro84g »

Hi,

create some menu links to the component. At that moment each menu gets its own ID.

Regards, Carolien
Please ask your support questions in the forums and not via PM - I delete those PM's
Backup before you do any major change to your website (and test first)
willson
Phoca Member
Phoca Member
Posts: 36
Joined: 16 Mar 2009, 12:26

Re: SEF: Restaurant Menu pro

Post by willson »

Yes, I have a menu link (for JRouter to find); although I called them menu items in that post above. They are in a Published but not visible Menu (of the Joomla! Menu type rather than the "Restaurant Menu" type). So, that's not it.

In fact, I had two; one for each of a dailymenu and a foodmenu but in diagnosing the symptom I removed the dailymenu link so that there's now only one (in the not-visible, published, Joomla! menu). Just in case Joomla! was finding the wrong one.

But thanks for the thought anyway.
-----
Using: Restaurant Menu Pro, Gallery, Maps, Guestbook, PDF
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48005
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: SEF: Restaurant Menu pro

Post by Jan »

Hi, the Joomla! Core SEF create a menu link with help of menu link name, as there are no specific parameters in Phoca Restaurant Menu (id, category, section), there should not be any problem with SEF because there are no values to translate (in fact there are e.g. to create PDF or see Print view but these cannot influence main view)

see:
Daily Menu
https://www.phoca.cz/restaurantmenudemo/en/daily-menu

only "daily-menu" alias is displayed in url (no id, no category id, no section), so there is nothing to convert.


the same with other link:
https://www.phoca.cz/restaurantmenudemo/en/weekly-menu

Are other links on your site correctly created?
If you find Phoca extensions useful, please support the project
willson
Phoca Member
Phoca Member
Posts: 36
Joined: 16 Mar 2009, 12:26

Re: SEF: Restaurant Menu pro

Post by willson »

I see that it works okay in your demo site. Maybe having Zoom!Fish has something to do with it.

My other SEF links are working as expected.

I've confirmed that the same SEF link is created for both the foodmenu and the winelist and that both route to the dailymenu (and ot to either the Wine List nor the Bill of Fare.
That is they are SEFed as: http://example.com/index.php/component/phocamenu/

I do have Menu Items published for these two menu types:
ScreenShot018.jpg
It's default SEF, non htaccess:
ScreenShot019.jpg
And the result is the same SEF href for the two differerent links:
ScreenShot020.jpg
That third link, on the right, is a regular SEF link to an article.

Thus, I continue to look at the symptom from time to time and meanwhile run with SEF off.
-----
Using: Restaurant Menu Pro, Gallery, Maps, Guestbook, PDF
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48005
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: SEF: Restaurant Menu pro

Post by Jan »

Hi, the component string should not be displayed in the link, the link should be such:


www.your_site.com/index.php/la-carta (in case your alias is la-carta)
www.your_site.com/index.php/vinos

this:
http://example.com/index.php/component/phocamenu/ is not correctly created SEF link :-(

do you run only core SEF or is there some other SEF component on your site?
If you find Phoca extensions useful, please support the project
willson
Phoca Member
Phoca Member
Posts: 36
Joined: 16 Mar 2009, 12:26

Re: SEF: Restaurant Menu pro

Post by willson »

I have only core SEF (without mod_rewrite/htaccess) and the System-SEF plugin is enabled.

Wait... let me check the aliases. Maybe they're missing.
ScreenShot018.jpg
Nope, that wasn't it. The alias is there alright.
-----
Using: Restaurant Menu Pro, Gallery, Maps, Guestbook, PDF
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48005
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: SEF: Restaurant Menu pro

Post by Jan »

If there is an alias, no idea what can be wrong, because then it needs to be set as menu link ???
If you find Phoca extensions useful, please support the project
willson
Phoca Member
Phoca Member
Posts: 36
Joined: 16 Mar 2009, 12:26

Re: SEF: Restaurant Menu pro

Post by willson »

That, in any case, gives me a better work around. I will hard code the /index.php/vinos and index.php/la-carta links so that I can enable SEF. SEF will leave these "already SEFed" links alone. I tested and SEF does properly call the Restaurant Menu component when the links are selected.

With this I can launch the site and the links will look (and work) okay. Thanks.

Later, when things are quieter, I will look into the why of this symptom.
-----
Using: Restaurant Menu Pro, Gallery, Maps, Guestbook, PDF
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48005
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: SEF: Restaurant Menu pro

Post by Jan »

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