coppermine-gallery.com/forum

Support => Français (French) => Language Specific Support => cpg1.4.x Français (French) => Topic started by: starb on July 06, 2006, 05:48:38 PM

Title: Montrer catégorie dans index.php
Post by: starb on July 06, 2006, 05:48:38 PM
Salut,

Je suis un débutant en php, mais je voudrais savoir s'il y a un moyen pour afficher une catégorie spécifique dans la première page qui s'ouvre au tout début. J'ai pensé faire une page .php dans ce genre pour tester:

<?php
include("index.php?cat=10001");
?>


Mais ça me faisais cette erreur:
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


Y a-t'il une manière de faire afficher une certaine catégorie (une galerie spécifique) dans l'index au tout début avec php ou une config dans l'admin?

Que faire?

Merci!
Title: Re: Montrer catégorie dans index.php
Post by: François Keller on July 06, 2006, 05:55:03 PM
Bonjour,

si votre site à une page d'acceuil autre que coppermine, le lien pointant vers la galerie pourrait être du genre
http://www.monsite/moncoppermine/index.php?cat=1001 (http://www.monsite/moncoppermine/index.php?cat=1001)
Title: Re: Montrer catégorie dans index.php
Post by: starb on July 07, 2006, 01:05:00 AM
Merci bcp pour l'idée!