Version 4

DataPluginAttachment

attach files and images to content, for instance to a wiki page

Created by: hiran, Last modification: 26 Jan 2007 (17:02 UTC) by hiran

Plugin: Attachment

First, go to the tab "attachment" and choose the file to upload. Then you have to refresh the edit page by clicking save on the main tab (choose "minor save" during that in order not to generate an extra version). If the file is large it can take some time. You'll be taken to the view of the wiki page you were editing. Now you need to enter "edit page" again. Now below the page edit area there's some info you need: the attachment ID and the attachment URL (seen when hovering the mouse over the thumbnail as the target URL, not the image url) and you are ready to add the attachment to the page. There can be different strategies for that:

  1. you can use { attachment id=XXX} (might be taken from the attachment tab-attachment browser-insert)
  2. you can add a link using ))description (( syntax
  3. you can add image (if your attachment is an image) using { img} tag

  • You can use the float=left|right attribute to align the attachement and make the text float around it.

input code for the examples above


<?php
    1. 
attachment id=224 float=left}

    
2. <a href="http://www.bitweaver.org/storage/users/442/442/images/224/logo.png">link to the attached image</a>

    
3. img
        src
="http://www.bitweaver.org/storage/users/442/442/images/224/logo.png"
        
margin="0 1em"
        
padding="10px 20px"
        
background="#f60"
        
text-align="center"
        
color="#fff"
        
desc="attached"
        
border="3px solid #000"
        
font="bold small-caps 160%/160% fantasy"
        
link="http://bitweaver.org"
        
width="48px"}
?>



Please keep in mind that in the examples a space is added after the curly bracket to prevent the tag from being parsed (on this page). In actual use, that additional space must be removed.
Page History
Date/CommentUserIPVersion
30 Jun 2008 (10:39 UTC)
Kozuch85.207.244.1607
Current • Source
hiran85.233.40.1924
View • Compare • Difference • Source
laetzer217.83.93.2113
View • Compare • Difference • Source
xing194.152.164.451
View • Compare • Difference • Source