Announcement

#1 2010-02-25 17:48:19

saqwild
Member
2009-06-13
64

specific word in url

hello,

thanks for the great script

my q is ..

right now my url for categories is like http://www.mysite.com/index.php/category/2-nature.

is it possible so that i can replace/add a specific word in url so that i looks like...

http://www.mysite.com/index.php/galleries/2-nature.

or

http://www.mysite.com/index.php/mygalleies/2-nature.


thank

Offline

 

#2 2010-02-25 20:58:15

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: specific word in url

It is possible to do this, but it requires to modify the core code (in the URL management module) and I doubt a plugin would be enough.

In Piwigo core, the important functions for your case are in include/functions_url.inc.php : make_section_url + parse_section_url

Offline

 

#3 2010-02-26 14:31:00

saqwild
Member
2009-06-13
64

Re: specific word in url

i dont think i would be a very good idea to modify the core file.
if i upgrade in future, then i have to modify the core file again n agian other otherwise my site will return a 404 with existing urls

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact