Révisions :
« blocs:description : couteauprive - en »
Révisions
Différences entre version No5 et version No4
Allows you to create blocks which are shown/hidden when you click on their titles.
@puce@ In SPIP? text : authors can use the new
<bloc>
A clickable title
The text to be shown/hidden, after two empty lines.
</bloc>
@puce@ In templates : you can use the new #BLOC_TITRE, #BLOC_DEBUT and #BLOC_FIN tags like this :
<blockquote class="spip"> #BLOC_TITRE or #BLOC_TITRE(my_URL)
My title
#BLOC_RESUME (optional)
a summary version of the following block
#BLOC_DEBUT
My collapsible block (which will contain the indicated URL, if needed)
#BLOC_FIN
@puce@ If you tick "yes" below, opening one block will cause all other blocks on the page to close. i.e. Only only one block is open at a time. [1]
@puce@ If you tick "yes" below, the state of the numbered blocks will be kept in a session cookie, in order to maintain the page’s appearance as long as the session lasts. [2]
@puce@ By default, the Swiss Army Knife plugin uses the HTML tag
for the titles of the collapsible blocks. You can specify another tag to use instead here : [3]
@puce@ In order to obtain a smoother transition when you click on the title, your collapsible blocks can be animated with a "sliding" effect". [4][%blocs_millisec% milliseconds]
@puce@ In order to obtain a smoother transition when you click on the title, your collapsible blocks can be animated with a "sliding" effect". [4][%blocs_millisec% milliseconds]