| Author |
Message |
Michael Fy
Guest
|
Posted:
Wed Jan 19, 2005 1:15 am Post subject:
Links to deleted pages |
|
|
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 |
|
|
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 |
|
|
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 |
|
 |
|
|
|
|