viewing .tmpl templates within dreamweaver

Discuss phpwcms here, please do not post support requests, bug reports, or feature requests! Non-phpwcms questions, discussion goes in General Chat!
Post Reply
User avatar
pSouper
Posts: 1552
Joined: Tue 11. Nov 2003, 15:45
Location: London
Contact:

viewing .tmpl templates within dreamweaver

Post 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
User avatar
oeconom
Posts: 337
Joined: Fri 13. May 2005, 09:33
Location: Stuttgart
Contact:

Post 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
...alles wird gut!
still alive...
Experimenting with phpwcms and hoping to have time one day to get a site live... :wink:
One Site finished! :P
User avatar
Kosse
Posts: 1066
Joined: Thu 9. Sep 2004, 12:08
Location: Brussels, Belgium
Contact:

Post by Kosse »

Very Usefull,
thanks pSouper, saves a couple of seconds every time.

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

Cheers
User avatar
StudioZ
Posts: 802
Joined: Fri 28. May 2004, 19:57
Location: Québec, Canada
Contact:

Post 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
Image
PhpWCMS Evangelist, -- iRoutier.com Running phpWCMS 1.4.2, r354 -> Great Version!!!!
User avatar
oeconom
Posts: 337
Joined: Fri 13. May 2005, 09:33
Location: Stuttgart
Contact:

Post 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
...alles wird gut!
still alive...
Experimenting with phpwcms and hoping to have time one day to get a site live... :wink:
One Site finished! :P
User avatar
StudioZ
Posts: 802
Joined: Fri 28. May 2004, 19:57
Location: Québec, Canada
Contact:

Post 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
Image
PhpWCMS Evangelist, -- iRoutier.com Running phpWCMS 1.4.2, r354 -> Great Version!!!!
User avatar
tawhidur.rahman
Posts: 1
Joined: Wed 25. Mar 2009, 05:34

Re: viewing .tmpl templates within dreamweaver

Post by tawhidur.rahman »

Hey pSouper,
Great work. It really works smooth.
Thanks for sharing.
User avatar
Heiko H.
Posts: 868
Joined: Thu 27. Oct 2005, 11:41
Location: Dresden
Contact:

Re: viewing .tmpl templates within dreamweaver

Post by Heiko H. »

pSouper wrote:viewing .tmpl templates within dreamweaver
what the hell is dreamweaver??? :lol:
Not longer here - sorry...

Haubner-IT GbR Dresden
User avatar
pSouper
Posts: 1552
Joined: Tue 11. Nov 2003, 15:45
Location: London
Contact:

Re: viewing .tmpl templates within dreamweaver

Post by pSouper »

erm... your point?
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Re: viewing .tmpl templates within dreamweaver

Post 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:
User avatar
markus s
Moderator
Posts: 654
Joined: Sat 16. Dec 2006, 19:21
Location: Radfeld / Tirol
Contact:

Re: viewing .tmpl templates within dreamweaver

Post by markus s »

was ihr habt. DWCS4 is doch gut.. und teuer...
moderator
propelled by fresh air from tirol
XING|FACEBOOK|OMENTO
User avatar
pSouper
Posts: 1552
Joined: Tue 11. Nov 2003, 15:45
Location: London
Contact:

Re: viewing .tmpl templates within dreamweaver

Post 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 :)
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: viewing .tmpl templates within dreamweaver

Post by update »

pSouper wrote:yntax highlighting
pSouper wrote:ftp upload/sync
PSPad is your friend
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.
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Re: viewing .tmpl templates within dreamweaver

Post by juergen »

Me ... just on a CS4 Trip from design studio ..........2, 3, 4 Files a day .... never ever again. .... buaaaah :mrgreen:
User avatar
markus s
Moderator
Posts: 654
Joined: Sat 16. Dec 2006, 19:21
Location: Radfeld / Tirol
Contact:

Re: viewing .tmpl templates within dreamweaver

Post by markus s »

was ihr immer habt, im loving it...
moderator
propelled by fresh air from tirol
XING|FACEBOOK|OMENTO
Post Reply