|
Home > Archive > Microsoft Content Management Server > April 2004 > Hide Channel, access postings?
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 |
Hide Channel, access postings?
|
|
| Becky Bryda 2004-04-25, 11:34 am |
| I want to use the "Hidden when published" property on the
channel to elimate it from the navigation. I want to
programatically access the postings within that channel -
however when I use:
cmsHttpContext.Current.RootChannel.Channels
("eastWeb").Channels("News")
it does not return anything.
How can I accomplish the above scenario?
Thank you!
| |
| Stefan [MSFT] 2004-04-25, 1:35 pm |
| Hi Becky,
use Channel ch = CmsHttpContext.Search.GetByPath("/Channels/eastWeb/News")
as Channel;
Cheers,
Stefan.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Becky Bryda" <bbryda@cchseast.org> wrote in message
news:3f6c01c42ad6$e9c31260$a101280a@phx.gbl...
> I want to use the "Hidden when published" property on the
> channel to elimate it from the navigation. I want to
> programatically access the postings within that channel -
> however when I use:
> cmsHttpContext.Current.RootChannel.Channels
> ("eastWeb").Channels("News")
>
> it does not return anything.
>
> How can I accomplish the above scenario?
> Thank you!
| |
|
| Thanks!
What if I'm searching for multiple news channels under
multiple other channels? I want to dynamically get to the
news channel, which we want hidden from our navigation.
Currently there are between 12-17 channels that have a
child News channel.
>-----Original Message-----
>Hi Becky,
>
>use Channel ch = CmsHttpContext.Search.GetByPath
("/Channels/eastWeb/News")
>as Channel;
>
>Cheers,
>Stefan.
>
>--
>This posting is provided "AS IS" with no warranties, and
confers no rights.
>
>
>"Becky Bryda" <bbryda@cchseast.org> wrote in message
>news:3f6c01c42ad6$e9c31260$a101280a@phx.gbl...
the[vbcol=seagreen]
channel -[vbcol=seagreen]
>
>
>.
>
| |
| Stefan [MSFT] 2004-04-25, 8:35 pm |
| Use different searches or disable the "hidden" feature while your code is
running.
To do this set SessionSettings.AutoFilterHidden to false.
Dont forget to change it back at the end of your routine!!!
Cheers,
Stefan.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
<anonymous@discussions.microsoft.com> wrote in message
news:410201c42b1c$059a6660$a101280a@phx.gbl...[vbcol=seagreen]
> Thanks!
> What if I'm searching for multiple news channels under
> multiple other channels? I want to dynamically get to the
> news channel, which we want hidden from our navigation.
> Currently there are between 12-17 channels that have a
> child News channel.
>
> ("/Channels/eastWeb/News")
> confers no rights.
> the
> channel -
|
|
|
|
|