Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Golive Users edit tpl files (everyone else ignore)

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-18-2004, 09:13 PM
 
idesign123 idesign123 is offline
 

Advanced Member
  
Join Date: Jan 2004
Posts: 58
 

Default Golive Users edit tpl files (everyone else ignore)

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 "&quot" - 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)
Reply With Quote
  #2  
Old 05-10-2005, 01:16 PM
  AgileMolecule's Avatar 
AgileMolecule AgileMolecule is offline
 

Member
  
Join Date: May 2005
Posts: 28
 

Default

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
Reply With Quote
  #3  
Old 08-04-2006, 05:32 AM
 
illumination illumination is offline
 

Member
  
Join Date: Aug 2006
Posts: 12
 

Default

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.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:58 AM.

   

 
X-Cart forums © 2001-2020