Overview

Second Site supports TMG's printer codes such as [BOLD:], etc., but it also includes support for codes that are only recognized by Second Site. Using TMG's [HID:] and [:HID] codes, you can include the SS-only codes in your TMG data but prevent TMG from attempting to process them.

In addition to the codes shown on this page, there are codes that are part of the Flag Events facility.

SS

Second Site supports [SS:]text[:SS], a special formatting code that makes it possible to restrict selected text to Second Site only. You can use this code if you want a portion of a memo to be processed only by Second Site.

The [SS:]text[:SS] code is designed to be used in conjunction with TMG's [HID:] and [:HID] format codes. The [SS:] code temporarily undoes the effect of TMG's [HID:] code.

For example, you might key the following text into the memo field of an Anecdote tag to include an HTML link that is ignored when you run TMG reports but included when you make a site:

Example 1

The transcript reveals fascinating details of 19th
century life. [HID:][SS:]<a href="doc1099.pdf">
<img src="pdficon.gif"></a>[:SS][:HID]

When Second Site makes the site, it will include the text within [SS:] and [:SS]. In this case, the text is HTML that will produce a clickable icon to download a PDF document. TMG will ignore all the text between [HID:] and [:HID] because it is within the HID codes.

Note that [SS:] and [:SS] may be used anywhere within [HID:] and [:HID]:

Example 2

[HID:]Hidden text [SS:]Text visible in SS only[:SS] More hidden
text[:HID]

SS-HID

Second Site supports [SS-HID:]text[:SS-HID], a special formatting code that makes it possible to restrict selected text to TMG only. When used in conjunction with TMG's [HID:] and [:HID] format codes, the code can be used to force Second Site to ignore text that is processed by TMG.

For example, you might key the following text into a memo field to include formatting codes in TMG that are ignored when you make a site:

Example

[HID:][SS-HID:][:HID][:CR:][:CR:][HID:][:SS-HID][:HID]
[LIND:]My mother and sister were in town at the hardware
store when the telegram arrived. We told them ... [:LIND]

[SS-HID:] and [:SS-HID] must be placed inside [HID:] and [:HID] because they are not valid TMG printer codes. Second Site processes the text and detects the SS-HID codes. Any text between [SS-HID:] and [:SS-HID] will not be processed, and so the [:CR:] codes do not affect the Second Site output.

You may use the [PageLink:]id;name[:PageLink] code in memos to create an HTML link to the person indicated by the id, which must be a TMG ID#. The optional name parameter is used to specify the link text, the text that the user will click to follow the link. If you do not include the name parameter, Second Site will use the primary name of the person as the link text.

In most cases, you should wrap the PageLink codes inside HID codes as shown below. This will hide the PageLink code from TMG.

Examples

[HID:][SS:]See [PageLink:]17[:PageLink][:SS][:HID]

[HID:][SS:]See [PageLink:]17;J. Doe[:PageLink][:SS][:HID]

PageHRef

You may use the [PageHRef:]id[:PageHRef] code in memos to create an HTML HRef parameter to the person indicated by the id, which must be a TMG ID#.

In most cases, you should wrap the PageHRef codes inside HID codes as shown below. This will hide the PageHRef code from TMG.

Example 1

[HID:][SS:]See <a href="[PageHRef:]17[:PageHRef]">J. Doe</a>
[:SS][:HID]

PageHRef is similar to the PageLink code, but PageHRef creates the HRef parameter value whereas PageLink creates the entire HTML A element (link).

Current Person Shortcut

You can use a shortcut version of the PageHRef code when you are referring to the current person. This is useful when linking between sites that are both created with Second Site.

Example 2

[HID:][SS:]See entry on <a href="../othersite/[:PageHRef:]">
other site</a>[:SS][:HID]

Exhibit Codes

Second Site supports codes you can place in the Description field of the TMG Exhibit record to alter exhibit processing. The codes are described below. Some of the codes override the behavior specified in the Exhibit Section for the given type of exhibit.

To hide the Second Site-only codes from TMG, place them inside TMG's [HID:] and [:HID] codes. If you omit the HID codes, TMG will include the Second Site codes anywhere it displays the Exhibit Description. Second Site will detect its codes, and hide them, even if you neglect to provide the [HID:] and [:HID] codes.

