Page 1 of 1

viewing .tmpl templates within dreamweaver

Posted: Wed 11. Apr 2007, 01:14
by pSouper
Step 1: Extensions.txt

The first step is to go to the C:\Program Files\Macromedia\Dreamweaver 8\Configuration directory and edit Extensions.txt

On the first line, right before :All Documents, type in ,TMPL so that the end of the line looks like this:

...,VTML,INC,JAVA,EDML,WML,TMPL:All Documents

Next, find the line with :PHP Files and edit it similarly so that it looks like this:

PHP,PHP3,PHP4,PHP5,TPL,TMPL:PHP Files

Another copy of Extensions.txt can be found in C:\Documents and Settings\<your username>\Application Data\Macromedia\Dreamweaver 8\Configuration - we suggest that you make both these changes in that file as well, just for good measure.
Step 2: MMDocumentTypes.xml

Next, go to the C:\Program Files\Macromedia\Dreamweaver 8\Configuration\DocumentTypes directory. Edit the file MMDocumentTypes.xml

Add the tmpl extension to the PHP_MYSQL documenttype declaration line so that it looks like the following:

<documenttype id="PHP_MySQL" servermodel="PHP MySQL" internaltype="Dynamic" winfileextension="php,php3,php4,php5,tmpl" macfileextension="php,php3,php4,php5,tmpl" file="Default.php" writebyteordermark="false">

Save the file and restart Dreamweaver - now you can create, view and edit phpWCMS templates within Dreamweaver with syntax highlighting

hope it helps guys n gals

Posted: Wed 11. Apr 2007, 13:40
by oeconom
Hey pSouper,

works great, thank you!!!
No need anymore to add the .php extension to these filse for Dreamweaver-Eiting... :wink:

Thanks for sharing this,

FELIX

Posted: Wed 11. Apr 2007, 15:00
by Kosse
Very Usefull,
thanks pSouper, saves a couple of seconds every time.

"A small step for man..." :)

Cheers

Posted: Thu 12. Apr 2007, 00:52
by StudioZ
Thank you pSouper 8)
Only one typo to make it work on PC:
Original:
<documenttype id="PHP_MySQL" servermodel="PHP MySQL" internaltype="Dynamic" winfileextension="php,php3,php4,php5,tmpl" macfileextension="php,php3,php4,php5,tmpl" file="Default.php" writebyteordermark="false">

Modified:
<documenttype id="PHP_MySQL" servermodel="PHP MySQL" internaltype="Dynamic" winfileextension="php,php3,php4,php5,tmpl" winfileextension="php,php3,php4,php5,tmpl" file="Default.php" writebyteordermark="false">

Cheers,

Yves

Posted: Thu 12. Apr 2007, 09:55
by oeconom
Hey StuioZ,
this was correct what pSouper wrote.
The config file seems to be thought for both, mac and win.
Within in my file (win) there are both entries also and changing them as described works perfect.

Greetings,
FELIX

Posted: Thu 12. Apr 2007, 15:17
by StudioZ
oeconom wrote:Hey StuioZ,
this was correct what pSouper wrote.
The config file seems to be thought for both, mac and win.
Within in my file (win) there are both entries also and changing them as described works perfect.

Greetings,
FELIX
Hi Felix ;-)
I edited it because I had a bunch of errors at Dreamweaver launch.
After editing the errors were gone :D
Which ever works :wink:
Nice tip anyhow 8)

Cheers,

Yves

Re: viewing .tmpl templates within dreamweaver

Posted: Wed 25. Mar 2009, 05:40
by tawhidur.rahman
Hey pSouper,
Great work. It really works smooth.
Thanks for sharing.

Re: viewing .tmpl templates within dreamweaver

Posted: Wed 25. Mar 2009, 09:53
by Heiko H.
pSouper wrote:viewing .tmpl templates within dreamweaver
what the hell is dreamweaver??? :lol:

Re: viewing .tmpl templates within dreamweaver

Posted: Wed 28. Oct 2009, 13:32
by pSouper
erm... your point?

Re: viewing .tmpl templates within dreamweaver

Posted: Wed 28. Oct 2009, 18:19
by juergen
Heiko H. wrote:
pSouper wrote:viewing .tmpl templates within dreamweaver
what the hell is dreamweaver??? :lol:
Dreamweaver .. Garry Wright, a very famous song in the end 70's :oops:

Re: viewing .tmpl templates within dreamweaver

Posted: Mon 9. Nov 2009, 22:52
by markus s
was ihr habt. DWCS4 is doch gut.. und teuer...

Re: viewing .tmpl templates within dreamweaver

Posted: Tue 10. Nov 2009, 00:01
by pSouper
you're right, cs4 is good and expensive - i only have it because I need photoshop and illustrator and acrobat etc.. i must admit i only use the syntax highlighting and ftp upload/sync so there are probably better app for me - but they'd have to be free and simpler for me to switch :)

Re: viewing .tmpl templates within dreamweaver

Posted: Wed 11. Nov 2009, 13:43
by update
pSouper wrote:yntax highlighting
pSouper wrote:ftp upload/sync
PSPad is your friend

Re: viewing .tmpl templates within dreamweaver

Posted: Wed 11. Nov 2009, 18:54
by juergen
Me ... just on a CS4 Trip from design studio ..........2, 3, 4 Files a day .... never ever again. .... buaaaah :mrgreen:

Re: viewing .tmpl templates within dreamweaver

Posted: Thu 12. Nov 2009, 19:19
by markus s
was ihr immer habt, im loving it...