Page 1 of 1

Help with building a template/custom page(s)

Posted: Mon May 22, 2006 4:18 pm
by thepieman
I’ve been trying to create a template/custom page(s) for a client.

The page(s) I’m trying to build will either allow the client to input a paragraph or two with a table structure below that, or simply a page with a table on it.

As I’ve said I’ve tried to create a page(s) but without success, I started by creating a new template and pasting the table structure into it. I then attached a style sheet that I’ve used to control the structure of the table.

However, when I create a new page and select the template from above, the table doesn’t appear! I need to do it this way because the client has no knowledge of HTML and although the editor in CMSMS is easy enough to use, I’d like to place a level of control on how the pages look; it is as much that I’d only like to client to either add or delete rows from the table.

Re: Help with building a template/custom page(s)

Posted: Tue May 23, 2006 4:47 am
by cyberman
Can you post the sorce of your template and css here ?

Re: Help with building a template/custom page(s)

Posted: Tue May 23, 2006 3:46 pm
by thepieman
Here is the code for the template and the CSS, I've literally taken a normal template and inserted the code in it; thinking that I can produce the effect I want by creating a global content block i.e. {global_content name='victable_block'}

I'm obviously misunderstanding what you can and can't do with these tags, but thanks for taking the time out to look at the problem.

1) First part is the template code
2) Is the css
I've posted another thread onto this message showing the html I'm using to create the table structure.









CMS Made Simple Demo - {title}

{metadata}
{stylesheet}

{cms_selflink dir="start" rellink=1}
{cms_selflink dir="prev" rellink=1}
{cms_selflink dir="next" rellink=1}

{global_content name='JavaScript for IE page width'}







   
   
      Skip to navigation
      {cms_selflink anchorlink='main' dir='anchor' text='Skip to content'}
   
   

   


 
 
          {cms_selflink dir="start"}
 
 
 


 
 
        {breadcrumbs starttext='You are here' root='Home' delimiter='»'}
 
 
 


 
 

     
     
        Navigation
        {cms_module module='menumanager' collapse='1'}
     
     
     


     
     
        {title}
        {content}



{global_content name='victable_block'}

       


{cms_selflink anchorlink='main' dir='anchor' text='^ Top'}

       
            {cms_selflink dir="previous"}

            {cms_selflink dir="next"}
       


     
     
 


 
 


 
 
      {global_content name='footer'}
 
 











body{
  font-size: small;
  font-family: areal, helvectica, sans-serif;
  margin: 0;
  padding: 0;
}


table {
    width: 100%;
    border: 1px solid #000;
    background: #fff;
}
table caption{
  margin: 0;
  padding: 8px 20px;
  text-align: left;
  background: #fff;
}
table th, table td{
  margin: 0;
  padding: 8px 20px;
  text-align: center;
  border-bottom: 1px solid #b5b5b5;
}

table tr{
  background: #e6e6e6;
}
table td a {
  display: block;
  font-weight: bold;
}

Re: Help with building a template/custom page(s)

Posted: Tue May 23, 2006 4:04 pm
by thepieman
Here is the html I'm using in the global content block




    To save a file: Right click mouse button and choose Save As.
   
       
            Title
            Description
            File Size
       
       
            file1
            This is file 1
            14kb
       
       
            file2
            This is file 2
            14kb
       
       
            file3
            This is file 3
            14kb
       
   



Re: Help with building a template/custom page(s)

Posted: Sun Oct 01, 2006 10:30 am
by stinhambo
Any answer to this? I will be working on something like this shortly so it would be nice to see a solution!

Re: Help with building a template/custom page(s)

Posted: Mon Oct 02, 2006 10:12 am
by cyberman
thepieman wrote: The page(s) I’m trying to build will either allow the client to input a paragraph or two with a table structure below that, or simply a page with a table on it.
Have you tried to use pageblocks module?

http://dev.cmsmadesimple.org/projects/pageblocks/