Dave
Guest
|
Posted:
Thu Jan 13, 2005 10:58 pm Post subject:
Viewing hidden channels |
|
|
Hi,
In my app, I need to hide the channels so that they don't
appear in the normal navigation, however, I need to view
the channels in summary navigation in the body of my page.
When I use the hide when published, I can see them in my
main navigation and summary navigation when I am logged
in as a channel admin. When I log in as a subscriber, I
can't see them in main navigation (which is what I want)
but I can't see them in summary either (not what I want).
To get my channels, I am using a..
foreach(Channel c in ch)
(or foreach(ChannelItem ci in c))
These foreach are to build my summary navigation.
How can I view the channels?
I am using CMS2002
Thanks.
Dave Colliver.
http://www.AldershotFOCUS.com |
|
Stefan [MSFT]
Guest
|
Posted:
Thu Jan 13, 2005 11:51 pm Post subject:
Re: Viewing hidden channels |
|
|
Hi Dave,
you need to set the following setting before retrieving the hidden items.
CmsHttpContext.SessionSettings.AutoFilterHidden = false;
After you finished you need to switch it back (don't forget this!) using
CmsHttpContext.SessionSettings.AutoFilterHidden = true;
Cheers,
Stefan.
"Dave" <david@revilloc.remove.this.bit.com> wrote in message
news:0b8201c4f991$275320f0$a401280a@phx.gbl...
| Quote: | Hi,
In my app, I need to hide the channels so that they don't
appear in the normal navigation, however, I need to view
the channels in summary navigation in the body of my page.
When I use the hide when published, I can see them in my
main navigation and summary navigation when I am logged
in as a channel admin. When I log in as a subscriber, I
can't see them in main navigation (which is what I want)
but I can't see them in summary either (not what I want).
To get my channels, I am using a..
foreach(Channel c in ch)
(or foreach(ChannelItem ci in c))
These foreach are to build my summary navigation.
How can I view the channels?
I am using CMS2002
Thanks.
Dave Colliver.
http://www.AldershotFOCUS.com
|
|
|
David
Guest
|
Posted:
Fri Jan 14, 2005 2:16 am Post subject:
Re: Viewing hidden channels |
|
|
Hi Stefan,
Thanks for this. Just after I posted this question, I found this and tried
it, however, it is working wierd...
I turn it on immediately before I need it and it doesn't want to work. If I
don't turn it off, just the first level of channels appears, the second
level doesn't and it ONLY appears in the main navigation menu, NOT the
summary where I turned it on. If I turn it off immediately after where I
want it to work, then I get nothing. Really wierd.
I will have another play with it in the morning.
BTW. My other issue, trying to get a default page to appear using that
GetAuthoringNewUrl function. What I didn't know was that I needed to pass
the output of that into a string, however, this still was not what I needed.
I effectively had to create a posting, using the template, and approve it.
Best regards,
Dave.
http://www.AxminsterFOCUS.com
~~
http://www.FOCUSPortals.com - Portal Franchises available
"Stefan [MSFT]" <stefang@online.microsoft.com> wrote in message
news:%23Y7XdiZ%23EHA.1400@TK2MSFTNGP11.phx.gbl...
| Quote: | Hi Dave,
you need to set the following setting before retrieving the hidden items.
CmsHttpContext.SessionSettings.AutoFilterHidden = false;
After you finished you need to switch it back (don't forget this!) using
CmsHttpContext.SessionSettings.AutoFilterHidden = true;
Cheers,
Stefan.
"Dave" <david@revilloc.remove.this.bit.com> wrote in message
news:0b8201c4f991$275320f0$a401280a@phx.gbl...
Hi,
In my app, I need to hide the channels so that they don't
appear in the normal navigation, however, I need to view
the channels in summary navigation in the body of my page.
When I use the hide when published, I can see them in my
main navigation and summary navigation when I am logged
in as a channel admin. When I log in as a subscriber, I
can't see them in main navigation (which is what I want)
but I can't see them in summary either (not what I want).
To get my channels, I am using a..
foreach(Channel c in ch)
(or foreach(ChannelItem ci in c))
These foreach are to build my summary navigation.
How can I view the channels?
I am using CMS2002
Thanks.
Dave Colliver.
http://www.AldershotFOCUS.com
|
|
|