Hide Channel, access postings?
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 > Hide Channel, access postings?




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

    Hide Channel, access postings?  
Becky Bryda


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


 
04-25-04 04:34 PM

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!





[ Post a follow-up to this message ]



    Re: Hide Channel, access postings?  
Stefan [MSFT]


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


 
04-25-04 06: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!







[ Post a follow-up to this message ]



    Re: Hide Channel, access postings?  


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


 
04-26-04 12:35 AM

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





[ Post a follow-up to this message ]



    Re: Hide Channel, access postings?  
Stefan [MSFT]


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


 
04-26-04 01:35 AM

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 - 







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 08:44 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