#1 2003-12-02 21:10:36

hama
Member
2003-12-02
27

Category.php?cat=4&expand

Hi there

The slideshow is great and runs on my website **Broken link**Dorfschule Engelberg[/url]. I've got a question:

After watching a slideshow I can't go back to the real start-page. It always brings me to category.php?cat=4&expand but not to category.php. I have to refresh the whole gallery to see the page with the categories on the left and one thumb of each slideshow on the right.

Is it possible to hyperlink the title categories on the left with the command to the real start-page?

Thanks for a little help.  :-P

Offline

 

#2 2003-12-02 23:27:59

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

Re: Category.php?cat=4&expand

Is it possible to hyperlink the title categories on the left with the command to the real start-page?

Yes, it is ! Here is the way to do it :

1. in template/default/category.vtp (1.3.0), replace

Code:

     13             <div class="titreMenu">{#categories}</div>

by

Code:

<div class="titreMenu"><a href="{#home_url}">{#categories}</a></div>

2. in category.php (1.3), after

Code:

    132 //------------------------------------------------------------- categories menu

insert

Code:

$vtp->setVar( $handle, 'home_url', add_session_id( 'category.php' ) );

Offline

 

#3 2003-12-03 23:42:04

hama
Member
2003-12-02
27

Re: Category.php?cat=4&expand

Ok, that works great.

One little detail:

I would like to have the title Categories - Home and not only Categories.

Thanks

hama

Offline

 

#4 2003-12-03 23:47:17

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

Re: Category.php?cat=4&expand

I would like to have the title Categories - Home and not only Categories.

change that in your language file : change $lang['categories'] to what you want :)

Offline

 

#5 2003-12-03 23:54:33

hama
Member
2003-12-02
27

Re: Category.php?cat=4&expand

Great, everything ok.

Thanks  8-) 

Offline

 

Board footer

Powered by FluxBB