10-20-04 07:46 AM
Thanks for your answer..
solution 1:
I don't think this will solve my problem, since I do not want the posting to
be available to subscribers in any form except broken into pieces and used i
n
other postings.
In other words.. I have postings of type a and postings of type b. a should
only be directly visible to the administrator as explained. Postings of type
b are directly available to subscribers and contains content from
placeholders of postings of type a.
solution 2:
I will look at this. I'm not sure exactly what you mean, but might help if I
read some documentation on the method for starters..
Again, thanks for your answer.. great newsgroup.
Nikolaj
"Mei Ying [MVP]" wrote:
> Hi
>
> That's correct. When subscribers are not given access to
> the channel, they will not be able to see its postings, or
> for this matter, the posting's placeholder content -
> programatically or otherwise.
>
> There are several ways to get around this:
> 1. Create two connected postings. One posting is stored in
> the administrators channel. The other in the subscribers
> channel. The posting meant for subscribers will only have
> placeholder controls for the shared content so subscribers
> will not see the restricted content.
>
> 2. Impersonate the a user with rights to the administrator
> channel in code using the
> CmsApplicationContext.AuthenticateAsUser() method. No
> doubt, it's not the best method as it requires you to code
> the user name, password and possibly grant an account that
> is not an administrator, rights to view the content.
>
> Btw, don't use RawContent. See this post in Stefan's blog
> for a good reason why you shouldn't :-)
> http://weblogs.asp.net/stefan_gossn...e/2004/04/24/11
> 9546.aspx
>
> HTH
> Mei Ying
> ---
> Blog: http://meiyinglim.blogspot.com
> Contact: meiyinglim@hotmail.com
> ---
> administrators. Another part
> postings from the
> directly accesible
> indirectly. And these
> administrators.
> site manager to
> no longer access
> subscriber is
>
[ Post a follow-up to this message ]
|