Edit the Templates in Dreamweaver - 04/26/2002 4:05 AM
Here are a few tricks to be able to edit the templates in Dreamweaver 4:
Identify the TMPL extension:
- Go to your dreamweaver configuration folder, [:blue]...\Dreamweaver 4\Configuration[/] and open [:blue]Extensions.txt[/]
- In the first line, add anywhere[:red] TMPL [/], but before [:green] :All [/] example:
[:#666666]HTM,HTML,SHTM,SHTML,STM,SSI,JS,XML,LBI,DWT,ASP,CFM,CFML,TXT,PHP,PHP3,PHP4,LASSO,JSP, [:red] TMPL [/] :All Documents [/]
- Then, in the next lines, add the following line:
[:green] TMPL:UBBThreads Templates [/]
Remove the PHP Tags
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:
- Go to your [:blue] \Dreamweaver 4\Configuration\ThirdPartyTags [/] folder.
Rename [:green] php.xml [/] to [:red] php.xml.bak [/] (so you can easily go back to your default installation if you dont like it).
Restart Dreamweaver to see changes. Now, you should be able to view ubbthreads templates with no problem inside Dreamweaver.
Make ubbthread Tags
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".
- Go to your [:blue] \Dreamweaver 4\Configuration\ThirdPartyTags [/] folder.
Create a new file, name it [:red] ubb.xml [/]
- Insert the following line:
[:green] <tagspec tag_name="ubb" start_string="{$" end_string="']}" detect_in_attribute="true" icon="UBB.gif" icon_width="15" icon_height="15"></tagspec>
[/]
Save an icon such as this one []/forum/images/icons/grin.gif[/] into that same folder, and name it UBB.gif
Done. Restart Dreamweaver to see changes.
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 [/]
Identify the TMPL extension:
- Go to your dreamweaver configuration folder, [:blue]...\Dreamweaver 4\Configuration[/] and open [:blue]Extensions.txt[/]
- In the first line, add anywhere[:red] TMPL [/], but before [:green] :All [/] example:
[:#666666]HTM,HTML,SHTM,SHTML,STM,SSI,JS,XML,LBI,DWT,ASP,CFM,CFML,TXT,PHP,PHP3,PHP4,LASSO,JSP, [:red] TMPL [/] :All Documents [/]
- Then, in the next lines, add the following line:
[:green] TMPL:UBBThreads Templates [/]
Remove the PHP Tags
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:
- Go to your [:blue] \Dreamweaver 4\Configuration\ThirdPartyTags [/] folder.
Rename [:green] php.xml [/] to [:red] php.xml.bak [/] (so you can easily go back to your default installation if you dont like it).
Restart Dreamweaver to see changes. Now, you should be able to view ubbthreads templates with no problem inside Dreamweaver.
Make ubbthread Tags
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".
- Go to your [:blue] \Dreamweaver 4\Configuration\ThirdPartyTags [/] folder.
Create a new file, name it [:red] ubb.xml [/]
- Insert the following line:
[:green] <tagspec tag_name="ubb" start_string="{$" end_string="']}" detect_in_attribute="true" icon="UBB.gif" icon_width="15" icon_height="15"></tagspec>
[/]
Save an icon such as this one []/forum/images/icons/grin.gif[/] into that same folder, and name it UBB.gif
Done. Restart Dreamweaver to see changes.
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 [/]