| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Golive Users edit tpl files (everyone else ignore) | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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
__________________
version 4.0.18 (+ several cool mods) |
|||||||
#2
|
|||||||||
|
|||||||||
![]() YES!! I am a Golive user was utterly lost until I read this. THANK YOU!
__________________
\"We have only scratched the surface of Mars\"... Jim Garvin X-Cart version 4.0.13 |
|||||||||
#3
|
|||||||
|
|||||||
![]() Thanks for posting this - I've had a few troubles in using golive cs2 to edit my store however. I encountered the following things.
Firstly a 'Select and Set Encoding' dialogue box pops up saying the page has no encoding information. I can select to not modify the page, or select encoing (multilingual, english or japanese) I selected Multilingual (utf-. When I do open up the .tpl to be edited, I can actually find any of the WYSIWYG elements - only further codes on screen - such as {$link_begin}{$link_end} {if $link_href} {$menu_title} {else} {$menu_title} {/if} {$menu_content} in menu.tpl If anyone can help me out here - or maybe let me know which files I can open up to edit the design elements of the xcart in GoLiveCS2 that would be wonderful. Thanks! Heath. |
|||||||
|
|||
X-Cart forums © 2001-2020
|