Phoca
Phoca Seal

How to remove "component/content/article"?

How to remove "component/content/article"?

Postby vfx on 14 Mar 2009, 01:04

when i click on a document link? its trailing url is component/content/article/document name...

how can i remove it? I want to it be like on your site?

Thanks
vfx
Phoca Member
Phoca Member
 
Posts: 21
Joined: 16 Oct 2008, 00:28

Google Ads


Re: How to remove "component/content/article"?

Postby Jan on 14 Mar 2009, 15:43

Hi, you need to create menu link for phoca documentation, so then Phoca Documentation links get the Itemid and they get the menu link alias then...

Jan
If you find some Phoca extensions useful, please vote for them on: extensions.joomla.org
User avatar
Jan
Phoca Hero
Phoca Hero
 
Posts: 33212
Joined: 10 Nov 2007, 18:23
Location: Czech Republic

Re: How to remove "component/content/article"?

Postby vfx on 20 Mar 2009, 01:16

I went to Main Menu. I hit the New button. I selected Phoca Documentation. Then selected Section List. Typed in Title and Alias. Is this how you created a menu link for Phoca Documentation?

if so, i created a menu link for phoca documentation, but when i click on the links under the Most Viewed Documents or links under Category, it gave me component/content/article/whatever the document is...

How does Article Itemid work? I input the phoca documentation menu ItemID but that didn't work either.
vfx
Phoca Member
Phoca Member
 
Posts: 21
Joined: 16 Oct 2008, 00:28

Re: How to remove "component/content/article"?

Postby Jan on 23 Mar 2009, 23:54

Hi, yes such way the menu link is created, then you should get Itemid and the links should be created by this Itemid ?

Can I see the site, where this occurs?

Jan
If you find some Phoca extensions useful, please vote for them on: extensions.joomla.org
User avatar
Jan
Phoca Hero
Phoca Hero
 
Posts: 33212
Joined: 10 Nov 2007, 18:23
Location: Czech Republic

Re: How to remove "component/content/article"?

Postby snoopy on 11 Aug 2010, 21:02

Hi Jan

First of hats off to you for such a grtt component. I am having exactly the same problem as stated above by vfx. I also followed exactly the same steps and everything seems to be running fine. What the problem is that.. the URL do not luk good with SEF enabled. I m using Joomla 1.5 built in SEF.

On clicking a section inside the phoca documentation the URL is seen as :
http://localhost/<menu alias>/section/<section ID>-<section alias>

And on clicking any category inside that section..the displayed URL is:
http://localhost/<menu alias>/category/<categoryID>-<category alias>

Similarly clicking any article inside that category the displayed URLis:
http://localhost/component/content/article/<categoryID>-<category alias>/<articleID>-<article alias>

Can these URLs be corrected by Article Item ID parameter of the phoca documentation menu?
snoopy
Phoca Newbie
Phoca Newbie
 
Posts: 2
Joined: 11 Aug 2010, 20:44

Re: How to remove "component/content/article"?

Postby Jan on 15 Aug 2010, 22:47

Hi, in fact this is a problem, because Phoca Documentation is "only" the list of articles, but links to article goes to com_content...

In fact the link change the component from Phoca Documentation to Joomla! Content component.

See Phoca Documentation:
Link to all sections:
http://www.phoca.cz/documentation
Link to section:
http://www.phoca.cz/documentation/secti ... ca-gallery
Link to category:
http://www.phoca.cz/documentation/categ ... -component
Link to article:
http://www.phoca.cz/documents/2-phoca-g ... stallation

In fact the Itemid is changed there (between phoca documentation and com content) and the itemid is taken from content menu link (this menu link can be included in menu group which is hidden - which means the menu link will be not displayed but will be active (published) and the link will take the itemid from this menu link.

instead of component/content/ you get menu alias "documents"

Jan
If you find some Phoca extensions useful, please vote for them on: extensions.joomla.org
User avatar
Jan
Phoca Hero
Phoca Hero
 
Posts: 33212
Joined: 10 Nov 2007, 18:23
Location: Czech Republic

Re: How to remove "component/content/article"?

Postby snoopy on 17 Aug 2010, 20:29

Hi Jan

I did not understand your work around.
My current article URLs for phoca point to:
http://localhost/component/content/article/<categoryID>-<category alias>/<articleID>-<article alias>

Do you mean to create a menu item (disabled) of type external link pointing to ->
http://localhost/component/content/article/<categoryID>-<category alias> and then put this dummy menu id in the phoca menu?
So that the articles take the alias of this menu item?

I tried but it didnt work fr me ( I got a 500: view not found error in article).. not sure if I correctly understood your solution.
snoopy
Phoca Newbie
Phoca Newbie
 
Posts: 2
Joined: 11 Aug 2010, 20:44

Re: How to remove "component/content/article"?

Postby Jan on 20 Aug 2010, 22:30

Hi, yes you need to add dummy menu link and add it to menu group which you will unpublish (but the menu link must be published - as described in the articles)

Jan
If you find some Phoca extensions useful, please vote for them on: extensions.joomla.org
User avatar
Jan
Phoca Hero
Phoca Hero
 
Posts: 33212
Joined: 10 Nov 2007, 18:23
Location: Czech Republic


Return to Phoca Documentation

Who is online

Users browsing this forum: No registered users and 1 guest