It is now possible to define the format of the link of attached files and images in the
TWikiPreferences and user preferences. This only applies when you checkmark the
link check box in the attach screen.
In case you want to try it out before the next Beta is out you can set this in the preferences:
- Format of file link when the link check box is checked: (can be overwritten by user preferences)
- Set ATTACHEDFILELINKFORMAT = \t* $name: $comment
- Note: Keyword
$name gets expanded to filename; $comment to comment; \t to tab (3 spaces for bullets).
- Format of images when the link check box is checked: (can be overwritten by user preferences)
- Set ATTACHEDIMAGEFORMAT = \t* $comment:
- Note: Above image is shown as broken, it gets expanded correctly when you attach an image.
- Note: Keyword
$name gets expanded to filename; $comment to comment; $size to width="..." height="..." attribute of img tag; \t to tab (3 spaces for bullets).
Hard-coded formatting is used in case the preferences settings are missing.
Commited to
TWikiAlphaRelease.
--
PeterThoeny - 16 Aug 2001
See also:
AttachedImageDefaultAltText