Show specific category in index.php Show specific category in index.php
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Show specific category in index.php

Started by starb, July 06, 2006, 05:42:22 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

starb

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!

starb

I will finally do what I wanted by another way.
Thanks

Sami

‍I don't answer to PM with support question
Please post your issue to related board

starb

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.

Joachim Müller

 :o sorry, I didn't understand your instructions. Could you re-phrase?