Content Generators

Second Site includes some built-in content generators that you can use in one of the Static Content properties such as Person Pages.Extra SideBar.

Person Pages "Table of Contents"

If you add the HTML shown below to any of the static content areas on a person page, Second Site will generate a list that includes a link to each person included on that page.

<ul id="pagetoc" class="menuside"></ul>

In the example above, class="menuside" is optional; if you include it, the links will be formatted the same way as the sidebar menu. Otherwise, it will be a plain list of links.

List of Charts

If you would like to add a list of charts in the SideBar or Extra Content sections, you can use the GetChartList() script. For example, to add a list of charts as a side-menu on Chart pages, add the following to the Chart Pages.Extra SideBar static content property:

<%=GetChartList("menuside")%>

In the example above, menuside is an optional CSS class name; if you include it, the links will be formatted the same way as the sidebar menu. If you leave the class name blank, as shown below, it will be a plain list of links.

<%=GetChartList("")%>

Random Quote Content

If you add HTML of the form shown below to any of the static content areas, Second Site will pick an entry from the list of quotes and display it. The others will be hidden. Refreshing the page, or browsing to another page, will reveal another entry at random.

<ul class="randomquote">
<li><q>Whenever I hear anyone arguing for slavery, I feel a strong impulse
to see it tried on him personally.</q><br><br>&mdash; Abraham Lincoln</li>

<li><q>My formula for living is quite simple. I get up in the morning
and I go to bed at night. In between, I occupy myself as best I
can.</q><br><br>&mdash; Cary Grant</li>

<li><q>Analyzing humor is like dissecting a frog. Few people are interested
and the frog dies of it.</q><br><br>&mdash; E. B. White</li>

<li><q>I'm living so far beyond my income that we may almost be said to be
living apart.</q><br><br>&mdash; e. e. cummings</li>

<li><q>What then is time? If no one asks me, I know what it is. If I
wish to explain it to him who asks, I do not know.</q>
<br><br>&mdash; Saint Augustine</li>

<li><q>Don't go around saying the world owes you a living. The world owes
you nothing. It was here first.</q><br><br>&mdash; Mark Twain</li>
</ul>

You can add as many <LI> items as you wish, and you can vary the content of the <LI> items to suit your preferences. The key elements are:

<ul class="randomquote"> ... </ul>
This triggers the script to insert the random quote from the list provided.
<li> ... </li>
Each quote must be in a list item; the script hides all but one list item in the list.
<q> quote </q>
Put the quoted text inside a Q element. Using it adds the quotation marks and signals to the browser that the text is a quote. In Second Site, using the Q element allows you to control the formatting of the quote portion of the entry from the Styles menu. Using the Q element is strongly recommended, but not required.
<br><br>&mdash;
This is not required, but shows a blank line and a long dash between the end of the quote and the author's name, which is a common attribution format.
On This Page