Page 1 of 1
Own template
Posted: Mon May 14, 2007 2:35 pm
by tomasso
How can I set up my own template and still make the site easy to update??
I understand the system for the premade templates, but when I try to integrate my own you can't really update content in pages!!
thomas
Re: Own template
Posted: Mon May 14, 2007 3:33 pm
by tsw
replace your content in the template with {content} and your menu with {menu}
Re: Own template
Posted: Mon May 14, 2007 3:41 pm
by tomasso
can you explain that in more detail please=)
Re: Own template
Posted: Mon May 14, 2007 3:45 pm
by tsw
paste your template here
Re: Own template
Posted: Mon May 14, 2007 3:56 pm
by tomasso
Untitled Document
{literal}
window.onload=show;
function show(id) {
var d = document.getElementById(id);
if (d==null){
if (id=='!'){
//alert("top level menu, do nothing");
} else {
//alert("window loaded or refreshed, show menus in CLOSED state");
for (var i = 1; i
Home
About Fora
Organisation
Employees
Research
Projects
Reports
Working papers
Presentations
News
News archive
Events
Links
NAEC
ICE
Contact
this is just the menu so far. . .
Re: Own template
Posted: Tue May 15, 2007 6:09 am
by moonie
Hello tomasso
Try the following: First, get rid of your ... part. CMSMS has a tag to call the menu out of the system, therefore you will not need to manually set it in your template.
Second, replace your whole ... with {menu}. This will load the hierarchical menu structure you have defined in the cms. For the content you will have to do something similar, but this time put the tag {content} in your template at the place you want the content parts for each menu in your cms to display.
A good tip is to always consult the Help in the admin interface, in this case the Help for the MenuManager, to give you an idea what parameters etc. you could use with the {menu} tag.
Re: Own template
Posted: Tue May 15, 2007 8:28 am
by tsw
in other words all that comes
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<__html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- why not use utf8? -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{title}</title>
{stylesheet}
{metadata}
</head>
</__body>
<div id="logo">
<img src="http://www.thomaslein.com/fora/uploads/images/img/logo_tjoms.gif" alt="logo">
</div>
<div id="menu">
{menu}
</div>
<__body>
</__html>
Re: Own template
Posted: Tue May 15, 2007 1:02 pm
by Pierre M.
Hello Thomas,
tomasso wrote:
...I understand the system for the premade templates,
Cool. You can make your own templates from scratch as greatly explained above by tsw and moonie. You can "derive" the premade templates you understand by copying/renaming them and edit the copies too.
Pierre M.