Page 1 of 1

SEF: Restaurant Menu pro

Posted: 18 Jun 2009, 00:25
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 ....

Re: SEF: Restaurant Menu pro

Posted: 18 Jun 2009, 08:56
by caro84g
Hi,

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

Regards, Carolien

Re: SEF: Restaurant Menu pro

Posted: 18 Jun 2009, 09:09
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.

Re: SEF: Restaurant Menu pro

Posted: 18 Jun 2009, 15:25
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?

Re: SEF: Restaurant Menu pro

Posted: 21 Jun 2009, 14:41
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.

Re: SEF: Restaurant Menu pro

Posted: 23 Jun 2009, 19:30
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?

Re: SEF: Restaurant Menu pro

Posted: 23 Jun 2009, 19:59
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.

Re: SEF: Restaurant Menu pro

Posted: 23 Jun 2009, 23:16
by Jan
If there is an alias, no idea what can be wrong, because then it needs to be set as menu link ???

Re: SEF: Restaurant Menu pro

Posted: 25 Jun 2009, 20:38
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.

Re: SEF: Restaurant Menu pro

Posted: 26 Jun 2009, 20:56
by Jan
Ok