Help...I need to manually edit my html file and frontpage pukes it back...

I

insaneoctane

I wrote a script that automatically adds a snippit of text (based on
dates) to a table to save me BUNCHES of typing. And the script works
great, the html page is exactly how I want it...until I open the file
in Frontpage again and FP pukes the changes away with this message in
the _vti_cnf folder...

vti_error0:SX|Someone directly edited the HTML output of a FrontPage
Include component; the changes have been overwritten.

This stinks because,obviously, I want to allow the edit and do NOT want
to overwrite my changes...I can't see the changes I made in FP, I just
have to re-run my script after EVERY change I make in FP.

Is there a way around this?
 
J

Jens Peter Karlsen [FP-MVP]

Do not open the page outside of FP to alter an include directly. As
you discovered you will lose the changes when opened in FP.
Instead open the page that you include and add the script there.
If part of the script must be in the header section of the page, you
must add this part to every page that uses the include.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.
 
I

insanceoctane

Unfortunately, I'm not adding a script....I wrote a script that fills
in data into a table that FP created. Specifically, the scipt looks at
the picture in the cell and using the filename of that picture extracts
the date from the filename and adds it as text in the cell. It works
very nice...is there a way around FP deleting my changes?
 
T

Thomas A. Rowe

You can not stop FP from change webbot code that it has written.


--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage
==============================================
Agents Real Estate Listing Network
http://www.NReal.com
==============================================
 
I

insanceoctane

Is there a smarter way to do what I'm doing?
I'm using the INSERT> PICTURE> NEW PHOTO GALLERY
It creates a table of thumbnails and allows both caption and
description.
My photos filenames always contain the date with which they were taken
and I always type the date of the photo in the caption. It has been
hundreds of captions later that I decided a script (written in perl) to
look at the filename and type the caption for me would save me
countless keystrokes.

Here I am today with the unfortunate side-effects of my labor!

Any suggestions welcome
 
R

Ronx

If your server supports Perl, then write your own photogallery
presentation. It will be much better than anything FP can do (and will
actually work), and will be exactly as you want it. The script can be made
to write captions on the fly, or get caption data from a database.
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.
FrontPage Support: http://www.frontpagemvps.com/

insanceoctane said:
Is there a smarter way to do what I'm doing?
I'm using the INSERT> PICTURE> NEW PHOTO GALLERY
It creates a table of thumbnails and allows both caption and
description.
My photos filenames always contain the date with which they were taken
and I always type the date of the photo in the caption. It has been
hundreds of captions later that I decided a script (written in perl) to
look at the filename and type the caption for me would save me
countless keystrokes.

Here I am today with the unfortunate side-effects of my labor!

Any suggestions welcome
You can not stop FP from change webbot code that it has written.


--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage
==============================================
Agents Real Estate Listing Network
http://www.NReal.com
==============================================


insanceoctane said:
Unfortunately, I'm not adding a script....I wrote a script that fills
in data into a table that FP created. Specifically, the scipt looks
at
the picture in the cell and using the filename of that picture
extracts
the date from the filename and adds it as text in the cell. It works
very nice...is there a way around FP deleting my changes?


Jens Peter Karlsen [FP-MVP] wrote:
Do not open the page outside of FP to alter an include directly. As
you discovered you will lose the changes when opened in FP.
Instead open the page that you include and add the script there.
If part of the script must be in the header section of the page, you
must add this part to every page that uses the include.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.

On 16 Aug 2006 22:15:08 -0700, (e-mail address removed) wrote:

I wrote a script that automatically adds a snippit of text (based on
dates) to a table to save me BUNCHES of typing. And the script
works
great, the html page is exactly how I want it...until I open the
file
in Frontpage again and FP pukes the changes away with this message
in
the _vti_cnf folder...

vti_error0:SX|Someone directly edited the HTML output of a FrontPage
Include component; the changes have been overwritten.

This stinks because,obviously, I want to allow the edit and do NOT
want
to overwrite my changes...I can't see the changes I made in FP, I
just
have to re-run my script after EVERY change I make in FP.

Is there a way around this?
 
T

theadams

Yes, my server supports perl...
but, really I'm just after a way around FP stopping me from adding a
few little text snippets. What does it check my html page against?
Can I just edit both my html page AND the file it's using to know it
changed? Is it a checksum that I need to fix?
If your server supports Perl, then write your own photogallery
presentation. It will be much better than anything FP can do (and will
actually work), and will be exactly as you want it. The script can be made
to write captions on the fly, or get caption data from a database.
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.
FrontPage Support: http://www.frontpagemvps.com/

