Struggling with URLs

Phoca Documentation - creating documentation in Joomla! CMS
BeTheDance
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 05 Jun 2010, 02:52

Struggling with URLs

Post by BeTheDance »

Here's the page: www.GuineaPigZone.com/care

I am EXPERIMENTING with the GUARDIANS section, trying to get that one to work right.

1. I have a HIDDEN MENU
2. On the Hidden Menu, I initially created SECTION BLOG entries for each of my sections.

If you scroll down the page to some actual article listings, you can see that the Hay article, for example,

Code: Select all

http://www.guineapigzone.com/diet/113-hay/1360-hay-vital-for-your-guinea-pig
has a proper Joomla SEF url.

However, if you follow the Phoca path down from Diet to Hay, you see that the url is one that I do NOT want:

Code: Select all

http://www.guineapigzone.com/component/content/article/113-hay/1360-hay-vital-for-your-guinea-pig
Namely, I do NOT want the "component/content/article" in the URL.

However, both URLs do work.

So, on the Hidden Menu, I created a Phoca Menu Item for an "individual Phoca Documentation Section."

I'm testing just the GUARDIAN section for this. So, on the Hidden Menu I now have a regular Joomla Section Blog for "Guardians" AND a Phoca Section for "Guardians." I added the MENU ID of the Joomla Guardian section (294) to the article id field.

Now, the URL SEEMS right in both Phoca listing and the article reference below (bottom of page) for this article in Vet Care: "How to Find a Guinea Pig Vet":

Code: Select all

http://www.guineapigzone.com/guardians/141-vet-care/1358-how-to-find-a-guinea-pig-vet
BUT, when I actually go to select the article, I'm getting a 500 error. I'm guessing it's a circular reference problem.

"500 - View not found [name, type, prefix]: 141vet-care,html,phocadocumentationView"

I'm assuming I'm just doing something wrong here.

I tried it with JUST the phoca section list, but then I do not get the right URL.

Desperate for help here. Thanks very much!!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Struggling with URLs

Post by Jan »

Hi, you should not create menu link for Phoca Guestbook in hidden menu, you should get the Itemid of menu link to blog in hidden menu and add this to Phoca Guestbook menu link - to parameters (there is a form field called Itemid), so then you will get the same behaviour like here:

https://www.phoca.cz/documentation/categ ... -component

The links take the menu itemid from "documents" menu link (hidden menu link to section of articles, I think)

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