I suggest you to simply add to your main image a link to the biggest version :
<div class="spip_documents spip_documents_center"
id="document_actif">
<a href="#URL_DOCUMENT">
[(#EMBED_DOCUMENT|image_reduire{500,500})]
</a>
[<div class="#EDIT{titre} spip_doc_titre">(#TITRE)</div>]
[<div class="#EDIT{descriptif}
spip_doc_descriptif">(#DESCRIPTIF)</div>]
</div>
With that, uses won't download the original version when browsing the
website (so it will be faster for then to display the page).
.Gilles
--
2007/3/28, Howard Shippin <info.pr@nswas.org>:
I'm just getting used to the portfolio function for articles - which is new
to me after upgrading from an earlier version of SPIP.
I like it a lot, and it does almost everything required.
On the site we use large photos, in order that if we receive requests for
printable-size photos we can just refer people to the site. Because the
photos are large, I found it necessary to modify the boucle so that when
clicking on a photo, the resulting display does not go off the page. I did
this by adding a filter to the #EMBED :
[(#EMBED_DOCUMENT|image_reduire{500,500})]
That way, the photos look very nice. However, this also limits their size
when someone wants to download them. I would like to enable a download of
the full size photo. I'm sure this just needs a small addition to the
Boucle, but am hopeless at programming these things - perhaps someone can
help?
As a reminder, the whole (original) portfolio section is:
<B_documents_portfolio>
<div id="documents_portfolio">
<h2><:info_portfolio:></h2>
<BOUCLE_documents_portfolio(DOCUMENTS)
{id_article} {mode=document} {extension IN png,jpg,gif} {par num titre,
date} {doublons}>
[<a href="#URL_DOCUMENT" type="#MIME_TYPE"
onclick="location.href='[(#URL_ARTICLE|parametre_url{id_document,#ID_DOCUMENT})]#documents_portfolio';return
false;"[
title="(#TITRE|couper{80}|texte_backend)"]>(#FICHIER|copie_locale|image_reduire{0,60}|inserer_attribut{alt,[(#TITRE|couper{80}|texte_backend)]})</a>]
</BOUCLE_documents_portfolio>
</div>
</B_documents_portfolio>
<BOUCLE_afficher_document(DOCUMENTS)
{id_document} {id_article} {mode=document}{extension IN png,jpg,gif}>
<div class="spip_documents spip_documents_center"
id="document_actif">
#EMBED_DOCUMENT
[<div class="#EDIT{titre} spip_doc_titre">(#TITRE)</div>]
[<div class="#EDIT{descriptif}
spip_doc_descriptif">(#DESCRIPTIF)</div>]
</div>
</BOUCLE_afficher_document>
Thanks,
--
Howard Shippin,
Neve Shalom - Wahat al-Salam
_______________________________________________
spip-en@rezo.net -
http://listes.rezo.net/mailman/listinfo/spip-en