Re: the news summary page progress
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Content Management Server > Re: the news summary page progress




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Re: the news summary page progress  
Stefan [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-07-04 07: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...>
MCMS+2002+-+(complete)+FAQ.htm
MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
MCMS Sample Code:
http://www.gotdotnet.com/community/...nagement+Server
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] 
>
>







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:19 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register