You are here: RE: [SMARTY] Dreamweaver Users - How do you manage sites? « Smarty Templates Posts « IT news, forums, messages
RE: [SMARTY] Dreamweaver Users - How do you manage sites?

Posted by "Joe Evans" on 07/29/05 05:39

I am a web designer that is very fond of both Dreamweaver and Smarty. They
have done everything I have ever asked. However, the two don't generally
pay nice together in all the ways we would like.

There was a real nice post about text coloring o the smarty site FAQ's. It
may still be there. Other than that, it is really a crap shoot.
Dreamweaver won't show Smarty templates in the same way that that it will
show its own templates together.

I generally compose the folder structure locally the same way it is
recommended on the Smarty quick start and simply upload the same way.

I keep the configuration files and the "Smarty" folder with the 4 required
folders outside of root. All others are obviously inside root.

I would love to see Dreamweaver work more with Smarty templates in the next
versions, but for now it seems to work best with Cold Fusion, ASP, and the
like.

Hope I can be of help...



Joe
UpFront Technology

-----Original Message-----
From: Gary Smith [mailto:gts@tsu.biz]
Sent: Thursday, July 28, 2005 8:07 PM
To: smarty-general@lists.php.net
Subject: Re: [SMARTY] Dreamweaver Users - How do you manage sites?


Hmmm...

I was hoping I could come up with a configuration that would allow my
designers to work with the templates in dreamweaver but it looks like there
are too many obstacles (paths, file types and names, nested templates) that
would make it too hard (ftp, previewing, etc.) for them to use. I've
downloaded all the extensions I could find for Smarty and Dreamweaver but it
looks like there is no way to get a good development environment configured
to allow this. Too bad, Dreamweaver and Smarty seemed like the perfect
solution for me. I was hoping that this would be a common setup for
smarty-dreamweaver users. Anybody else have this setup?

Thanks,
Gary


in article 3768ED8F-1B58-4557-AA83-BCDE8177BD8C@filled.us, Cameron Perry at
lists@filled.us wrote on 7/28/05 12:59 PM:

> Honestly, I have not done *that* much with Smarty. The first Smarty-
> based site I was working on a few months ago for work go scrapped
> pretty early on, but looking at the directory structure, it looks
> like I simply left the templates within the site root. From what I
> remember, it was the only way to get dreamweaver to work correctly.
> Have you tried using symlinks and relative paths in your templates/
> scripts to trick DW?
>
>
>
> ~C
>
> On Jul 28, 2005, at 3:05 PM, Gary Smith wrote:
>
>> Thanks Cameron,
>>
>> What if I move my templates to a folder inside web root? How would
>> I preview
>> them locally and remote? I have separate templates for headers and
>> footers
>> so my content template doesn't display right in design view because of
>> missing stylesheets and javascript. How do you work with nested
>> templates?
>> Should I name my templates .htm or something?
>>
>> Any Advice?
>> Gary
>>
>>
>> in article B7EDA209-781D-4DC1-A94D-55FA32CAFFCA@filled.us, Cameron
>> Perry at
>> lists@filled.us wrote on 7/28/05 9:13 AM:
>>
>>
>>> Hi Gary,
>>>
>>> It would be most convenient to let dreamweaver upload the new
>>> template files via FTP, though it probably won't allow you to have
>>> the path disparity. What you can do, as you mentioned, is use some
>>> other FTP program to manually upload the directory once you've saved
>>> the changes.
>>>
>>> From my experiences with DW (I'm not an expert, just a user), there
>>> really is no easy way to develop any web content stored outside the
>>> web root.
>>>
>>> ~Cameron
>>>
>>>
>>> On Jul 28, 2005, at 11:28 AM, Gary Smith wrote:
>>>
>>>
>>>> Hi Cameron,
>>>>
>>>> So have a templates folder inside the web root on the local machine
>>>> and
>>>> outside on the remote machine? Would I then have to use another ftp
>>>> program
>>>> to keep the files in different places for the local and remote
>>>> machines?
>>>>
>>>> Gary
>>>>
>>>>
>>>> in article 1660FFAC-1D3C-4265-995E-3ED6751E178C@filled.us, Cameron
>>>> Perry at
>>>> lists@filled.us wrote on 7/27/05 8:40 PM:
>>>>
>>>>
>>>>
>>>>> Why not develop with the templates within the site root just to
>>>>> make
>>>>> it easiest with DW?
>>>>> Instead of writing
>>>>>
>>>>>
>>>>>> $smarty = new Smarty();
>>>>>> $smarty->template_dir='/path...';
>>>>>> etc
>>>>>>
>>>>>>
>>>>> in each file, why not put it in an include so that on your
>>>>> development machine you can have one path - pointing to templates
>>>>> within the web root, and on the server change the template path
>>>>> so it
>>>>> points to the templates outside the web root?
>>>>>
>>>>> ~Cameron
>>>>>
>>>>>
>>>>> On Jul 27, 2005, at 9:18 PM, Andras Kende wrote:
>>>>>
>>>>>
>>>>>
>>>>>>
>>>>>>
>>>>>> -----Original Message-----
>>>>>> From: Gary Smith [mailto:gts@tsu.biz]
>>>>>> Sent: Wednesday, July 27, 2005 7:34 PM
>>>>>> To: smarty-general@lists.php.net
>>>>>> Subject: [SMARTY] Dreamweaver Users - How do you manage sites?
>>>>>>
>>>>>> Aloha All,
>>>>>>
>>>>>> My smarty configuration has my templates outside of web root. What
>>>>>> is the
>>>>>> best way to configure your sites so you can use Dreamweaver to
>>>>>> create/edit
>>>>>> templates?
>>>>>>
>>>>>> Thanks,
>>>>>> Gary
>>>>>>
>>>>>>
>>>>>>
>>>>>> Hello Gary,
>>>>>>
>>>>>> I use Dreamweaver MX 2004 in FTP mode (no local copies of files..)
>>>>>> but templates are in the webfolder and named .htm not .tpl for the
>>>>>> easiest opening with Dreamweaver..
>>>>>>
>>>>>> I guess Dreamveaver needs to access your templates with FTP so it
>>>>>> needs a ftp user account which has access outside of your
>>>>>> webfolder...
>>>>>>
>>>>>> FTP:
>>>>>> /home/gary/
>>>>>> /home/gary/templates/ smarty template files
>>>>>> /home/gary/public_html/ smarty php files
>>>>>>
>>>>>> APACHE document root:
>>>>>> /home/gary/public_html/
>>>>>>
>>>>>> Andras Kende
>>>>>> http://www.kende.com
>>>>>>
>>>>>> --
>>>>>> Smarty General Mailing List (http://smarty.php.net/)
>>>>>> To unsubscribe, visit: http://www.php.net/unsub.php
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>
>>>> --
>>>> Smarty General Mailing List (http://smarty.php.net/)
>>>> To unsubscribe, visit: http://www.php.net/unsub.php
>>>>
>>>>
>>>>
>>
>> --
>> Smarty General Mailing List (http://smarty.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>

--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация