Bonjour,
J'ai un client qui voudrait présenter son catalogue en ligne. Location de
vaisselle avec +/- 800 articles différents. Je ne pense pas que spip soit le
bon moyen de la faire mais je voudrais m'en assurer. quelqu'un a t'il déjà
fait un catalogue avec spip? ou qq a t'il une bonne idée pour le faire?
Merci pour vos conseils.
Benoît
From titeuf@lautre.net Fri Jan 17 19:12:11 2003
Return-Path: <titeuf@lautre.net>
Received: from mel-rto6.wanadoo.fr (smtp-out-6.wanadoo.fr [193.252.19.25])
by miel.brainstorm.fr (Postfix) with ESMTP id 227791C899D
for <spip@rezo.net>; Fri, 17 Jan 2003 19:12:11 +0100 (CET)
Received: from mel-rta8.wanadoo.fr (193.252.19.79) by mel-rto6.wanadoo.fr
(6.7.015) id 3E0C343F00CCE514 for spip@rezo.net;
Fri, 17 Jan 2003 19:12:11 +0100
Received: from lautre.net (193.251.17.72) by mel-rta8.wanadoo.fr (6.7.015)
id 3E26DA70000BA528; Fri, 17 Jan 2003 19:12:10 +0100
Message-ID: <3E2847FD.2010408@lautre.net>
Date: Fri, 17 Jan 2003 19:14:21 +0100
From: Sylvain <titeuf@lautre.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr-FR;
rv:1.2.1) Gecko/20021130
X-Accept-Language: fr-fr, en-us
MIME-Version: 1.0
To: jerome deconinck <jerome.deco@wanadoo.fr>
References: <3E283797.60505@wanadoo.fr>
In-Reply-To: <3E283797.60505@wanadoo.fr>
Content-Type: multipart/mixed;
boundary="------------040005060808080301060402"
cc: spip@rezo.net
Subject: [Spip] Galerie / Album / diaporama photo
X-BeenThere: spip@rezo.net
X-Mailman-Version: 2.1rc1+
Precedence: list
List-Id: SPIP : questions/reponses <spip.rezo.net>
List-Unsubscribe: <http://listes.rezo.net/mailman/listinfo/spip>,
<mailto:spip-request@rezo.net?subject=unsubscribe>
List-Archive: <Discuter chez rezo.net;
List-Post: <mailto:spip@rezo.net>
List-Help: <mailto:spip-request@rezo.net?subject=help>
List-Subscribe: <http://listes.rezo.net/mailman/listinfo/spip>,
<mailto:spip-request@rezo.net?subject=subscribe>
X-List-Received-Date: Fri, 17 Jan 2003 18:12:11 -0000
Status: O
Content-Length: 9121
Lines: 239
This is a multi-part message in MIME format.
--------------040005060808080301060402
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
jerome deconinck a écrit:
Or l'auteur du site donne les squellettes... J'ai donc copié son fichier
et mis tel quel sous mon site
J'ai crée un fichier php
<?
$fond = "rubrique-7";
$delais = 24 * 3600;include ("inc-public.php3");
?>
heu il me semble que tu te gourre c'est pas dans le ****.php3 qu'il faut
mettre "rubrique-7" mais c'est les fichiers :
article-7.html
rubrique-7.html
qui s'affectent aux articles et rubriques de la rubrique 7 (incluse)
à moins que Mytiliculture.com ai fait un truc "tordu" mais ça métonne
-> bon comme le problème de l'albume photo est une question récurente et
que tout le monde galère dans son coin ...
ci-joint ma version, qui sera disponible dans un jeux de squelettes
complet partagé prochainement pour tous, mais le reste encore en
développement
(je garde donc le reste "secret" pour l'instant)
Comment il fonctionne :
- cet album photo utilise un article, dans cet article on peut utiliser
le titre/texte/chapo/notes/PS normalement
- puis on attache à cet article EN DOCUMENT JOINT (pas image jointe) les
images et de préférence on leur met une vignette
- une fois en ligne on voit la première image et toutes les vignettes
sur la droite (en 2 colonnes) + un bouton suivant et précédent au dessus
de l'image
Comment l'installer :
on peut imaginer divers astuces, pour l'utiliser avec un mot clef et
autres ...
mais la plus simple est de ce faire une rubrique "Galerie photos" un
peut comme sur Mytiliculture.com (qui m'a inspiré), puis dans cette
rubrique chaque article étant un album
donc admetons que votre rubrique "Galerie photos" soit là 9, renommer
simplement le fichier joint en article-9.html
Astuce : tu fais facilement un diaporama en supprimant les colonnes des
vignettes à droite, et éventuellement en grossissant la taille de
suivant et précédent
voilÃ
sauf erreur de ma part ce squelette marche parfaitement
--
Sylvain
___________________________
http://spip-edu.edres74.net
http://titeuf.lautre.net
--------------040005060808080301060402
Content-Type: text/html; charset=ISO-8859-1;
name="album.html"
Content-Transfer-Encoding: 8bit
Content-Disposition: inline;
filename="album.html"
<BOUCLE_principale(ARTICLES) {id_article}>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>[#NOM_SITE_SPIP] > [(#TITRE|supprimer_numero)]</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META NAME="Description" CONTENT='[(#DESCRIPTIF|supprimer_tags|texte_script)]'>
<meta name="Keywords" content="<BOUCLE_keywords(MOTS){id_article}{","}>#TITRE</BOUCLE_keywords>">
<meta name="Author" content="<BOUCLE_author(AUTEURS){id_article}{","}>#NOM</BOUCLE_author>">
<link href="styles.css" rel="stylesheet" type="text/css">
<script language="JavaScript">
<!--
function changeclass(objet, myClass)
{
objet.className = myClass;
}
//-->
</script>
</head>
<body bgcolor="#FFFFFF">
[(#FORMULAIRE_ADMIN)]
<table width="750" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100" height="1" colspan="3" bgcolor="#708FBE"><img src="images/calle.gif" width="1"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr> [
<td width="1" bgcolor="#F0F6FB">(#LOGO_ARTICLE)</td>
]
<td width="100%" bgcolor="#F0F6FB"><font size="2">
<table border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td><font size="2">[Le (#DATE|nom_jour)][ (#DATE|jour)][ (#DATE|nom_mois)][
(#DATE|annee).]</font></td>
</tr>
</table>
[<strong>(#SURTITRE)</strong><br>
]</font> <font size="2">[<font size="5"><strong>(#TITRE|supprimer_numero)</strong></font>][<br>
<strong>(#SOUSTITRE)</strong>]</font></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100" height="1" colspan="3" bgcolor="#708FBE"><img src="images/calle.gif" width="1"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td><font size="2">Vous êtes ici : <a href="#URL_SITE_SPIP">Accueil</a>
<BOUCLE_hier(HIERARCHIE)>
<img src="puce.gif" width="16" height="13"> <a href="#URL_RUBRIQUE" [title="(#DESCRIPTIF|supprimer_tags)"]>[(#TITRE|supprimer_numero)]</a>
</BOUCLE_hier>
</font><font size="2"><img src="puce.gif" width="16" height="13">[(#TITRE|supprimer_numero)]</font></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100" height="1" colspan="3" bgcolor="#708FBE"><img src="images/calle.gif" width="1"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" valign="top">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<BOUCLE_diaporama(DOCUMENTS){id_article}{extension==jpg|png|gif}{mode=document}{debut_image,1}>
<BOUCLE_nb_images(DOCUMENTS){id_article}{extension==jpg|png|gif}{mode=document}>
<?php $nb_images = "#TOTAL_BOUCLE"; ?>
</BOUCLE_nb_images>
<?php
// pour passer d'une image à l'autre
// avec affichage du num. de l'image
// par rapport au nombre total.
$num_image = $debut_image + 1;
//echo "$num_image / $nb_images <br>";
if ($debut_image == $nb_images-1){
$im_suiv = 0;
}else{
$im_suiv = $debut_image + 1;
}
if ($debut_image == 0){
$im_prec = $nb_images-1;
}else{
$im_prec = $debut_image - 1;
}
?>
<table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td width="1"><a href="article.php3?id_article=#ID_ARTICLE&debut_image=<?php echo $im_prec ?>"><font size="2">précédent</font></a></td>
<td width="100%" align="center">[<font size="2"><strong>(#TITRE)</strong></font>]</td>
<td width="1" align="right"><a href="article.php3?id_article=#ID_ARTICLE&debut_image=<?php echo $im_suiv ?>"><font size="2">suivant</font></a></td>
</tr>
</table></td>
</tr>
<tr>
<td> <img src="#URL_DOCUMENT"><br>
[(#DESCRIPTIF)<br>
]
</BOUCLE_diaporama>
</td>
</tr>
</table>
[
<p><strong>(#CHAPO|justifier)</strong></p>
][
<p>(#TEXTE|justifier)</p>
][
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="1" colspan="3" bgcolor="#708FBE"><img src="images/calle.gif" width="1"></td>
</tr>
</table>
<p><font size="2">(#PS|justifier)</font> </p>
][
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="1" colspan="3" bgcolor="#708FBE"><img src="images/calle.gif" width="1"></td>
</tr>
</table>
<blockquote><font size="2">(#NOTES)</font></blockquote>
] </td>
<td width="10"><img src="images/calle.gif" width="10"></td>
<td width="240" valign="top">
<B_documents_joints>
<table border="0" cellpadding="0" cellspacing="0" class="encadre_bas">
<tr align="center">
<td width="1" valign="top">
<?php
$url_image = 0;
?>
<BOUCLE_documents_joints(DOCUMENTS) {id_article} {mode=document} {doublons} {1/2}>
<a href="article.php3?id_article=#ID_ARTICLE&debut_image=<?php echo $url_image ?>">#LOGO_DOCUMENT</a>
<?php
$url_image = $url_image + 1;
?>
</BOUCLE_documents_joints>
</td>
<td width="1" valign="top">
<BOUCLE_documents_joints_suite(DOCUMENTS) {id_article} {mode=document} {doublons}>
<a href="article.php3?id_article=#ID_ARTICLE&debut_image=<?php echo $url_image ?>">#LOGO_DOCUMENT</a>
<?php
$url_image = $url_image + 1;
?>
</BOUCLE_documents_joints_suite>
</td>
</tr>
</table>
</B_documents_joints>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
</BOUCLE_principale>
--------------040005060808080301060402--