Attachments and Linking
Return to Help
As you have encountered throughout CTSpedia, we use attachments and links frequently in our work.In most instructional materials, these are treated as two different sets of instructions but we often use these interchangeable in our work.
Attachment
Graphic: JPG, PNG, GIF or Text and Data Files: PDF, Word, TXT, CSV, XPT and Many Others
First - Label the files you will be attaching
Labeling Your Files Before Upload
- Name of university or name of contributor, e.g. Rochester, UCSF, Davis OR Soukup and then underscore
- Name of macro, R-function, etc OR other title - Title from form and underscore
- Type of file, e.g. SAS or Doc
Go to your directory, browse and find file.
- After clicking on "Browse", find the Directory and the file.
- Make sure that it is named correctly.
NOTE: Do Not Use a date in the title. DO USE today's date in the Comment box. When you add new versions of the file, you will be able to add updated dates to the Comments but the wiki always keeps the original file name.
Return to Top
Second - Open attachment page on your CTSpedia wiki page
Go to the top right of the topic page that you are working on and click on the "Attach" button. This page will open:
Return to Top
After opening the file put a description in the Comment box (name, dates and/or version numbers) and check on Properties: "Do not show attachment in table" - to hide list of attachments. Click on "Upload file" button.
NOTE: Do Not Use a date in the title. Do use today's date in the Comment box. You will be able to add updated versions of the attachment but the wiki always keeps the original file name.
Return to Top
- Find your file in the Attachments list.
https://www.ctspedia.org/wiki/pub/CTSpedia/StatToolsTopic054/Rochester_EGTesting_SASmainmacro.sas
- COPY the URL, Open the Form, and PASTE the URL into the form and add a title:
- Double brackets (open right ) before the URL: [[https://www.ctspedia.org/wiki/pub...
- Single bracket (close left ]) to close the URL: ......]
- Single bracket ([open right) to open the title: [Rochester...
- And then double brackets (close left) to close the title: ...]]
[[https://www.ctspedia.org/wiki/pub/CTSpedia/StatToolsTopic054/Rochester_EGTesting_SASmainmacro.sas][Rochester_EGTesting_SASmainmacro.sas]]
THE names in the outer brackets are not governed by wiki rules - so you can have any combination of characters in the outer brackets. [Rochester_Example Testing _ Main Sas Macro.sas]]
NOTE you can also cut and paste the SAS code directly into the form in the box that says "SAS-Code"
Return to Top
Image Attachments
- For Stat Graph you will need two images:
- A regular size image for the "Image" field ("Lightbox" plugin) at the top of the form
- The thumbnail or small image for the "Image" field ("Lightbox" plugin) and for the "Reference Image" field at the bottom
- Prepare your images in Paint or other picture editing software
- Regular images should be around 500-600 pixels horizontal.
- Thumbnail images should be 200 pixels horizontal
Open Attachment Page - When you click on Attach on the topic page, this page opens.
Find Image - Now you need to go find the file with the image files on your computer.
Upload File with Image - You need to open the file, put a description in the Comment box, , and check on Properties: "Do not show attachment in table" - to hide list of attachments
Link for Image - Cutting link for picture - Go to attachment and cut link for picture
Return to Top
Image Attachment - JPEG or PNG opens automatically
You can hyperlink a jpeg or png file. It will open automatically when the page opens.
1 - Open picture, copy URL
2 - Paste URL into Form
3 - Picture open automatically when topic page is opened
Return to Top
Image Attachment - TO hyperlink a JPEG or PNG file
* Open Link* - If you want to open the picture by clicking - as seen here
* Coding for hidden picture* - Here is how the coding looks for a hidden picture. Be sure to put the URL from the Navigation Bar into the double brackets.
* [[https://www.ctspedia.org/wiki/pub/CTSpedia/StatGraphTopic016/VSsbp.png][Click on hyperlink for picture.]]
Return to Top
Images Lightbox Plugin - Thumbnail for Preview and Full Picture for Large Image*
Image Field: You will need a thumbnail or small picture (200 pixels) and a larger image (500-600 pixels). You need to attach a these images into the Topic page.
Two Files that are needed:
1: Soukup_misspersp.jpg (regular image)
2: Soukup_misspersp.200.jpg (thumbnail image)
Coding the Lightbox plugin
%LIGHTBOX{ image="Demo1_Soukup_dotplot1_500.png" thumbnail="Demo2_Soukup_dotplot1_200.png" }% Click on thumbnail to enlarge
* Here are the LIGHTBOX IMAGES: |
%LIGHTBOX{ image="Soukup_misspersp.jpg" thumbnail="Soukup_misspersp_200.jpg" }% Click on thumbnail to enlarge |
Return to Top
Document Attachments (Code, PDF, 2010 Word)
Code, PDF, and 2010 Word documents are attached and then the link will be added to the form.
Step1 - Attach Documents - Open document, copy URL
Return to Top
Word 2003 Attachments - Additional Steps
You cannot capture the Word 2003 attachment URL because a link to saving or opening Word 2003 automatically opens. The complete URL begins with: _[[https://www.ctspedia.org/wiki/pub/CTSpedia/_, followed by topic page name, attached file name][Viewable name]]
Word 2003 Attachments - First find the file on the Attach page
Return to Top
Word 2003 Attachments - Second highlight file name on the Attach page
Return to Top
Word 2003 Attachments - Third add the name to the Topic page
Return to Top
Word 2003 Attachments - Fourth copy the URL of the Topic page
Highlight and copy the URL of the topic page.
Return to Top
Word 2003 Attachments - Fifth adding and changing URL
Because we cannot see the URL for the Word 2003 document, you need to make changes to the URL of the Topic page to reflect the URL of the Word 2003 file.
Return to Top
Word 2003 Attachments - Six closing the attachment URL
Be sure to add back slash after Topic page URL and before file name, single close bracket, single open bracket, viewable file name, and then close with double bracket.
Return to Top
Updating Attachments - New versions of files
1 - Upload new version using the same file name as the earlier version. Be sure to add new details in Comment field.
2 - Click on Manage to make sure all versions of the file were uploaded.
3 - Find new version of the picture or file
4 - New version automatically opens when you open the topic page.
**
The wiki's principle limitations in file sharing are video files and others >10 Mb. All others can be loaded.
4 - Go to the top right of the page and click on the Attach button.
Links for References
In the ReferencesCTSpediaForm
Fill in the article information.
If the article is open access, fill in the URL.
If the article is not open access, mark DOI from the top of article in the DOI field.
Return to Top