Help with layout on a template

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Locked
gazza

Help with layout on a template

Post by gazza »

Hello Forum

I am very new to web design and even newer to cms, so if i make errors in posting please forgive me.
I am trying to set up a website using the Layout top menu + 2 columns i have managed to work out how to change the header and logo and some basic sizing, i know how to edit the main content, but what i am stuck with is the column on the left i would like to add a couple of boxes that can either be edited with content text of images and i would like it that this is done on the template side so i don't have to add to all the pages within the site.

I thank you for your help and time on this matter in advance and look forward to hearing from you

Garry
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: Help with layout on a template

Post by Dee »

Hello Gary,

In the CSS top menu + 2 columns template the sidebar is defined with this code:

Code: Select all

      {* Start Sidebar *}
      <div id="sidebar" class="hascontent">
         {content block='Sidebar'}
      </div>
      {* End Sidebar *}
Because it contains {content block='Sidebar'} you will get a content block you can edit/change when you create/edit the (each) page.
Try replacing the content block with a Global Content Block (or add a Global Content Block above or underneath):

1. add a Global Content Block, in the admin "Content" -> "Global Content Blocks" -> "Add Global Content Block", name it "sidebar-block1" for example.

2. add it to your page template:

Code: Select all

      {* Start Sidebar *}
      <div id="sidebar" class="hascontent">
         {content block='Sidebar'}
         {global_content name='sidebar-block1'}
      </div>
      {* End Sidebar *}
Regards,
D
Locked

Return to “Layout and Design (CSS & HTML)”