[SOLVED] News module - prevent access

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
kastoras
New Member
New Member
Posts: 2
Joined: Thu Aug 11, 2011 9:58 am

[SOLVED] News module - prevent access

Post by kastoras »

Hi guys,

I've got a few problems:

I'm using News module with pretty URLs. It's working but I don't know how to prevent guests from seeing my directories ( I will us swarfega's web to show you what I want to achieve – I think he wouldn't mind) e.g.
http://thriplow.org.uk/cms/news/63/59/S ... ug-2011.pc
When you delete /Shop-Newsletter-2-Aug-2011.pc from this link you get error.
That's the first thing I want.

This one is not a problem anymoreSecond:
I use 'news' folder (like swarfega) but only for dynamic content – it isn't shown in menu. I would like to prevent guests from seeing this folder
http://thriplow.org.uk/cms/news/ - this works here but I want it to stay hidden in my project because there is no data.


Third:
It's linked with the first issue:
http://thriplow.org.uk/cms/news/63/59/S ... ug-2011.pc
When I delete 59/Shop-Newsletter-2-Aug-2011.pc from link above and left
http://thriplow.org.uk/cms/news/63
dynamic content is shown inside my site {content} instead of the dynamic news area.

version: CMS Made Simple™ 1.9.4.2 "Faanui"
News 2.11.3


TIA
Last edited by kastoras on Tue Aug 16, 2011 6:49 am, edited 1 time in total.
User avatar
kidcardboard
Forum Members
Forum Members
Posts: 54
Joined: Mon Sep 28, 2009 5:25 pm

Re: News module - prevent access

Post by kidcardboard »

Everything in the URL is important (except for maybe the 'cms' part) when it comes to the News module. The 63 is the article id, the 59 is the page id that the article is going to use for it's detail page, the 'Shop-Newsletter-2-Aug-2011' is a sudo alias for the article and the .pc is the suffix you've set. Removing either id(63 or 59) will cause something to break. I'm not sure why you'd want to prevent guests from seeing your 'directories' as they don't really exist.
Post Reply

Return to “CMSMS Core”