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