Ignore, Link, or Embed

Code Description and Example
[:SS-IGNORE:] When an image exhibit's description includes [:SS-IGNORE:], Second Site will ignore the image even if the associated Exhibit Section option is set to Embed or Link. Use this option to ignore selected images when the default behavior is to embed or link.

Example:
[HID:][:SS-IGNORE:][:HID]

[:SS-LINK:] When an image exhibit's description includes [:SS-LINK:], Second Site will link the image even if the associated Exhibit Section option is set to Embed. Use this code to link selected images when the default behavior is to embed.

Example:
[HID:][:SS-LINK:][:HID]

[:SS-EMBED:] When an image exhibit's description includes [:SS-EMBED:], Second Site will embed the image even if the associated Exhibit Section option is set to Link. Use this code to embed selected images when the default behavior is to link.

Example:
[HID:][:SS-EMBED:][:HID]

[:SS-EMBED-LEFT:] [:SS-EMBED-LEFT:] is a variation of [:SS-EMBED:] where the image will float left even if the default for embedded exhibits is set to float right or centered.

Example:
[HID:][:SS-EMBED-LEFT:][:HID]

[:SS-EMBED-CENTER:] [:SS-EMBED-CENTER:] is a variation of [:SS-EMBED:] where the image will be centered even if the default for embedded exhibits is set to float left or float right.

Example:
[HID:][:SS-EMBED-CENTER:][:HID]

[:SS-EMBED-RIGHT:] [:SS-EMBED-RIGHT:] is a variation of [:SS-EMBED:] where the image will float right even if the default for embedded exhibits is set to float left or centered.

Example:
[HID:][:SS-EMBED-RIGHT:][:HID]

Please note that if the associated Exhibit Section option is set to Ignore, using the codes listed above will have no effect; you can use those codes to override Embed or Link, but you can not use them to override Ignore.

SS-LINK-TEXT

The [SS-LINK-TEXT:]parameter(s)[:SS-LINK-TEXT] code customizes the text used when Second Site creates a link to an exhibit. The default when no SS-LINK-TEXT code is supplied is an icon with the tooltip set to the exhibit's caption. If you supply the SS-LINK-TEXT code in the Description field of the Exhibit record, you can supply text and/or HTML to control the link.

You may supply one, two, or three parameters as part of the text enclosed by the SS-LINK-TEXT codes. The parameters are separated by semicolons. You do not have to supply any HTML if you use the one-parameter or three-parameter versions. You do have to provide HTML if you use the two-parameter version, but you have the most control over the link when using that method.

One Parameter

If you specify one parameter, the text is used as the text for the link to the exhibit:

[SS-LINK-TEXT:]link text[:SS-LINK-TEXT]

Example
  • Input: [SS-Link-Text:]Wedding Party[:SS-Link-Text]
  • HTML: <a href="href">Wedding Party</a>
  • Result: Wedding Party

Two Parameters

If you specify two parameters, Second Site makes the link by inserting the HREF of the exhibit between the first parameter and the second parameter:

[SS-LINK-TEXT:]prefix HTML;suffix HTML[:SS-LINK-TEXT]

Your text should produce a valid HTML A element or the link will not work.

Example
  • Input: [SS-Link-Text:]See: <a href=";">Wedding Party</a> picture[:SS-Link-Text]
  • HTML: See: <a href="href">Wedding Party</a> picture
  • Result: See: Wedding Party picture

Three Parameters

If you specify three parameters, Second Site uses the first and third values as a prefix and suffix, respectively, and inserts a link between them, using the second parameter as the link text:

[SS-LINK-TEXT:]prefix text;link text;suffix text[:SS-LINK-TEXT]

Example 1
  • Input: [SS-Link-Text:]See: ;Wedding Party; picture[:SS-Link-Text]
  • HTML: See: <a href="href">Wedding Party</a> picture
  • Result: See: Wedding Party picture
Example 2
  • Input: [SS-Link-Text:](;Wedding Party;)[:SS-Link-Text]
  • HTML: (<a href="href">Wedding Party</a>)
  • Result: (Wedding Party)
On This Page