How to make a call-out

A call-out is a sort of advertisment on your own site that calls a user to perform some sort of action.  Some of the most common examples are the "Download Now" boxes on software websites, "Apply Now" boxes on college websites, or a tease for a featured columnist in the sidebar on a newspaper website.

Step 1: Create a new page to hold your call-outs.

 

Make sure to have this page not appear in the menu.  After you've created this page, be sure to write down its PageID.

Step 2: Start creating your call-outs.

 

Whatever you want your call-outs to say should be placed in the PageBody area.

Step 3: Place the call-out into your template.

 

Create some space on your template (a table cell, an empty DIV tag, etc ...) to place your call-out.  Now, using the simple common functions, place the code on the page you'll need to display the call-out.

For a random call-out:

echo GetPageBody(GetRandomChild( n , $CurrentUserID), $CurrentUserID);

Where n is the PageID you marked down in Step 1.

For a specific call-out:

echo GetPageBody( n , $CurrentUserID);

Where n is the PageID of whichever specific call-out you want to display.

Step 4: Re-render all the pages using that template

 

After you've saved your template, log in to your simple site using an administrative account.  Open the management console and go to the "templates" tab.  Now, click on "Update All Pages" for the template you just edited.

Results: