Loading...
 

Plugin Attach

This wiki plugin displays an attachment or a list of attachments. It currently works with wiki pages and tracker items.

 Note

This plugin is very similar to PluginFile.


Parameters

Introduced in Tiki1.
Preferences required: feature_wiki_attachments, wikiplugin_attach
Parameters Accepted Values Description Default Since
(body of plugin) Comment
num Identifies the attachment to link to by the order of the attachment in the list of attachments to a page instead of by file name or ID. Either name, file, id or num can be used to identify a single attachment. 1
file text Same as name 1
id Attachment name, file, id or num Identifies the attachment to link to by id number instead of by file name or order number. Either name, file, id or num can be used to identify a single attachment. 1
name text File name of the attached file to link to. Either name, file, id or num can be used to identify a single attachment 1
all (blank)
1
0
Lists links to all attachments for the entire tiki site together with pages they are attached to when set to 1 (Yes) 0 1
bullets (blank)
1
0
Makes the list of attachments a bulleted list (not set by default) 0 1
inline (blank)
1
0
Makes the text between the {ATTACH} tags the link text instead of the file name or description. Only the first attachment will be listed. 0 1
dls (blank)
1
0
The alt text that pops up on mouseover will include the number of downloads of the attachment at the end when set to 1 (Yes) 0 1
icon (blank)
1
0
A file type icon is displayed in front of the attachment link when this is set to 1 (Yes) 0 1
image (blank)
1
0
Indicates that this file is an image, and should be displayed inline using the img tag (not set by default) 0 1
page pagename Name of the wiki page the file is attached to. If left empty when the plugin is used on a wiki page, this defaults to that wiki page. 1
showdesc (blank)
1
0
Shows the description as the link text instead of the file name (not used by default) 0 1


More tips on how the plugin works

  • Only files listed as an attachment at the bottom of a page are captured by this plugin.
    • That means that images that have been uploaded through the "Upload picture:" option on the edit panel or uploaded to an image or file gallery and only linked to on the page will not be included. Other types of files (other than images) uploaded in the edit panel will be included because they appear in the list of attachments.
  • To link directly to a single attachment, one (and only one) of the following parameters should be used: name, file, id, num
  • To list attachments, use: page or all
  • Performance problems in versions prior to 3.0 (fixed in 3.0):

Examples

These examples use the attachments on this page. Expand the list of attachments at the bottom of this page to see how the attachment information is used or displayed in the following examples.

Using icon, showdesc and dls parameters

This code,
{ATTACH(icon="1" showdesc="1" dls="1")} {ATTACH}


Would produce on this site:

 Right arrow
 Logo for TikiWiki doc site
 This is an example file attachment

This code,
{ATTACH(num="2" icon="1" dls="1" inline="1")}This is the second attachment to this page {ATTACH}


Would produce on this site:
 This is the second attachment to this page

Using the ID Number and File Name

This code,
{ATTACH(id="10" icon="1" dls="1")} {ATTACH}


Would produce on this site:

 arrow-right.png
Contributors to this page: lindon and Marc Laporte .
Page last modified on Tuesday 04 August, 2015 04:18:03 CEST by lindon.

Attached files

ID Name Comment Uploaded Size Downloads
10 arrow-right.png Right arrow lindon Sat 02 May, 2009 06:35 CEST 273 b 4805
9 doctwo.png Logo for TikiWiki doc site lindon Sat 02 May, 2009 05:49 CEST 34.97 Kb 1896
8 example_text_file.txt This is an example file attachment lindon Sat 02 May, 2009 05:36 CEST 31 b 1722

doc.tiki.org


Bootstrap

AdminGuide

UserGuide

Keywords

Keywords serve as "hubs" for navigation within the Tiki documentation. They correspond to development keywords (bug reports and feature requests):

Accessibility (WAI and 508)
Accounting (7.x)
Articles and Submissions
Backlinks
Banners
Batch (6.x)
BigBlueButton audio/video/chat/screensharing (5.x)
Blog
Bookmark
Browser Compatibility
Link Cache
Calendar
Category
Chat
Clean URLs
Comments
Communication Center
Compression (gzip)
Contacts (Address Book)
Contact us
Content Templates
Contribution (2.x)
Cookie
Copyright
Credit (6.x)
Custom Home and Group Home Page
Date and Time
Debugger Console
Directory of hyperlinks
Documentation link from Tiki to doc.tiki.org (Help System)
Docs 8.x
Draw 7.x
Dynamic Content
Dynamic Variable
External Authentication
FAQ
Featured links
File Gallery
Forum
Friendship Network (Community)
Gmap Google maps
Groups
Hotword
HTML Page
i18n (Multilingual, l10n, Babelfish)
Image Gallery
Import-Export
Install
Integrator
Interoperability
Inter-User Messages
InterTiki
Kaltura video management (4.x)
Karma
Live Support
Login
Logs (system & action)
Look and Feel
Lost edit protection
Mail-in
Map with Mapserver
Menu
Meta Tags
Mobile Tiki and Voice Tiki
Mods
Module
MultiTiki
MyTiki
Newsletter
Notepad
Payment
Performance Speed / Load
Permissions
Platform independence (Linux-Apache, Windows/IIS, Mac, BSD)
Polls
Profiles
Profile Manager
Report
Toolbar
Quiz
Rating
Feeds
Score
Search engine optimization
Search
Search and Replace
Security
Semantic links (3.x)
Shadowbox
Shadow Layers
Share
Shopping cart
Shoutbox
Slideshow
Smiley
Social Networks
Spam protection (Anti-bot CATPCHA)
Spellcheck
Spreadsheet
Stats
Surveys
Tags (2.x)
Task
Tell a Friend, alert + Social Bookmarking
TikiTests (2.x)
Theme CSS & Smarty
Trackers
Transitions (5.x)
TRIM
User Administration including registration and banning
User Files
User Menu
Watch
WebHelp
WebDAV (5.x)
Webmail
Web Services
Wiki 3D
Wiki History, page rename, etc
Wiki Page Staging and Approval (2.x)
Wiki Plugin extends basic syntax
Wiki Syntax
Wiki structure (book and table of content)
Workspace
WSOD
WYSIWYCA
WYSIWYG (2.x)
XMLRPC


Tiki Newsletter

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other news!
Contribute to Tiki