Quote:
Originally Posted by microbox
lol.. maybe I haven't made it clear enough.. so I'll rephrase it into one simple question:
What is the best software with WYSIWYG interface to edit Smarty TPL templates?
|
You can use Dreamweaver:
http://www.smarty.net/faq.php#19
I have a site which has a script with Smarty templates but I did not use DW to edit.
All I did was create the template which was to be used for the site.
Then I found the main smarty layout files. In
my case it was:
- main.tpl
- header.tpl
- footer.tpl
Then I added my design layout to these files one at a time, checking changes after each edit and making sure to keep all PHP statements and template tags unchanged. For example, if header.tpl looks like this:
Code:
<HTML>
<HEAD>
{popup_init src="/javascripts/overlib.js"}
<TITLE>{$title} - {$Name}</TITLE>
</HEAD>
I can add anything I want to any .tpl file as long as I don't mess up the code which the script needs to generate the content in the places where it is supposed to go.
After establishing the basic layout with the above 3 templates, I worked my way down through all the other .tpl files making minor layout changes where required.
I used a text based editor to avoid code-bloat which is common among WYSIWYG editors.
So what you can do is design your template first in some kind of WYSIWYG editor (like Dreamweaver for example), then use a text based editor to make changes to the actual templates, or you can change your
tag delimiters in DW as suggested in the above link.