forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: starb on July 06, 2006, 05:42:22 pm

Title: Show specific category in index.php
Post by: starb on July 06, 2006, 05:42:22 pm
Hi

I would like to show a specific category in the first page of my site (like index.php?cat=10001).
I tried this:
<?php
include("index.php?cat=10001");
?>

...in a .php file.
But it makes an error like this:

Warning: main(index.php?cat=10001): failed to open stream: No such file or directory in /home2/js2845/public_html/galerie/testing.php on line 2

Warning: main(): Failed opening 'index.php?cat=10001' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/js2845/public_html/galerie/testing.php on line 2


Is there an other way to do this in php or by the configuration page?

Thanks a lot!
Title: Re: Show specific category in index.php
Post by: starb on July 06, 2006, 08:07:55 pm
I will finally do what I wanted by another way.
Thanks
Title: Re: Show specific category in index.php
Post by: Sami on July 06, 2006, 08:33:41 pm
Please post your solution for others
Title: Re: Show specific category in index.php
Post by: starb on July 07, 2006, 01:03:14 am
It's simple:
In admin I go in Categories(in french) and then I create a category. Then I change the order to the top, in Operations (french version). And I just have to add some images to this category by adding different albums according to my galleries classifications.

The Result is that all my photos will be shown in the index.php, without any ?cat=10001.
Title: Re: Show specific category in index.php
Post by: Joachim Müller on July 07, 2006, 01:05:50 am
 :o sorry, I didn't understand your instructions. Could you re-phrase?