jrnetwork Posted March 9, 2011 Share Posted March 9, 2011 I'm trying to edit my header.tpl file in my portal template in two ways. But I'm having issues. As soon as I make any valid changes, the template breaks. These are the two changes I'm trying to make: I want to change the title: <title>{$companyname} - {$pagetitle}{if $kbarticle.title} - {$kbarticle.title}{/if}</title> to <title>{$pagetitle}{if $kbarticle.title} - {$kbarticle.title}{/if} - {$companyname}</title> so the page name appears before the company name. It's such a simple change, but as soon as I do this, the template breaks and it's all over the page. The second change I'm trying to do is to put in a favicon.ico file, but inserting this line in the head of my header.tpl file: <link rel="icon" type="image/x-icon" href="templates/{$template}/favicon.ico"> and I've got the favicon.ico file uploaded into that directory. Again, if I make this simple change, the template breaks and it's all over the page. I need to re-upload my unedited version to fix it, not even undoing the changes and then uploading the file fixes it either. Hoping someone here has a solution for this. 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted March 9, 2011 Share Posted March 9, 2011 Those changes should be fine... What editor are you using to save the file? 0 Quote Link to comment Share on other sites More sharing options...
jrnetwork Posted March 9, 2011 Author Share Posted March 9, 2011 Dreamweaver, and then I upload with Dreamweaver, and I've tried uploading with my WS_FTP as well, which works for any thing use, but whenever I change the tpl files I seem to have dramas. 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted March 9, 2011 Share Posted March 9, 2011 (edited) Get yourself NotePad++ and FileZilla In notepad++ set the default file encoding to utf-8 without BOM Then you should be set EDIT: links for you http://filezilla-project.org/download.php http://notepad-plus-plus.org/release/5.8.7 Edited March 9, 2011 by sparky 0 Quote Link to comment Share on other sites More sharing options...
jrnetwork Posted March 9, 2011 Author Share Posted March 9, 2011 I just got Notepad ++ thanks. I've got all my sites setup in WS_FTP which I prefer as I paid for it last year, the pro version. Should I be uploading the .tpl files in binary or ascii mode? 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted March 9, 2011 Share Posted March 9, 2011 a tpl file is basically a text file just like a html file so it should be ascii mode 0 Quote Link to comment Share on other sites More sharing options...
jrnetwork Posted March 9, 2011 Author Share Posted March 9, 2011 By the way, using Notepad ++ as you suggested has worked perfectly. I knew there was nothing wrong with the coding change I had done. This also explains why when I cicked undo in Dreamweaver and then uploaded, it still did not work. Obviously Dreamweaver is not good for editing .tpl files. 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted March 9, 2011 Share Posted March 9, 2011 IMHO... not much good for anything at all. Glad you got it sorted 0 Quote Link to comment Share on other sites More sharing options...
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.