|
Make
a sidebar template to apply to all pages
.
NOTE:
with a standard MovableType installation, you would
have to edit 3-5 pages to change or add links in
your sidebar. With these instructions you can
create a sidebar template so that you only have to
edit one file. 1.
Open your Main Index Template 2.
Select all your sidebar code and copy it to Notepad.
your sidebar code should start
with
<div id="right">
(or left) followed by <div
class="sidebar">
and end with two closing div
tages: </div> and </div> 3.
Now, in your Templates section, scroll all the way
down to "Template Modules"
-click "create new template
module"
-type "side bar" into
the Template Name field
-leave "Link this template
to a file" blank
-paste the copied sidebar code
from your main index template
into the "Module
Body" field (should look something
like below)
<div id="right">
<div class="sidebar">
A WHOLE BUNCH OF LINKS AND STUFF
</div>
</div>
4.
go into each template that has your sidebar: like
Main Index, Category Archive, Date-Based Archive and
the like, replace all the sidebar code with this tag
and rebuild your site!
<$MTInclude
module="side bar"$>
Yay!
now you only have to edit the sidebar once! NOTE:
be sure to make all image URL's their full path.
So change any images from "img
src=images/myphoto.jpg"
to "img
src=http://yoursite.com/images/myphoto.jog"
|