Content Manager Help
Create your Templates (page design)
This program uses 2 templates.
1. Home page template - used for main site page ($linksPage)
2. Main template - used for all other pages. (template.html)
For images and style sheets, etc. Alwasy use the full web
address to the image.
<IMG SRC="http://server.com/folder/content-images/image.gif">
Main Template
/content-manager/templates/template.html
You can make the page design just about any way you like.
There are only 6 available tags that you will place on
your template page where you want the page text, title
and links to appear.
If you do not know what a template is, do a search on
Google for 'free web templates' and you will find 100's
of free to use page designs.
Special Tags
These tags are called [search and replace tags]
When the program runs (add new page, etc.) it
searches for the tags and replaces them with the
text that you entered for the page.
<!Key_Words_Here>
<!Meta_Desc_Here>
<!Article_Title_Here>
<!Page_Content_Here>
<!New_Link_Here> or <Script src="/cgi-bin/content-manager/java-links-feed.pl"></Script>
<!Link_Name_Here>
<!Content_Images>
<!Outside_Links>
<!Home_Link>
<!Article_Title_Here> - this will place the Title that you
enter on the admin form on the page where you want it to
appear.
EXAMPLE: <Title><!Article_Title_Here></Title>
EXAMPLE: <H1><!Article_Title_Here></H1>
<!Page_Content_Here> - this will place all the text and
images that you enter on the form on the page where you want it to
appear.
EXAMPLE: <Table>
<!Page_Content_Here>
</Table>
<!New_Link_Here> - this prints the link in a specific format.
The format is:
<A HREF="page_name.html"><Font Class=Links Color=Blue>Title</Font></A><BR>
<!Link_Name_Here> - this prints the name of the page only.
EXAMPLE: page_name.html
<!Content_Images> - this prints the web address to the content-images folder
Please see the templates provided for examples of realtime
use of the templates and tags.
<!Key_Words_Here> - auto generated key words for meta tag
<!Meta_Desc_Here> - auto generated description for meta tag
(1st 100 characters of text)
EXAMPLE:
<meta NAME="description" CONTENT="<!Meta_Desc_Here>">
<meta NAME="keywords" CONTENT="<!Key_Words_Here>">
List of links to the outside world.
<!Outside_Links> - this prints the link in a specific format.
The format is:
<A HREF="http://www.server.com/page_name.html"><Font Class=OutsideLinks Color=Blue>Title</Font></A><BR>
<!Home_Link> - this prints the link in a specific format.
The format is:
<A HREF="$linksPage"><Font Class=Links Color=Blue>$HomeLinkText</Font></A><BR>
YOU MUST USE THIS TAG IF NOT USING THE JAVASCRIPT FEED.
To use the site map feature, the site map will print
IN PLACE OF -> <!Page_Content_Here>
The format is:
<A HREF="page_name.html"><Font Class=SiteMapLinks Color=Blue>Page Title</Font></A><BR>
The Header text Class is: SiteMapHeaderText
Note: if you edit the site map with the editor, you will loose
all the data when you add a page. if you have NO Site map on
the admin options page checked, you will be able to make your
own without loosing the data.
The Home Page Template
/content-manager/templates/index.html
The program will create a home page or an INDEX page
automatically. You can use any of the tags above on
the page. The title of the page you should type in,
and not use the auto generated title.
There is one extra 'special tag' you need to insert in
the home page (index.html) where you want the BODY of
the page to appear.
<!Home_Page_Content_Here> - this is replaced with the
text that you type in using your administration
page, Edit Home Page section.
<!New_Link_Here> - this prints the link in a specific format.
The format is:
<A HREF="page_name.html"><Font Class=Links Color=Blue>Title</Font></A><BR>
If you want to change the link STYLE - the CLASS name is: Links
Just add the .Links to your style sheet. A style sheet is
included with the program.
Style Sheet Help: http://www.w3schools.com/css/css_reference.asp
Javascript Menu Feeds
I highly recommend using the javascript feed for your
pages. It is less server load and very flexable.
Instead of using: <!New_Link_Here>
USE:
<Script src="/cgi-bin/content-manager/java-links-feed.pl"></Script>
JavaScript Help
This is a java script feed of links to all your pages.
Making Template Changes
If you have created many pages and want to change your template,
you can refresh all the pages to reflect the new page design.
This is done on the main admin page.
Editing Templates
In some situations, the editor will not save the template
correctly if you have a large JavaScript on the page or
a JavaScript that has long lines. if you run into this,
edit your template on your desktop and upload the template
to the content manager.
XML Feed
if you are going to use the XML feed, place the feed.xml file
in your /content folder and set the permissions to 666 - rw-rw-rw
The XML feed is regenerated each time you add a page.