|
Home > Archive > Microsoft Content Management Server > October 2004 > Use SharePoint Portal Server Search Function in MSCMS
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 |
Use SharePoint Portal Server Search Function in MSCMS
|
|
| Tony Cheng 2004-10-18, 7:47 am |
| I want to ask the search function provided by SharePoint whether it can be
able to find out all pages which contain hyperlink that matched with the
keyword I provdied.
For example, if I have a CMS posting which contains a hyperlink
http://www.microsoft.com, when I use the SharePoint search function in MSCMS
with keyword "microsoft" , can this posting be found ?
What I want to do is that when I delete a posting, I want to ensure that
other posting in CMS do not contain the hyperlink which would lead to this
deleted posting to avoid deadlink.
Thanks.
| |
| Stefan [MSFT] 2004-10-18, 7:47 am |
| Hi Tony,
this is not a MCMS related question.
It would be nice if you would avoid cross-posting to multiple newsgroups.
Cheers,
Stefan.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
MCMS FAQ:
http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm
MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
MCMS Sample Code:
http://www.gotdotnet.com/community/...t+S
erver
MCMS Whitepapers and other docs:
http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
--------------------------------
"Tony Cheng" <sdasd@fdfsds.com> wrote in message
news:#bDJ1aQtEHA.1216@TK2MSFTNGP10.phx.gbl...
> I want to ask the search function provided by SharePoint whether it can be
> able to find out all pages which contain hyperlink that matched with the
> keyword I provdied.
>
> For example, if I have a CMS posting which contains a hyperlink
> http://www.microsoft.com, when I use the SharePoint search function in
MSCMS
> with keyword "microsoft" , can this posting be found ?
>
> What I want to do is that when I delete a posting, I want to ensure that
> other posting in CMS do not contain the hyperlink which would lead to this
> deleted posting to avoid deadlink.
>
> Thanks.
>
>
| |
|
| Hello Tony,
Yes, SharePoint should find that posting in the situation you provided. However, I'm not so sure this is a SharePoint question/issue.
If you have postings that contain links to other postings, as links in HtmlPlaceholders, there's no provided method to make sure that deadlink isn't present. I had this issue at one time. What we did was when someone wanted to link to another posting, w
e created a special tag that had two attributes: text (what will appear for the link) and guid (of the target posting). Then, before we rendered the contents of that placeholder, we searched for our custom tag, got the URL to the posting, and replaced th
e tag with the HTML link. If the posting was not present, the text was displayed, but the link wasn't created. Not fool proof, but at least they won't hit a dead link.
Another option is to create a custom 404 page... could even make it email you or log when a bad page was requested.
Another option is to periodically scan your site for certain keywords. I built a little utility that does this when we ported our site from an ASP-based solution -> MCMS based solution... to get rid of hard links and such.
MCMS String Searcher: http://andrewconnell.com/blog/archi.../02/07/253.aspx
So as you see, there's no way to do this out of the box... you'll either have to educate your content owners to be aware of this or come up wiht your own solution. My $.02: We do our best to educate our users to NOT manually link to other postings. What
we do is tell them to reference a posting, and say "see references" which is a custom placeholder that is included at the bottom/side of two of our templtes where they can select postings to link to... and if those postings aren't present, we don't show
them.
-AC
> I want to ask the search function provided by SharePoint whether it
> can be able to find out all pages which contain hyperlink that
> matched with the keyword I provdied.
>
> For example, if I have a CMS posting which contains a hyperlink
> http://www.microsoft.com, when I use the SharePoint search function in
> MSCMS with keyword "microsoft" , can this posting be found ?
>
> What I want to do is that when I delete a posting, I want to ensure
> that other posting in CMS do not contain the hyperlink which would
> lead to this deleted posting to avoid deadlink.
>
> Thanks.
>
| |
| Tony Cheng 2004-10-18, 8:47 pm |
| Hi AC,
Thanks for sharing your experience about this issue. It is very helpful to
me.
Tony
"AC" <spam@nospamme.com> wrote in message
news:eefRPdRtEHA.3972@TK2MSFTNGP15.phx.gbl...
> Hello Tony,
>
> Yes, SharePoint should find that posting in the situation you provided.
> However, I'm not so sure this is a SharePoint question/issue.
>
> If you have postings that contain links to other postings, as links in
> HtmlPlaceholders, there's no provided method to make sure that deadlink
> isn't present. I had this issue at one time. What we did was when
> someone wanted to link to another posting, we created a special tag that
> had two attributes: text (what will appear for the link) and guid (of the
> target posting). Then, before we rendered the contents of that
> placeholder, we searched for our custom tag, got the URL to the posting,
> and replaced the tag with the HTML link. If the posting was not present,
> the text was displayed, but the link wasn't created. Not fool proof, but
> at least they won't hit a dead link.
>
> Another option is to create a custom 404 page... could even make it email
> you or log when a bad page was requested.
>
> Another option is to periodically scan your site for certain keywords. I
> built a little utility that does this when we ported our site from an
> ASP-based solution -> MCMS based solution... to get rid of hard links and
> such.
>
> MCMS String Searcher:
> http://andrewconnell.com/blog/archi.../02/07/253.aspx
>
> So as you see, there's no way to do this out of the box... you'll either
> have to educate your content owners to be aware of this or come up wiht
> your own solution. My $.02: We do our best to educate our users to NOT
> manually link to other postings. What we do is tell them to reference a
> posting, and say "see references" which is a custom placeholder that is
> included at the bottom/side of two of our templtes where they can select
> postings to link to... and if those postings aren't present, we don't show
> them.
>
> -AC
>
>
| |
|
| Hello Tony,
Anytime... good to hear it helped 
-AC
[vbcol=seagreen]
> Hi AC,
>
> Thanks for sharing your experience about this issue. It is very
> helpful to me.
>
> Tony
>
> "AC" <spam@nospamme.com> wrote in message
> news:eefRPdRtEHA.3972@TK2MSFTNGP15.phx.gbl...
|
|
|
|
|