insanceoctane said:
Is there a smarter way to do what I'm doing?
I'm using the INSERT> PICTURE> NEW PHOTO GALLERY
It creates a table of thumbnails and allows both caption and
description.
My photos filenames always contain the date with which they were taken
and I always type the date of the photo in the caption. It has been
hundreds of captions later that I decided a script (written in perl) to
look at the filename and type the caption for me would save me
countless keystrokes.

Here I am today with the unfortunate side-effects of my labor!

Any suggestions welcome
You can not stop FP from change webbot code that it has written.


--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage
==============================================
Agents Real Estate Listing Network
http://www.NReal.com
==============================================


Unfortunately, I'm not adding a script....I wrote a script that fills
in data into a table that FP created. Specifically, the scipt looks
at
the picture in the cell and using the filename of that picture
extracts
the date from the filename and adds it as text in the cell. It works
very nice...is there a way around FP deleting my changes?


Jens Peter Karlsen [FP-MVP] wrote:
Do not open the page outside of FP to alter an include directly. As
you discovered you will lose the changes when opened in FP.
Instead open the page that you include and add the script there.
If part of the script must be in the header section of the page, you
must add this part to every page that uses the include.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.

On 16 Aug 2006 22:15:08 -0700, (e-mail address removed) wrote:

I wrote a script that automatically adds a snippit of text (based on
dates) to a table to save me BUNCHES of typing. And the script
works
great, the html page is exactly how I want it...until I open the
file
in Frontpage again and FP pukes the changes away with this message
in
the _vti_cnf folder...

vti_error0:SX|Someone directly edited the HTML output of a FrontPage
Include component; the changes have been overwritten.

This stinks because,obviously, I want to allow the edit and do NOT
want
to overwrite my changes...I can't see the changes I made in FP, I
just
have to re-run my script after EVERY change I make in FP.

Is there a way around this?
 
T

Thomas A. Rowe

No. You can make your changes, but then you can not open the page again in FP, unless you want FP to
re-write the webbot code that is original wrote.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage
==============================================
Agents Real Estate Listing Network
http://www.NReal.com
==============================================


Yes, my server supports perl...
but, really I'm just after a way around FP stopping me from adding a
few little text snippets. What does it check my html page against?
Can I just edit both my html page AND the file it's using to know it
changed? Is it a checksum that I need to fix?
If your server supports Perl, then write your own photogallery
presentation. It will be much better than anything FP can do (and will
actually work), and will be exactly as you want it. The script can be made
to write captions on the fly, or get caption data from a database.
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.
FrontPage Support: http://www.frontpagemvps.com/

insanceoctane said:
Is there a smarter way to do what I'm doing?
I'm using the INSERT> PICTURE> NEW PHOTO GALLERY
It creates a table of thumbnails and allows both caption and
description.
My photos filenames always contain the date with which they were taken
and I always type the date of the photo in the caption. It has been
hundreds of captions later that I decided a script (written in perl) to
look at the filename and type the caption for me would save me
countless keystrokes.

Here I am today with the unfortunate side-effects of my labor!

Any suggestions welcome

Thomas A. Rowe wrote:
You can not stop FP from change webbot code that it has written.


--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage
==============================================
Agents Real Estate Listing Network
http://www.NReal.com
==============================================


Unfortunately, I'm not adding a script....I wrote a script that fills
in data into a table that FP created. Specifically, the scipt looks
at
the picture in the cell and using the filename of that picture
extracts
the date from the filename and adds it as text in the cell. It works
very nice...is there a way around FP deleting my changes?


Jens Peter Karlsen [FP-MVP] wrote:
Do not open the page outside of FP to alter an include directly. As
you discovered you will lose the changes when opened in FP.
Instead open the page that you include and add the script there.
If part of the script must be in the header section of the page, you
must add this part to every page that uses the include.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.

On 16 Aug 2006 22:15:08 -0700, (e-mail address removed) wrote:

I wrote a script that automatically adds a snippit of text (based on
dates) to a table to save me BUNCHES of typing. And the script
works
great, the html page is exactly how I want it...until I open the
file
in Frontpage again and FP pukes the changes away with this message
in
the _vti_cnf folder...

vti_error0:SX|Someone directly edited the HTML output of a FrontPage
Include component; the changes have been overwritten.

This stinks because,obviously, I want to allow the edit and do NOT
want
to overwrite my changes...I can't see the changes I made in FP, I
just
have to re-run my script after EVERY change I make in FP.

Is there a way around this?
 

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

Top