![]() |
Help ! Dont understand how to change design
Oups ... dont understant nothing !
When I try to get the html code, I get insted a bizarre code, named "Smarty". How do I manage it ? with Dreamweaver ? Is there anytghing special to manage this code ? Help , and thanks !!! |
Hi gregg
X-cart pages are made up of lots of small chunks of html which you will find under "Edit templates" in X-cart admin. For instance, the template file head.tpl controls what appears at the top of the page, and skin1.css is the css file for the whole site. Personally I edit code directly in the template editor, I believe you can edit templates in Dreamweaver but make sure it doesn't interfere with the code or you might stop your store working. Using a text editor is usually the best bet. |
Thanks !
So you must choose in the .tpl file the html and let the Smarty code as it is ? It is very complicated don't you think ? And you have to change EVERY page of the site when you want to implement a new design ? |
Greg,
you can see what smarty is all about at http://smarty.php.net also check the forum faq , xcart faq and xcart manual for lots of tips on how to get started |
Code? What Code!?
Listen I would like the ability to edit these X-cart things but I am NOT a code person.. I am a Macromedia see what you get and redesign it person.
So is this possible with X-Cart.. I mean is there something out there that will let us idiots edit the way it looks? Jay |
Sorry Jay, you really need to know how HTML works in order to edit the templates. Dreamweaver and other WYSIWYG editors don't understand Smarty.
|
You can also copy the code from the .tpl file to a page in dreamweaver and edit the way you want, compare the smarty codes (see if they haven't changed) and copy/paste into the .tpl file
You see the result in Dreamweaver (quite) and the coding is still ok. good luck! |
When I import to Dreamweaver I get the 2 codes : Smarty AND html ... what a mess !
|
Yea, if you are going to edit the templates in Dreamweaver, you really need to at least understand the concept of Smarty so that you don't break the {if}{else} type conditions as well as the rest of the Smarty tags. It isn't as tough as you might think...after a while it'll be second nature to you ;)
|
UltraEdit is a better tool than DW. It has markup and highlighting for smarty tags.
|
All times are GMT -8. The time now is 05:20 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.