jbach Posted November 17, 2004 Posted November 17, 2004 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? Quote
kaseytraeger Posted November 17, 2004 Posted November 17, 2004 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! Quote
arvind Posted November 17, 2004 Posted November 17, 2004 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! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.