MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

restrict view of particular blog(s)  (Mono Support )

Viewed 10788 time(s), 4 post(s) 5/30/2014 11:48:34 AMby gstadter
gstadter

gstadter

6/3/2014 9:46:04 PM
This may seem like an odd idea, but I would like to figure out how to restrict access to a particular blog to a certain role.
I've tried using a <location> tag in the web.config using /blog/posts/%blog-name%, but that isn't working.

I know this is way outside the box, but if anyone has a moment and an idea, it would be very appreciated.

update:  just thinking out loud... could I make a copy of blog.aspx, and leverage the url rewriter to point only the particular blog to use the copy of blog.aspx, and use a <location> tag to restrict access to the copy ?  ..call it blog-blogname.aspx, for example?

This content has not been rated yet. 
669 Reputation 67 Total posts
gstadter

gstadter

6/2/2014 3:35:33 PM
arg... figured how to just use existing functionality to restrict access(no external manipulation required.)
This content has not been rated yet. 
669 Reputation 67 Total posts
khorvat

khorvat

6/3/2014 9:45:41 PM
Ok, that's great to hear can you please let us know how you did it so we can confirm if this is a good practice ?

Regards
This content has not been rated yet. 
15993 Reputation 2214 Total posts
gstadter

gstadter

6/5/2014 11:51:52 AM
You guys did all the work, not me.   8-)
I saw this comment in web.config:
<!-- dynamic blog post rules, can be used regardless of the actual name of the page that holds blog parts -->

I created a folder for the secured blog "/SecuredBlog1/" and created a page in it called Default.aspx.
also created a folder for another secured blog "/SecuredBlog2/" and created a page in it called Default.aspx.
Added Blog Container web parts to each page and set the appropriate slug on each.
Each Blog can have it's own permissions set.

Now, if someone goes to mysite.com/SecuredBlog1/, they either see the blog or are told that access is denied.
All permissions done within MonoX CMS UI(no <location/> tag needed).
I'm not using "/Blog.aspx" as it is, out-of-the-box.
This content has not been rated yet. 
669 Reputation 67 Total posts