~kosova/+junk/tuxfamily-twiki

« back to all changes in this revision

Viewing changes to foswiki/data/System/VarADDTOHEAD.txt

  • Committer: James Michael DuPont
  • Date: 2009-07-18 19:58:49 UTC
  • Revision ID: jamesmikedupont@gmail.com-20090718195849-vgbmaht2ys791uo2
added foswiki

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
%META:TOPICINFO{author="ProjectContributor" date="1231502400" format="1.1" version="1"}%
 
2
%META:TOPICPARENT{name="Macros"}%
 
3
#VarADDTOHEAD
 
4
---+++ ADDTOHEAD
 
5
You can write =%<nop>ADDTOHEAD{...}%= in a topic or template. This variable accepts the following parameters:
 
6
   * =_DEFAULT= optional, id of the head block. Used to generate a comment in the output HTML.
 
7
   * =text= optional, text to use for the head block. Mutually exclusive with =topic=.
 
8
   * =topic= optional, full Foswiki path name of a topic that contains the full text to use for the head block. Mutually exclusive with =text=. Example: =topic="%WEB%.MyTopic"=.
 
9
   * =requires= optional, comma-separated list of id's of other head blocks this one depends on.
 
10
=%<nop>ADDTOHEAD%= expands in-place to the empty string, unless there is an error in which case the variable expands to an error string.
 
11
 
 
12
Use =%<nop>RENDERHEAD%= to generate the sorted head tags.