viewing .tmpl templates within dreamweaver
viewing .tmpl templates within dreamweaver
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
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
Very Usefull,
thanks pSouper, saves a couple of seconds every time.
"A small step for man..."
Cheers
thanks pSouper, saves a couple of seconds every time.
"A small step for man..."

Cheers
1.3 out, testing, testing...
Sponsoring 4 phpwcms Blog and Usermanagement
Sponsoring 4 phpwcms Blog and Usermanagement
Thank you pSouper
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

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

PhpWCMS Evangelist, -- iRoutier.com Running phpWCMS 1.4.2, r354 -> Great Version!!!!
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
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
...alles wird gut!
still alive...
Experimenting with phpwcms and hoping to have time one day to get a site live...
One Site finished!
still alive...
Experimenting with phpwcms and hoping to have time one day to get a site live...

One Site finished!

Hi Felixoeconom 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

I edited it because I had a bunch of errors at Dreamweaver launch.
After editing the errors were gone

Which ever works

Nice tip anyhow

Cheers,
Yves

PhpWCMS Evangelist, -- iRoutier.com Running phpWCMS 1.4.2, r354 -> Great Version!!!!
- tawhidur.rahman
- Posts: 1
- Joined: Wed 25. Mar 2009, 05:34
Re: viewing .tmpl templates within dreamweaver
Hey pSouper,
Great work. It really works smooth.
Thanks for sharing.
Great work. It really works smooth.
Thanks for sharing.
Re: viewing .tmpl templates within dreamweaver
what the hell is dreamweaver???pSouper wrote:viewing .tmpl templates within dreamweaver

Re: viewing .tmpl templates within dreamweaver
erm... your point?
Re: viewing .tmpl templates within dreamweaver
Dreamweaver .. Garry Wright, a very famous song in the end 70'sHeiko H. wrote:what the hell is dreamweaver???pSouper wrote:viewing .tmpl templates within dreamweaver

Re: viewing .tmpl templates within dreamweaver
was ihr habt. DWCS4 is doch gut.. und teuer...
Re: viewing .tmpl templates within dreamweaver
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
pSouper wrote:yntax highlighting
PSPad is your friendpSouper wrote:ftp upload/sync
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
Re: viewing .tmpl templates within dreamweaver
Me ... just on a CS4 Trip from design studio ..........2, 3, 4 Files a day .... never ever again. .... buaaaah 

Re: viewing .tmpl templates within dreamweaver
was ihr immer habt, im loving it...