GNHLUG
>
TWiki Web
>
TWikiVariables
>
VarADDTOHEAD
(2013-09-12,
TWikiContributor
)
(raw view)
E
dit
A
ttach
#VarADDTOHEAD ---+++ ADDTOHEAD -- add HTML to the HTML head section of the current page * Useful for TWiki applications to add custom CSS or !JavaScript to the HTML head section of a topic. Supplied TWiki variables will be expanded. =%<nop>ADDTOHEAD{}%= expands in-place to an empty string, unless there is an error in which case the variable expands to an error string. * Syntax: =%<nop>ADDTOHEAD{ "..." text="..." }%= * Supported parameters: | *Parameter:* | *Description:* | *Comment:* | | ="..."= | ID of the head block, such as ="MY_CSS"= | Optional but recommended | | =text="..."= | HTML text to add to the head section | Mutually exclusive with =topic=""= | | =topic="Web.TopicName"= | Name of topic that contains the full HTML text to add to the head section, such as =topic="%USERSWEB%.MyCssTopic"= | Mutually exclusive with =text=""= | | =section="name"= | If topic parameter is used, includes only the specified named section, as defined in the topic by the [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarSTARTSECTION][STARTSECTION]] and [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarENDSECTION][ENDSECTION]] variables. Nothing is shown if the named section does not exists. =section=""= is equivalent to not specifying a section | Optional | | =requires="..., ..."= | Comma-separated list of other IDs this one depends on | Optional | * Category: ApplicationsAndComponentsVariables, DevelopmentVariables * Example: =%<nop>ADDTOHEAD{ "MYBOX_CSS" text="<style type=\"text/css\"> .myBox { height: 22px; background-color: #AFB3C5; } </style>" }%=
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r2
<
r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r2 - 2013-09-12
-
TWikiContributor
TWiki
Log In
or
Register
TWiki Web
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
User Reference
ATasteOfTWiki
TextFormattingRules
TWikiVariables
FormattedSearch
QuerySearch
TWikiDocGraphics
TWikiSkinBrowser
InstalledPlugins
Admin Maintenance
Reference Manual
AdminToolsCategory
InterWikis
ManagingWebs
TWikiSiteTools
TWikiPreferences
WebPreferences
Categories
Admin Documentation
Admin Tools
Developer Doc
User Documentation
User Tools
Webs
GNHLUG
Main
Org
TWiki
Copyright © 1999-2025 by the contributing authors. All material from TWiki is the property of the contributing authors.
Questions, comments, or concerns?
Contact GNHLUG
.
All use of this site subject to our
Legal Notice
(includes Terms of Service).