The slides show is probably one of SPIP’s most wanted features. SPIP, soon to be released new version, will let you create slides-show from documents joined to sections or articles in a snap-shot.
All you need to do is to tweak a little the paging system. The paging system allows to group long list of objects, such articles, by 5 or 10. The lenght of a group is called the step.
A slides-show, in our case, is nothing more than a paged list of pictures grouped by 1.
The loop looks as easy as :
[(#REM) Simple and easy slide show]
<B_diapo>
<div class="your class">
#ANCRE_PAGINATION
<h3>Diaporama</h3>
<ul>
<BOUCLE_diapo(DOCUMENTS){id_article}{pagination 1}>
<li>
[(#EMBED_DOCUMENT)]
</li>
</BOUCLE_diapo>
</ul>
[<p class="pagination">(#PAGINATION{precedent_suivant})</p>]
</div>
</B_diapo>
Those of you allowed to edit SPIP files will either
- copy the loop insisde the file
- use <INCLURE ...
- use #MODELE...
- use a plugin
There are so many way to do it.
This loop fits in the ccs in use so that you will keep your site in style [1].
All the redactors need to do is to zip the slides and upload the archives either in a section or an article and SPIP will do the rest.
That’s it .
Aucune discussion
Ajouter un commentaire
Avant de faire part d’un problème sur un plugin X, merci de lire ce qui suit :
Merci d’avance pour les personnes qui vous aideront !
Par ailleurs, n’oubliez pas que les contributeurs et contributrices ont une vie en dehors de SPIP.
Suivre les commentaires : |