This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > FrontPage Programming > February 2007 > Update links outside a subweb when a file or folder is renamed with Add-in





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Update links outside a subweb when a file or folder is renamed with Add-in
hardieca@hotmail.com

2007-02-26, 6:16 pm

Good morning,

I'm going to have to begin renaming the file structure of a website
that is comprised of a dozen sub-webs. I need to ensure that links and
src attributes are updated when I rename a directory or file name. I
am able to save all links and src attributes throughout the entire
website to a database, and I would like to create a Frontpage add-in
that would fire when a folder or file name is renamed, scan the
database for associated links, and then update any pages with inbound
links or src's.

The part I'm stuck on is I don't know how to trap for an event when a
folder or file is renamed. Is there an event available for this
purpose? Is there comprehensive documentation about the Frontpage
document model and how to use it somewhere? I'm having a hard time
tracking any good information down...

Many thanks,

Chris

Steve Easton

2007-02-26, 6:16 pm

You do realize that: that is an automatic function in FrontPage??
If you rename any file or folder when in folder view, you will be prompted
to allow FP to update
all links that contain that file or folder name.
(Providing that the links are "Not" contained in a javascript link )


--

Steve Easton
Microsoft MVP FrontPage
FP Cleaner
http://www.95isalive.com/fixes/fpclean.htm
Hit Me FP
http://www.95isalive.com/fixes/HitMeFP.htm


<hardieca@hotmail.com> wrote in message
news:1172500774.106713.44200@v33g2000cwv.googlegroups.com...
> Good morning,
>
> I'm going to have to begin renaming the file structure of a website
> that is comprised of a dozen sub-webs. I need to ensure that links and
> src attributes are updated when I rename a directory or file name. I
> am able to save all links and src attributes throughout the entire
> website to a database, and I would like to create a Frontpage add-in
> that would fire when a folder or file name is renamed, scan the
> database for associated links, and then update any pages with inbound
> links or src's.
>
> The part I'm stuck on is I don't know how to trap for an event when a
> folder or file is renamed. Is there an event available for this
> purpose? Is there comprehensive documentation about the Frontpage
> document model and how to use it somewhere? I'm having a hard time
> tracking any good information down...
>
> Many thanks,
>
> Chris
>



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews