Own template

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
tomasso

Own template

Post 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 
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: Own template

Post by tsw »

replace your content in the template with {content} and your menu with {menu}
tomasso

Re: Own template

Post by tomasso »

can you explain that in more detail please=)
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: Own template

Post by tsw »

paste your template here
tomasso

Re: Own template

Post 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. . .
User avatar
moonie
Forum Members
Forum Members
Posts: 81
Joined: Tue Feb 13, 2007 3:08 pm

Re: Own template

Post 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.
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: Own template

Post 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>
Pierre M.

Re: Own template

Post 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.
Locked

Return to “CMSMS Core”