| Author |
Get all postings in a site
|
|
| shmeian 2005-09-28, 6:00 pm |
| Hi there,
I'm writing some code that notifies authors when their postings are due to
expire.
Is there a quick way to get all the postings in a site without having to
iteratively spider the site channel by channel?
I'm not really worried about performance as the code will only execute at
night and it's an Intranet; I'm just looking for a simple soln or lazy!
| |
| Mei Ying [MVP] 2005-09-29, 2:53 am |
| Hi
You could Searches.NewPostings() and pass in a very large number as the
input parameter - but it's going to be a performance hog.
The more robust method would be to spider the site, and you won't have to
write it from scratch as Stefan already has a sample posted on his blog:
http://blogs.technet.com/stefan_gos.../07/386526.aspx
--
regards
Mei Ying
---
Blog: http://meiyinglim.blogspot.com
Book: http://www.packtpub.com/book/mcms
Contact: meiyinglim@hotmail.com
---
"shmeian" wrote:
> Hi there,
>
> I'm writing some code that notifies authors when their postings are due to
> expire.
>
> Is there a quick way to get all the postings in a site without having to
> iteratively spider the site channel by channel?
>
> I'm not really worried about performance as the code will only execute at
> night and it's an Intranet; I'm just looking for a simple soln or lazy!
>
| |
| shmeian 2005-09-29, 2:53 am |
| Thanks Mei Ying.
I'll look at Stefan's blog and do it that way.
(By the way I have just got your guys' book and it's very good thanks)
"Mei Ying [MVP]" wrote:
[vbcol=seagreen]
> Hi
>
> You could Searches.NewPostings() and pass in a very large number as the
> input parameter - but it's going to be a performance hog.
>
> The more robust method would be to spider the site, and you won't have to
> write it from scratch as Stefan already has a sample posted on his blog:
> http://blogs.technet.com/stefan_gos.../07/386526.aspx
> --
> regards
> Mei Ying
> ---
> Blog: http://meiyinglim.blogspot.com
> Book: http://www.packtpub.com/book/mcms
> Contact: meiyinglim@hotmail.com
> ---
>
>
> "shmeian" wrote:
>
|
|
|
|