It IS possible to edit your tpl files in Golive.
But you have to change some preferences (or Golive will change your code).
Here are some tips for GoLive users
* I'm taking time to share this because others were willing to help me with my problem
1) TURN OFF %HH ESCAPING
Golive may do strange things with the { symbol if you don't. You need to turn it off in two places...
- Preferences > General > URL Handling
- Site > Settings > URL Handling
2) ADD TPL TO WEB SETTINGS
- see
http://www.golivein24.com/tips/tips_pages/tip043.html
3) NO TABS OR COMMENTS IN CODE
- Someone told me not to put comments or tabs in the code. I haven't tested this and just heeded the warning. To take out tabs (so code is aligned on the left) go Preferences > Source and uncheck "Auto Indent". For comments, just make sure not to add any.
---
You can now edit files in GoLive. A couple things to watch out for though...
- while I was editing one file, GoLive changed all the " symbols to """ - I changed them back & haven't seen the problem again, but I thought I'd mention it in case it happens to someone else.
- If you add Javascript to the page you need to put {literal}{/literal} around the code. This includes Golive "actions" (which are Javascript). I personally don't use actions in my X-Cart site but instead dropped in javascript from another source. Remember to add a link to your .js file to the main head section (in home.php).
- If you add a GoLive Action to a tpl file, golive may place some code at the top of the page (that should instead be in your home.php file). Erase the code at the top - your tpl files should always start with {* $Id: . If you find this happening a lot, use cut/paste javascript instead of GoLive Actions (this is what I do).
- If there's a piece of code GoLive just detests (and tries to change) you could put <noedit></noedit> around the problem code. I haven't needed to do this, but I thought I'd mention it just in case.
That's it. I made those changes and am now happily editing tpl files in GoLive.
Hope that helps someone!
:Stacey