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

Dreamweaver

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-03-2007, 12:48 PM
 
kevin34 kevin34 is offline
 

Advanced Member
  
Join Date: Aug 2007
Posts: 41
 

Default Re: Removing Speedbar tabs for Just plain links

Hi Paul,

just starting out with X-cart and slowly getting to grips with it. However I am curious about your comment "You can really do some fancy stuff by playing around with these two templates. You really need an html editor to do this best, as you can then put the template into a "layout" mode. If you do this with the top_menu.tpl, you will see a table and in the top right is the code for the current speed bar."

I use Dreamweaver MX to edit my tpl files, but the "Code and Design" and the "Table/ Layout" view are ghosted out when I open a tpl file - really like the idea of being able to see the table layout within Dreamweaver - could you tell me what I am missing?

By the way am using 4.1.8

Many thanks
Kev
__________________
X-Cart Gold 4.3
Reply With Quote
  #2  
Old 10-03-2007, 01:03 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Dreamweaver

Hi Kev, welcome to X-Cart! I suggest starting with this thread:

http://forum.x-cart.com/showthread.php?t=21529

The thread you just posted in is over 2 years old, so anything in that thread is probably not relevant to your version. Be sure to pay attention to the dates of posts. This is probably best off in a new thread all together, so I have moved it to one.

Do you have the Smarty Plug-In for Dreamweaver? You will need that in order to view the templates correctly.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 10-04-2007, 08:03 AM
 
kevin34 kevin34 is offline
 

Advanced Member
  
Join Date: Aug 2007
Posts: 41
 

Default Re: Dreamweaver

Hi Balinor

i did notice the thread was old, but when I read that you can preview the tpl files in dreamweaver, I thought I had found the holy grail!

I have installed the Smarty plugin and can open the tpl files no problem - however I can only get the code side. Normally when I edit html files I can switch between code & design view, however when I have a tpl file open this option is ghosted out. Am I missing something or trying to do something that can't be done?

As I think I mentioned before, I am new to Smarty but been using Dreamweaver for a long time (MX version by the way) - just that I know if I could see both the code & a visual layout of the tpl files I know I can get better more easily.

Any advice greatly appreciated.
Many thanks
Kev
__________________
X-Cart Gold 4.3
Reply With Quote
  #4  
Old 10-04-2007, 08:05 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Dreamweaver

Sounds like something is not configured properly with the add-on. Have you tried it WITHOUT the add-on just to see if it shows in design view? You won't be able to view the actual images in the templates because they are called using Smarty, but you should be able to see the table outlines.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 10-04-2007, 12:21 PM
 
kevin34 kevin34 is offline
 

Advanced Member
  
Join Date: Aug 2007
Posts: 41
 

Default Re: Dreamweaver

Have managed to get it working - did a search on adobes website and found that i needed to edit both the extensions.txt & MMdocuments.xml inorder to view the tpl files in both code & design view. This is now working and I can see the table layout, but as you say no images - can this also be achieved? Was hoping that I could design & preview smarty templates as I have done with html ones?

Kev
__________________
X-Cart Gold 4.3
Reply With Quote
  #6  
Old 10-04-2007, 06:41 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Dreamweaver

Well the images are called using a Smarty variable {$ImagesDir} which points to nowhere when you are viewing the template in DW. What you can do is find and replace {$ImagesDir} temporarily with images/ and create an images sub-directory locally and put your images there.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 10-12-2007, 07:25 AM
 
kevin34 kevin34 is offline
 

Advanced Member
  
Join Date: Aug 2007
Posts: 41
 

Default Re: Dreamweaver

Hi Balinor,

sorry for the delay in getting back - been away for a few days.

Replaced the directory and all is fine - this will be a big help in me getting my head around the smarty templates.

Thanks again

Kev

ps appreciate that I should probably create a new question, however whilst we are talking, may I ask your opinion on another matter....

Which way would you recommend to get the data in and out of X-cart. I have tried csv files but these are limited due to formatting of text descriptions, I cannot use ODBC as my service provider does not allow access to the database in this way. I have tried exporting the info from MS Access, however a lot of my products have product options and I would need to export this separately (which is probably the way I'll end up with, but its not pretty). Just curious on any advice you may have?
Kev
__________________
X-Cart Gold 4.3
Reply With Quote
  #8  
Old 10-12-2007, 07:48 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Dreamweaver

CSV is the way to go. It will handle html in the text descriptions....just not carriage returns.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
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 02:57 AM.

   

 
X-Cart forums © 2001-2020