Click to See Complete Forum and Search --> : Design View?


JF1980
05-17-2003, 05:11 PM
Hi peeps.

I have been using DWMX to develop php apps for a while but have just started using the smarty template engine to seperate my php and html.

When I want to edit one of my .tpl files, which is a pure html file, just the extension is different, DWMX will only let me see this in code view, not design view. It still does this even if I rename the file to .html

Any ideas, it's very annoying!!!:confused:

trinitywave
05-19-2003, 06:54 PM
Did you do any coding outside of Dreamweaver at all.... If so most of the time it screws it up.... And dreamweaver can recognize it..

mzanimephp
05-19-2003, 08:32 PM
Thats true, but Dreamweaver wasn't really designed to view .tpl files in WYSIWYG (design) view.

I know you can make Dreamweaver MX view other types of unsupported extensions such as php4 as text, but it is specifically only designed to interpret HTML in design view. If your clever enough you might want to try looking into the resource XML files* and see if there is some kind of configuration which will allow you to insert the .tpl type of file for design view.

*Most of Dreameavers settings were done in XML, if you ca ntweak these, you might be able to modify the program to your needs. But if you don't know XML very well, I'd wouldn't recommend doing this.