Microsoft Content Management Server - Re: the news summary page progress

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > October 2004 > Re: the news summary page progress





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 Re: the news summary page progress
Stefan [MSFT]

2004-10-07, 2:55 am

And to put the latest to the top, use

PostingCollection pc = CmsHttpContext.Current.Channel.Postings;
pc.SortByLastModifiedDate;

foreach(Posting IterativePosting in pc)
{
String Title =
(HtmlPlaceholder)IterativePosting.Placeholders["Title"].Value;
}

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
--------------------------------


"Angus Logan [MVP]" <angus_logan@data3.com.au> wrote in message
news:#4zXzJErEHA.1152@TK2MSFTNGP11.phx.gbl...
> Is the "Title" in a placeholder?
>
> If so here's an example of how to get content from a placeholder
>
>

(HtmlPlaceholder)CmsHttpContext.Current.Posting.Placeholders["Title"].Value
>
> So you coud use any posting
> foreach(Posting IterativePosting in

CmsHttpContext.Current.Channel.Postings)
> {
> String Title =
> (HtmlPlaceholder)IterativePosting.Placeholders["Title"].Value
> }
>
> (I did this without intellisense and I am a VB.NET coder so it may be a
> little off the mark)
>
> Cheers
> --
> ________________________________________

>
> Angus Logan (MCAD/MCDBA/MCP/MVP for MCMS)
> Product Specialist
> Microsoft Application Solutions
> Data#3 Limited
> E angus_logan@data3.com.au
> BLOG www.anguslogan.com
> ________________________________________

>
> "choihead" <choihead@Hotmail.com> wrote in message
> news:ubt2rcArEHA.896@TK2MSFTNGP12.phx.gbl...
> in
to[vbcol=seagreen]
a[vbcol=seagreen]
>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com