Template Syntax Tags
A raw list of supported tags:
###%header% This outputs the meta information for each page. It should be placed between the
<head>tags in your template file.
###%title% Outputs the title of the current page.
###%user_header% Allows the user to place any custom code into the header of the page.
###%style_variations% Outputs a series of style sheets into the head of the page, as selected by the user via theme styles tab of the Page Inspector.
###%user_styles% Outputs the users custom CSS into the head of the users page.
###%navigation% Outputs the site navigation as an unordered list. Replaces
%toolbar%, which is deprecated in RapidWeaver 6.0.
###%top_navigation% New in RapidWeaver 6.0 Outputs an unordered list of just the top-level of the page hierarchy.
###%sub_navigation% New in RapidWeaver 6.0 Outputs an unordered list of the remaining sub-navigation of the hierarchy, and respects the RWAlwaysDisplayFullNavigation key.
###%toolbar% Deprecated in RapidWeaver 6.0 You should move to using %navigation% in its place.
###%site_title% Outputs the site title
###%site_slogan% Outputs the site slogan entered in the Site Setup area.
###%logo% Outputs a user definable site wide image. This is set via the Site Setup area, and RapidWeaver does not pre-flight the images the customer may select for their size. Depending on how you’re using this tag, you may want to apply some sensible maximum size for the image via CSS.
###%content% Outputs the content of the current page.
###%sidebar_title% Outputs the sidebar title as entered in the Page Inspector.
###%sidebar% Outputs the sidebar content as entered in the Page Inspector.
###%plugin_sidebar% Outputs content specific to the current page style. For example, the blog archives.
###%breadcrumb% Generates an unordered list of links from the home page to the current page following the menu hierarchy in the Page List.
###%footer% Outputs the site’s footer as entered in the Site Setup area.
%pathto()%can be used for any file (styles.css for example), however the file must be added to the RWCopyFiles array in the theme.plist file.
###%base_url% Outputs the web address of the website, as entered in the Site Setup area.
###%last_published% Outputs the last published date - this is not currently customisable in its appearance.
###%email% Outputs the user’s e-mail address.
Colourtags allow customers to customise a particular colour value in your theme using the OS X colour picker. The colour values from a colourtag must currently be set via a separate stylesheet (normally called colours.css or colourtags.css) This style sheet must be included in the
RWColourTagCSSFilesarray in the theme.plist, to indicate to RapidWeaver that the colours should be substituted.
###%colour...% eg. %colour_header_background% Each tag used be replaced by a colour specified in the theme.plist There are no restrictions placed on the number of colour tags you can use, and you may also use the same tag multiple times. As noted above, all colourtags need to be placed in a specific stylesheet, and explicitly referenced in your theme’s PLIST.
The Syntax Tags found in html template files will be replaced with actual content when the page is published or exported by RapidWeaver. The tags can be placed anywhere within the template html file. A RapidWeaver Syntax Tag looks like this:
For example, this is the tag for the main content of the page anything in the main window in RapidWeaver will be inserted here.
This tag refers to the Sidebar area in the Page Inspector, again any text or images entered into the Sidebar in RapidWeaver will be converted to HTML and will replace this tag in the template html file.
the published code will look something like this:
Folders can be included before the image name eg.
The published code will look something like this: