 |
 |
 |
 |
#215547 - 04/25/02 09:05 PM
Edit the Templates in Dreamweaver
|
Addict
Registered: 01/31/00
Posts: 1524
Loc: Burgos, Spain.
Add to del.icio.us
Digg it
|
Here are a few tricks to be able to edit the templates in Dreamweaver 4: <br /> <br /> <br />Identify the TMPL extension: <br /> - Go to your dreamweaver configuration folder, [:blue]...\Dreamweaver 4\Configuration[/] and open [:blue]Extensions.txt[/] <br /> - In the first line, add anywhere[:red] TMPL [/], but before [:green] :All [/] example: <br /> [:#666666]HTM,HTML,SHTM,SHTML,STM,SSI,JS,XML,LBI,DWT,ASP,CFM,CFML,TXT,PHP,PHP3,PHP4,LASSO,JSP, [:red] TMPL [/] :All Documents [/] <br /> - Then, in the next lines, add the following line: <br /> [:green] TMPL:UBBThreads Templates [/] <br /> <br />Remove the PHP Tags <br />Dreamweaver converts all that starts with [:red] <? [/] into a tag icon. But ubbthreads templates are ALL inside these tags. So if you open it, you dont see ANYTHING. Most people dont edit PHP with Dreamweaver, I sure dont. So you can safely remove this tag option by: <br /> - Go to your [:blue] \Dreamweaver 4\Configuration\ThirdPartyTags [/] folder. <br />Rename [:green] php.xml [/] to [:red] php.xml.bak [/] (so you can easily go back to your default installation if you dont like it). <br />Restart Dreamweaver to see changes. Now, you should be able to view ubbthreads templates with no problem inside Dreamweaver. <br /> <br />Make ubbthread Tags <br />This is one suggestion you will want to do once in a while, going back and forward to enable/dissable this. It will make the tables much easier to lookat , and therefore to design with. But it doesnt allow you to see the text. So remember, you will want to be switching this "on and off". <br /> - Go to your [:blue] \Dreamweaver 4\Configuration\ThirdPartyTags [/] folder. <br />Create a new file, name it [:red] ubb.xml [/] <br /> - Insert the following line: <br /> [:green] <tagspec tag_name="ubb" start_string="{$" end_string="']}" detect_in_attribute="true" icon="UBB.gif" icon_width="15" icon_height="15"></tagspec> <br /> [/] <br />Save an icon such as this one []/forum/images/icons/grin.gif[/] into that same folder, and name it UBB.gif <br />Done. Restart Dreamweaver to see changes. <br />Remember, for design purposes, this last trick you will want to use at some times, not always. So when not, just rename it to [:green] ubb.xml.bak [/]
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#215553 - 06/12/02 03:30 PM
Re: Edit the Templates in Dreamweaver
[Re: egor]
|
Veteran
Registered: 10/22/00
Posts: 2637
Loc: London, UK
|
OK got it to work !!<br /><br />for people using Macromedia MX please do the following:<br /><br />in the Configuration folder edit file Extensions.txt<br />replace first line:<br />[]HTM,HTML,SHTM,SHTML,<hr /></blockquote><br />with:<br />[]TMPL,HTM,HTML,SHTM,SHTML,<hr /></blockquote><br />!!Carefull!!! tried adding mine first to the end and it wouldn't work.<br />If you are in a multiuser environment make sure you edit the file inside your personnal folder<br /><br />Next in the Configuration\DocumentTypes folder open the MMDocumentTypes.xml file.<br /><br />Not doing this will prevent using the WYSIWYG feature and you will only be able to use the code editor.<br /><br />You need to add the TMPL extension to one of the predifined styles, I added it to the HTML one since thats what mostly in the file <img src="/forum/images/icons/smile.gif" alt="" /><br /><br />replace:<br />[]<documenttype id="HTML" internaltype="HTML" winfileextension="htm,html,shtml,shtm,stm,lasso,xhtml" macfileextension="html,htm,shtml,shtm,lasso,xhtml"<hr /></blockquote><br />with:<br />[]<documenttype id="HTML" internaltype="HTML" winfileextension="htm,html,shtml,shtm,stm,lasso,xhtml,tmpl" macfileextension="html,htm,shtml,shtm,lasso,xhtml,tmpl"<hr /></blockquote><br /><br />next we need to disable the PHP cloaking function so go to the Configuration\ThirdPartyTags dir and open the file named Tags.xml (make a backup first). Delete the whole paragraph under []<!-- PHP --><hr /></blockquote>There you go, you can now edit your UBB.threads template in dreamweaver MX !<br /><br /><br />
_________________________
Do you believe in love at first sight, or should I walk by again?
|
|
Top
|
|
|
|
 |
 |
 |
 |
|
|