TWiki Variables » Search » Category: Attachments & Files
Variables in this category:
ATTACHURL -- full URL for attachments in the current topic
- Syntax:
%ATTACHURL% - Expands to:
https://junobase.com/pub/TWiki/VarATTACHURL - Example: If you attach a file you can refer to it as
%ATTACHURL%/image.gif - Category: AttachmentsAndFilesVariables
- Related: ATTACHURLPATH, PUBURL, PUBURLPATH, SCRIPTURL, SCRIPTURLPATH, FileAttachments (this topic)
ATTACHURLPATH -- path of the attachment URL of the current topic
- Syntax:
%ATTACHURLPATH% - Expands to:
/pub/TWiki/VarATTACHURLPATH - Category: AttachmentsAndFilesVariables
- Related: ATTACHURL, PUBURL, PUBURLPATH, SCRIPTURL, SCRIPTURLPATH, FileAttachments (this topic)
META -- displays meta-data
- Provided mainly for use in templates, this variable generates the parts of the topic view that relate to meta-data (attachments, forms etc.) The
formfielditem is the most likely to be useful to casual users. - Syntax:
%META{ "item" ...}% - Parameters:
Item Options Description "formfield"name="...": name of the field. The field value can be shortened as described in FormattedSearch for$formfield.
newline="...": by default, each newline character will be rewritten to<br />to allow metadata that contains newlines to be used in tables, etc.$nindicates a newline character.
bar="...": by default, each vertical bar is rewritten to an HTML entity so as to not be mistaken for a table separator.
encode="type": have the value encoded in the specified type. Possible types are the same as ENCODE's. If this is specified,newlineandbaroptions are ignored.
topic="...": Get meta info of "Topic" or "Web.Topic"; default"%BASEWEB%.%BASETOPIC%".Show a single form field "form"topic="...": Get meta info of "Topic" or "Web.Topic"; default"%BASEWEB%.%BASETOPIC%".Generates the table showing the form fields. See Form Templates "attachments"all="on"to show hidden attachments.
title="..."to show a title - only if attachments are displayed.
template="..."to use a custom template for the rendering of attachments; defaultattachtablesis used.
topic="...": Get meta info of "Topic" or "Web.Topic"; default"%BASEWEB%.%BASETOPIC%".Generates the list of attachments "moved"topic="...": Get meta info of "Topic" or "Web.Topic"; default"%BASEWEB%.%BASETOPIC%".Details of any topic moves "parent"dontrecurse="on": By default recurses up tree, this has some cost.
nowebhome="on": Suppress WebHome.
prefix="...": Prefix that goes before parents, but only if there are parents, default"".
format="...": Format string used to display each parent topic where$webexpands to the web name, and$topicexpands to the topic name; default:"[[$web.$topic][$topic]]"
suffix="...": Suffix, only appears if there are parents; default"".
separator="...": Separator between parents; default" > ".
topic="...": Get meta info of "Topic" or "Web.Topic"; default"%BASEWEB%.%BASETOPIC%".Generates the parent link - Attention: The base topic, not the current topic, is used if
%META{}%is placed in an included topic. Add atopic="%WEB%.%TOPIC%"parameter if you need meta info of the current topic. - Note: Formatting tokens can be used for
newline,prefix,format,suffixandseparatoroptions, such asseparator="$n * " - Category: AttachmentsAndFilesVariables, SearchingAndListingVariables, SystemInformationVariables
- Related: EDITFORM, EDITFORMFIELD, FORM, FORMFIELD, METASEARCH, PARENTTOPIC, SEARCH, ENCODE, FormattedSearch (this topic)
PUBURL -- the base URL of attachments
- Syntax:
%PUBURL% - Expands to:
https://junobase.com/pub - Example: You can refer to a file attached to another topic with
%PUBURL%/%WEB%/OtherTopic/image.gif - Category: AttachmentsAndFilesVariables, SystemInformationVariables
- Related: ATTACHURL, ATTACHURLPATH, PUBURLPATH, SCRIPTURL, SCRIPTURLPATH, FileAttachments (this topic)
PUBURLPATH -- the base URL path of attachments
- Syntax:
%PUBURLPATH% - Expands to:
/pub - Category: AttachmentsAndFilesVariables, SystemInformationVariables
- Related: ATTACHURL, ATTACHURLPATH, PUBURL, SCRIPTURL, SCRIPTURLPATH, FileAttachments (this topic)
Categories:
Administration, Applications & Components, Attachments & Files, Charting & Drawing, Database & Forms, Date & Time, Development, Editing & Content Update, Email & Notification, Export & Publishing, Formatting & Rendering, Import, Linking & Navigation, Searching & Listing, Security & Access Control, Skins & Templates, System Information, Tables & Spreadsheets, UI& Visualization, Users & Authentication, Workflow & Automation
