Newbie DWT Questions

A

auerbach

I'm setting up a new site and for the first time am using DWTs. I put them
in a subdirectory (\dwt) but am not sure if this is the recommended
practice. Where do most folks "park" their DWT files?

Also, I created a few test pages of text, and applied a DWT. Everything went
fine. However, I then tried to remove the DWT, expecting to again see plain
pages with text only. That didn't happen; the pages looked the same as they
did after I applied the DWT. Am I doing something wrong? How does one "strip
away" the results of applying a DWT?

TIA,

Alex
 
J

Jim Buyens

-----Original Message-----
I'm setting up a new site and for the first time am using
DWTs. I put them in a subdirectory (\dwt) but am not sure
if this is the recommended practice. Where do most
folks "park" their DWT files?

Whatever helps you keep your site organized. A /dwt folder
is fine.
Also, I created a few test pages of text, and applied a
DWT. Everything went fine. However, I then tried to
remove the DWT, expecting to again see plain pages with
text only. That didn't happen; the pages looked the same
as they did after I applied the DWT. Am I doing something
wrong? How does one "strip away" the results of applying
a DWT?
TIA,
Alex

The correct procedure is to open or select the page that
uses the DWT, and then choose Format, Dynamic Web
Template, Detach From Dynamic Web Template.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
A

auerbach

Jim,

Thanks for taking time to respond. When I use the Format ... Detach routine,
I wind up with a page that looks the same as it did after I attached the DWT
in the first place.

Alex
 
J

Jim Buyens

Is this occurring on a server-based Web taht uses the FrontPage Server
Extensions? If so, that's your problem.

DWTs are only work correctly on disk-based Webs and Web sites running
on Windows SharePoint Services.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
A

auerbach

Jim,

I plan to use these files on a Linux-based server with FP 2002 extensions,
so I appreciate the heads-up. However, my current problem is with the
disk-based files on my computer. Here's what happens:

I create a new page, no template, no theme, enter some text and save it as
part of the web. I then apply a DWT, and the text appears correctly within
the "DTW-ed" page; the format is correctly applied, and the page looks
great. So far, so good.

Next I select the page and attempt to detach the DWT. The on-screen dialog
says this has occurred. But when I look at the page, it looks the same -- as
if the DWT is still applied. I had expected it to revert to plain text,
"stripping away" the visual design features applied by the DWT.

Again, all of this is with pages sitting on my hard drive, not on a server.

Is there some way to "scrub away" the changes made by a DWT, in the way that
removing a theme or applying a new theme totally changes the look of a page?

Alex
 
T

Thomas A. Rowe

Alex,

When you detach a DWT from a page, any content that was applied via the DWT or that was entered into
an editable region will remain on the page in the position originally managed by the DWT. If you
switch to Code view you will see that the DWT tags have been removed.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
A

auerbach

Thomas,

Thanks for both replies. I'm beginning to understand how DWTs work. Good
exercise for my aging brain cells! (g)

I wonder if someone out there will eventually come up with a "DWT stripper"
utility. It might be useful. (Are you listening, Jim Buyuns?)

Alex
 
R

Ronx

DWT stripper:

Create a new, blank page and save as a DWT (strip.dwt)
Create editable regions to match those on your original DWT (original.dwt)
Do not place any other content on the page.
Apply strip.dwt to the page(s) you want to remove original.dwt from.
Then detach the DWT from the page.

Result: All traces of original.dwt removed.

Note: You MUST use the same editable regions on strip.dwt as on
original.dwt.
I have not tested on a real page - but works OK on very simple pages.
 
J

Jim Buyens

Acutally, the procedure Ronx describes elsewhere in this thread looks
pretty good to me. It's essentially the same procedure I came up with
myself.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
A

auerbach

Ronx,

A quick test of your technique on my pages did a very good job, but left a
few odds and ends that were easily cleaned up manually. Some experimentation
could fix the remainder, if anyone had a very complex page and a lot of
pages to de-DWT.

Thanks!
 
G

Guest

Regarding the procedure for detaching a DWT. That's exactly what I did, but the page looks exactly like it did while the DWT was attached. As the original poster asked, is it supposed to go back to looking plain?
 
T

Thomas A. Rowe

Any content that you add to a page via a DWT will not be removed when you remove the DWT.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================


Adela D said:
Regarding the procedure for detaching a DWT. That's exactly what I did, but the page looks
exactly like it did while the DWT was attached. As the original poster asked, is it supposed to go
back to looking plain?
 
T

Thomas A. Rowe

When you remove the DWT, you are just removing the link to it from the pages that it is attached to.
See John Jansen (MSFT) reply that you quoted in your other post.
--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
R

Ronx

Detaching a DWT will not remove content applied from the DWT. One way to do
this is:

DWT stripper:

Create a new, blank page and save as a DWT (strip.dwt)
Create editable regions to match those on your original DWT (original.dwt)
Do not place any other content on the page.
Apply strip.dwt to the page(s) you want to remove original.dwt from.
Then detach the DWT from the page.

Result: All traces of original.dwt removed.

Ron
--
Reply only to group - emails will be deleted unread.


Adela D said:
Regarding the procedure for detaching a DWT. That's exactly what I did,
but the page looks exactly like it did while the DWT was attached. As the
original poster asked, is it supposed to go back to looking plain?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

dwt after crash 6
DWT 1
DWT problem 6
DWT BeginTemplate - I need it to include the DTD 3
DWT edits 7
inline frames in .dwt file 5
DWT & CSS 13
FP2003 & DWT - too much white space! 10

Top