How can I create a site with Silva??

Asked by Y-Not?

Hello,
I want to create a site with silva, but I don't know how to create some frame. I want to have a header a left block for the menu and a central part for the information, how can I do that please? Is it possible to have some sources of a site create with silva

thank
Y-Not?

Question information

Language:
English Edit question
Status:
Solved
For:
Silva Edit question
Assignee:
No assignee Edit question
Solved by:
Y-Not?
Solved:
Last query:
Last reply:

This question was reopened

Revision history for this message
Wim Boucquaert (wim-boucquaert) said :
#1

Hi,

What you need to do is install Silva and then create/develop a Silva and install the documentation.
You can then have a look at the templates used for rendering the documentation. It has a header a left block for the menu and a central part for the information.

Regards

Wim

Revision history for this message
Y-Not? (lonerccn) said :
#2

I have install silva documentation but I don't understand how can I have to use template and macro. Do you know where i can find some real exemple of silva site (sources)?

thank you for your help

Y-Not?

Revision history for this message
Wim Boucquaert (wim-boucquaert) said :
#3

Hi,

You can find more information about the templating language here:
http://www.zope.org/Documentation/Books/ZopeBook/2_5_edition/AppendixC.stx

Regards

Wim

Revision history for this message
Y-Not? (lonerccn) said :
#4

Hi,

Where is the index template file? what are the files to changed to have a different view of the main page (change the menu visuals and add another template part?

thanks

Y-Not?

Revision history for this message
Wim Boucquaert (wim-boucquaert) said :
#5
Revision history for this message
Y-Not? (lonerccn) said :
#6

Thanks Wim Boucquaert, that solved my question.

Revision history for this message
Y-Not? (lonerccn) said :
#7

Hi, I use to make a template like this:
TOP TOP TOP TOP
MENU BODY
           BODY
           BODY
BOTTOM

<html metal:define-macro="page">
  <head>
   <metal:block define-slot="head">
   <title tal:content="template/title">The Title</title>
   </metal:block>

<style type="text/css">
<!--
.top {background-image:url(banniere.JPG);
  width: 790px;
height: 150px;
  background-color: #123476;
  margin-left: 0px;
  margin-top: 0px;
position: absolute;

left: 5px;
  }
.menu {

  width: 170px;
  height: 300px;
  background-color: #123456;
  margin-left: 0px;
  margin-top: 0px;
position: absolute;
  top: 150px;
left: 5px;

  }
.corps {
  width: 620px;
  height: 600px;
  background-color: #123486;
  margin-left: 0px;
  margin-top: 0px;
position: absolute;
top: 150px;
left: 175px;
  }
.bas {
  width: 790px;
  height: 50px;
  background-color: #123476;
  margin-left: 0px;
  margin-top: 0px;
position: absolute;
  top: 750px;
left: 5px;
  }
-->
</style>

  </head>
  <body>

 <div metal:define-slot="top" ALIGN=center class="top">
    TOP TOP
    </div>

 <div metal:define-slot="menu" ALIGN=left class="menu">
    MENU
    </div>

    <div metal:define-slot="body" ALIGN=center class="corps">
    BODY BODY
    </div>

    <div metal:define-slot="bas" ALIGN=center class="bas">
   BOTTOM
    </div>

  </body>
</html>

Now I don't know how to tell the template (<href >?), I using to do something like this:
<a href="standard_template.pt"
 tal:attributes="href TITLE/topPage/MenuPage/BodyPage/BottomPage">
The link</a>

Thanks
Y-Not?

Revision history for this message
Y-Not? (lonerccn) said :
#8

I find the solution :)