Overview

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="menublock menuside"><li></li></ul>

In the example above, class="menublock 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.

The <li></li> is provided to avoid validation errors; UL and OL elements are required to contain at least one LI element. The scripts will remove the empty LI element before adding the actual content.

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("menublock menuside")%>

In the example above, menublock menuside are optional. If you specify those CSS class names, 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("")%>

Here is an advanced example where the list of charts is placed in a submenu on the side-menu.

<ul class="menublock menuside">
  <li class="hasmenu"><a>Charts</a>
  <%=GetChartList("submenu")%>
  </li>
</ul>

The GetChartList() function only returns Page Item charts, i.e., charts that are on their own, dedicated page.

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>
<div>&mdash; Abraham Lincoln</div></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>
<div>&mdash; Cary Grant</div></li>

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

<li><q>I'm living so far beyond my income that we
may almost be said to be living apart.</q>
<div>&mdash; e. e. cummings</div></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>
<div>&mdash; Saint Augustine</div></li>

<li><q>Don't go around saying the world owes you a living.
The world owes you nothing. It was here first.</q>
<div>&mdash; Mark Twain</div></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.
<div>&mdash; ... </div>
This is not required, but shows a long dash and the author's name on a new line after the quote, is a common attribution format.
On This Page