Microsoft Content Management Server - Re: Accessing placeholders in various postings from one codebehind fil

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > August 2006 > Re: Accessing placeholders in various postings from one codebehind fil





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: Accessing placeholders in various postings from one codebehind fil
Stefan [MSFT]

2006-08-23, 1:22 pm

Hi Hrvoje,

then you need to make them visible for your code.
This can be done using this:

CmsHttpContext.Current.SessionSettings.AutoFilterHidden = false;

Don't forget to change it back to true after your finished in your code as
this is a session property.

Cheers,
Stefan

--
This posting is provided "AS IS" with no warranties, and confers no rights


"Hrvoje Vrbanc" <hrvojev@recro.hr> wrote in message
news:%23fpEsaqwGHA.2204@TK2MSFTNGP03.phx.gbl...
> Hello again,
> I would like to ask for somewhat more help:
>
> I wanted to loop through all the postings in the channel and then do
> something with their placeholders:
>
> Dim kanal As Channel = CmsHttpContext.Current.Channel()
> Dim stranica As Posting
>
> For Each stranica In kanal.Postings
> 'blah blah
> Next
>
> It works but only with postings that are not hidden when published and I
> would need, in fact, the hidden postings.
> I tried
> kanal.Postings().FilterByHidden(True)
> but I haven't manage to access hidden postings....how to access them?
>
> Thanks in advance,
> Hrvoje
>
>
>
> "Becky VanBruggen" <BeckyVanBruggen@discussions.microsoft.com> wrote in
> message news:1E9A2D95-CBBE-4B82-8C78-3C2BC7CB2AA2@microsoft.com...
>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com