Mise à jour wiki prévue le lundi 21/07/2025 de 07h30 à 09h30 Plus d'informations en cliquant sur ce lien

View File Macro

Version 3.1 par Admin le 12/08/2024 - 08:29
Avertissement: La version de ce document n'est pas la plus récente. Pour des raisons de sécurité, XWiki affiche le document en mode restreint. Ce mode d'affichage peut provoquer des erreurs dans le corps du document.

The view-file macro displays attachments in a document, in place or as thumbnail and offers a preview.

Limitation: the thumbnail is actually only an icon for now.

Parameters

ParameterDescriptionRequiredDefault
displayKind of display. "button" for a button, "thumbnail" for a thumbnail, "full" to render the document in placenothumbnail (button in inline mode)
nameThe attachment reference to displayif att-filename is not given
widthThe width of the view in % or px (e.g. 100%, 100px)no100% for the full view or 100px for the thumbnail
heightThe height of the view in % or px (e.g. 100%, 100px)no1000px for the full view or 100px for the thumbnail
att-filenameAlias of nameIf name is not given

Example Usage

Thumbnails side by side:

Erreur dans l'exécution de la macro [velocity]. Cause : [The execution of the [velocity] script macro is not allowed. Check the rights of its last author or the parameters if it's rendered from another script.]. Cliquer sur ce message pour voir plus de détails.

Erreur dans l'exécution de la macro [velocity]. Cause : [The execution of the [velocity] script macro is not allowed. Check the rights of its last author or the parameters if it's rendered from another script.]. Cliquer sur ce message pour voir plus de détails.

 

Erreur dans l'exécution de la macro [velocity]. Cause : [The execution of the [velocity] script macro is not allowed. Check the rights of its last author or the parameters if it's rendered from another script.]. Cliquer sur ce message pour voir plus de détails.

Erreur dans l'exécution de la macro [velocity]. Cause : [The execution of the [velocity] script macro is not allowed. Check the rights of its last author or the parameters if it's rendered from another script.]. Cliquer sur ce message pour voir plus de détails.

Or standalone:

Erreur dans l'exécution de la macro [velocity]. Cause : [The execution of the [velocity] script macro is not allowed. Check the rights of its last author or the parameters if it's rendered from another script.]. Cliquer sur ce message pour voir plus de détails.

Erreur dans l'exécution de la macro [velocity]. Cause : [The execution of the [velocity] script macro is not allowed. Check the rights of its last author or the parameters if it's rendered from another script.]. Cliquer sur ce message pour voir plus de détails.

In a paragraph:

Erreur dans l'exécution de la macro [velocity]. Cause : [The execution of the [velocity] script macro is not allowed. Check the rights of its last author or the parameters if it's rendered from another script.]. Cliquer sur ce message pour voir plus de détails.

Erreur dans l'exécution de la macro [velocity]. Cause : [The execution of the [velocity] script macro is not allowed. Check the rights of its last author or the parameters if it's rendered from another script.]. Cliquer sur ce message pour voir plus de détails.

Full PDF:

Erreur dans l'exécution de la macro [velocity]. Cause : [The execution of the [velocity] script macro is not allowed. Check the rights of its last author or the parameters if it's rendered from another script.]. Cliquer sur ce message pour voir plus de détails.

Erreur dans l'exécution de la macro [velocity]. Cause : [The execution of the [velocity] script macro is not allowed. Check the rights of its last author or the parameters if it's rendered from another script.]. Cliquer sur ce message pour voir plus de détails.

Full Presentation:

Erreur dans l'exécution de la macro [velocity]. Cause : [The execution of the [velocity] script macro is not allowed. Check the rights of its last author or the parameters if it's rendered from another script.]. Cliquer sur ce message pour voir plus de détails.

Erreur dans l'exécution de la macro [velocity]. Cause : [The execution of the [velocity] script macro is not allowed. Check the rights of its last author or the parameters if it's rendered from another script.]. Cliquer sur ce message pour voir plus de détails.