Redirect to another section

Phoca Download - download manager
louiseinthesky
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 07 Sep 2011, 18:31

Redirect to another section

Post by louiseinthesky »

Hello

I have a problem with a weird redirection. I installed phoca download and I'd like to have the link to the files in 3 different section of my website. It's a bit difficult to explain, maybe you could check it yourself:
- 1st page with the phoca download, works fine:
http://www.eleutheria.ch/index.php?opti ... Itemid=144
- 2nd one, if you click on a category, it goes to the 1st section, with the wrong template, etc:
http://www.eleutheria.ch/index.php?opti ... Itemid=146
- 3rd one, the same:
http://www.eleutheria.ch/index.php?opti ... Itemid=112

Any clue how to avoid that?

Thank you very much.

Louise
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Redirect to another section

Post by Jan »

Hi, this is because the itemid is changed from 144 to 146 ... so you need to add for both menu links the same template.

Jan
If you find Phoca extensions useful, please support the project
louiseinthesky
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 07 Sep 2011, 18:31

Re: Redirect to another section

Post by louiseinthesky »

Thank you for your answer.
Oh yes, you're right, the Itemid change automaticaly to 144. Where can I change that? In Joomla? In the component? In the database?
Sorry about that, but I'm not really used to that.
Thanks again.

Louise
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Redirect to another section

Post by Jan »

Hi, this is a difficult issue, the component does not know which itemid should take, so it takes the first it finds (if there are more menu links and you are using backlinks from component). So then the router must be customized - hardcoded - to find only the itemid you need.


https://www.phoca.cz/documents/16-joomla ... -in-joomla
https://www.phoca.cz/documents/16-joomla ... -in-joomla
https://www.phoca.cz/documents/50-phoca/ ... -component
If you find Phoca extensions useful, please support the project
Post Reply