Jump to content

Recommended Posts

Posted

Hi

I've successfully added a banner to my home page by modifying the main index template.

However when I selct categories or Archives my banner image disappears.

Any suggestions?

 

Also, after editing my archive template whenever I choose archives or some of my recent categories or a recent entry I get a 'smarty error'.

 

ie

 

Smarty error: the $compile_dir '/home/bitstre/public_html/mt/templates_c' does not exist, or is not a directory.

 

 

What causes this and how can I avoid them?

Posted

Hi jbach,

 

To fix your first problem, you should add the banner not only to your main index template but also to your monthly archives template, your individual entry template, and the category template. Alternately, you can create the banner (and whatever else you want to make sure shows up near the banner on every screen) as a Movable Type template module and insert it into each of the templates I mentioned above.

 

As for the smarty error, it sounds like you have the Smarty plugin installed. The people that I know who know the most about MT would be Arvind (http://movalog.com/) and TCH-Lisa (although she doesn't use MT anymore and hasn't since the spring).

 

Good luck!

Posted

Smarty is the dynamic templating engine that is used in Movable Type (more information available http://smarty.php.net) When you switch on dynamic templating, you need to create a directory called templates_c and set its permissions to 777. That's what you need to do

 

On the banner note, check out Elise's tutorial on how to add banner images!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...