A slides-show in a snap shot.

An easy way to create a simple slides-show.

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 .

Footnotes

[1the paging elements must be inside a div

updated on 2 October 2019

Discussion

Aucune discussion

Comment on this article

Who are you?
  • [Log in]

To show your avatar with your message, register it first on gravatar.com (free et painless) and don’t forget to indicate your Email addresse here.

Enter your comment here

This form accepts SPIP shortcuts {{bold}} {italic} -*list [text->url] <quote> <code> and HTML code <q> <del> <ins>. To create paragraphs, just leave empty lines.

Add a document

Follow the comments: RSS 2.0 | Atom