Developer forum

Forum » Templates » Hide page+content after login

Hide page+content after login


Reply
Hi,

I need to hide content after extranet login. It a bit complex - because we want some content to be shown to all users + some extranet groups, and hide some content for other extranet groups. Is not possible to create a new language area to solve the problem because we want to (re-)use content (incl. ecom) for all groups.

Let me try to explain:

Menu 1:
Can be seen, searched and accessed by all users, both without login and with login.
This is no problem ;)

Menu 2:
Can only be seen, search and accessed by users that are logged in and in extranet-group 1.
This is no problem either...

Menu 3:
Can only be seen, searched and accessed by users that are not logged in + users in extranet-group 2.
This is a problem. I cannot "hide" content for extranet-group 2. I can build my menu xslt to hide it from the navigation but still the content will show up in search.

Ive done a few tests with Page permission on the given page with no luck. My settings are as below:

Show this page in menu: For all users
Select group(s) and user(s):
    All: Allow
    Extranet-group 1: Deny
    Extranet-group 2: Allow

But the above dosent work (of course)... Its not posssible to allow "all" to access a page and afterwords remove the permissison.
And the "All" dosent cover users that arent logged in.. :(

Anyone with an idear to solve the above issue?


/Morten


Replies

 
Reply

Does the structure of the website allow you to create separate search pages depending on the authorized status of the user? That way you could set the starting point of the authorized search to a page where the non-authorized page is unreachable. I don't know if that could work for you?

Filtering out this page in the template might could also work, but that's kinda dirty...

 
Reply
Hi Lars,

Thanks for the reply ... we could do with separete search pages. But we've come up with another solution.

We've made a custommodule that logs in a dummy-user on every page-load - if the user arent already logged in. Now we can separete all content with ease ;)

But - I would like this function to be places in Global.asax - but I cannot find the code-behind file in the release I've downloaded. Where would you recommend me to place the function?

/Morten


 
Reply
Very smooth;)

You need to download a custom solution in order to access Global.asax methods as custom solutions use their own Global.asax and not the one provided by dw.

Btw. did you use the directions in this article to log on using the API? http://engage.dynamicweb-cms.com/default.aspx?id=361&articleid=157

 

You must be logged in to post in the forum