Links to deleted pages
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
Links to deleted pages

 
Post new topic   Reply to topic    Windows Server Forum Index -> CMS Server
Author Message
Michael Fy
Guest





Posted: Wed Jan 19, 2005 1:15 am    Post subject: Links to deleted pages Reply with quote

Hello,

I have a channel that contains a series of employee profile postings, that
are generated nightly, from info from our Exchange server. The first thing
that my application does is delete all the postings in the channel and then
it recreates the postings to keep the staff profiles up to date. The name
of the employee posting is always the same (user ID name) so if you bookmark
a posting in your browser it will be there unless the employee leaves. The
links in the rest of the CMS site however stop working for any of these
postings because, I assume, the page is programmatically deleted.

Is there any way to create a CMS link in a posting that doesn't get affected
by a programmatic delete?

If not, I know that I'll have to spin through the channel to see if the info
has changed for each posting or see if any old postings are orphaned because
an Exchange profile (employee) has been removed.

Thanks in advance for any help.

Michael Fy
Back to top
MurrayTh
Guest





Posted: Wed Jan 19, 2005 1:51 am    Post subject: RE: Links to deleted pages Reply with quote

Michael,

When a link is made to another CMS page in the same site, it becomes managed
link that I believe CMS uses a GUID to refer to the linked page (that's why
when you move the page or rename it, the link remains valid). However, if
you delete it and recreate the page, a new GUID is made, and therefore old
links will no longer work.

Since the Employee ID will remain the same, instead of deleting the pages,
have you considered having your code use that key-type information to
identify the proper page, and then updating the content in the page's other
placeholders? That way the links to the pages should remain intact, and it's
content will be updated.

"Michael Fy" wrote:

Quote:
Hello,

I have a channel that contains a series of employee profile postings, that
are generated nightly, from info from our Exchange server. The first thing
that my application does is delete all the postings in the channel and then
it recreates the postings to keep the staff profiles up to date. The name
of the employee posting is always the same (user ID name) so if you bookmark
a posting in your browser it will be there unless the employee leaves. The
links in the rest of the CMS site however stop working for any of these
postings because, I assume, the page is programmatically deleted.

Is there any way to create a CMS link in a posting that doesn't get affected
by a programmatic delete?

If not, I know that I'll have to spin through the channel to see if the info
has changed for each posting or see if any old postings are orphaned because
an Exchange profile (employee) has been removed.

Thanks in advance for any help.

Michael Fy


Back to top
Michael Fy
Guest





Posted: Wed Jan 19, 2005 2:06 am    Post subject: Re: Links to deleted pages Reply with quote

Yes, I have thought about an initial population of the pages and then just
updating the changes from that point on. The way I was planning to do it
was easy and I thought that perhaps the links could be created without
refering to the GUID, like an external link, but that doesn't seem to be the
case.

Thanks.

"MurrayTh" <MurrayTh@discussions.microsoft.com> wrote in message
news:1DCF6BF2-ED98-4E6C-92A4-0B9CA713605A@microsoft.com...
Quote:
Michael,

When a link is made to another CMS page in the same site, it becomes
managed
link that I believe CMS uses a GUID to refer to the linked page (that's
why
when you move the page or rename it, the link remains valid). However, if
you delete it and recreate the page, a new GUID is made, and therefore old
links will no longer work.

Since the Employee ID will remain the same, instead of deleting the pages,
have you considered having your code use that key-type information to
identify the proper page, and then updating the content in the page's
other
placeholders? That way the links to the pages should remain intact, and
it's
content will be updated.

"Michael Fy" wrote:

Hello,

I have a channel that contains a series of employee profile postings,
that
are generated nightly, from info from our Exchange server. The first
thing
that my application does is delete all the postings in the channel and
then
it recreates the postings to keep the staff profiles up to date. The
name
of the employee posting is always the same (user ID name) so if you
bookmark
a posting in your browser it will be there unless the employee leaves.
The
links in the rest of the CMS site however stop working for any of these
postings because, I assume, the page is programmatically deleted.

Is there any way to create a CMS link in a posting that doesn't get
affected
by a programmatic delete?

If not, I know that I'll have to spin through the channel to see if the
info
has changed for each posting or see if any old postings are orphaned
because
an Exchange profile (employee) has been removed.

Thanks in advance for any help.

Michael Fy


Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> CMS Server All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB