• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Restricted Content and News
PostPosted: Thu Mar 29, 2012 6:30 pm 
Offline
New Member

Joined: Tue Feb 08, 2011 9:09 pm
Posts: 7
Hi all,

cms/php details below. I am making a restricted content area for a band website. The content in this area will be viewed by band members.

I have got frontend users working fine with a login page. I have read up on custom content including calguy's pdf 'Hiding private content' and I am ok with this.

However what I cannot figure out is how this works with the news module.

I wish to allow the site editors to create news articles that will only appear on the restricted page. These news articles will fall under a number of different categories which may grow as the editor needs.

Is this possible? My apologies if this has been answered but I have had a long search through the docs and forums.

thanks



CMS Version 1.10.2
News 2.12.3
FrontEndUsers 1.16.8
CustomContent 1.7.3

php 5.3.8
apache/2.2.21


Top
 Profile  
 
 Post subject: Re: Restricted Content and News
PostPosted: Fri Mar 30, 2012 2:47 am 
Offline
Power Poster
Power Poster

Joined: Mon Jun 12, 2006 9:02 pm
Posts: 1904
So what is your question?

On the "restricted" page, simply call the News module {cms_module module='News' category='yourcategory'}.

If the user has permission to be on that page, then he'll see the news. Otherwise, he won't.


Top
 Profile  
 
 Post subject: Re: Restricted Content and News
PostPosted: Fri Mar 30, 2012 11:31 am 
Offline
Power Poster
Power Poster
User avatar

Joined: Tue Mar 31, 2009 8:45 pm
Posts: 377
Location: Delft, Netherlands
Also, add some ccuser logic to your detail template, otherwise it wil be very easy to just change the news id in the URL to view "restricted" news items
Code:
{if $ccuser->memberof("band") || $entry->category == 'public'}
// display news item
{else}
// display "this news-item is for members only" or something
{/if}


Top
 Profile  
 
 Post subject: Re: Restricted Content and News
PostPosted: Sat Mar 31, 2012 9:59 am 
Offline
New Member

Joined: Tue Feb 08, 2011 9:09 pm
Posts: 7
Thank you for the responses.

to clarify...

there is a news page on the site which deals with general public news.

I wish to also have a restricted page that contains restricted news items. These news items will not be just one category - I wish for the site editors to set up as many restricted categories as they wish and for these news items not to appear on the public news page.

I am unsure of how I would set things up so as the editors can define multiple restricted news categories in future.

thanks for your help


Top
 Profile  
 
 Post subject: Re: Restricted Content and News
PostPosted: Sat Mar 31, 2012 5:55 pm 
Offline
Administrator
Administrator
User avatar

Joined: Thu Mar 09, 2006 5:32 am
Posts: 11818
Location: Arizona
Fork News to be RNews module that way you have 2 different module to work with, one Restricted one not...

_________________
Extensions » Modules/Tags click the name of the module/tag or Help to the right to get its parameters.
Right click and view source is a great way to see what you have to work with.
Check ver. CMSMS, PHP, server OS, in System Information page.
Default content http://multiintech.com/defaultcontent/
People are Wonderful
Business is Great
Life is Terrific
Ever wonder what happened to the Album module? Well it is alive and well.
http://album.multiintech.com/
Image


Top
 Profile  
 
 Post subject: Re: Restricted Content and News
PostPosted: Mon Apr 02, 2012 5:51 pm 
Offline
New Member

Joined: Tue Feb 08, 2011 9:09 pm
Posts: 7
Thank you I will investigate what forking is.

If I were to have just one restricted news category that displayed only on the restricted page, how would I make sure that the public news page did not show the restricted news category?

thanks


Top
 Profile  
 
 Post subject: Re: Restricted Content and News
PostPosted: Mon Apr 02, 2012 6:16 pm 
Offline
Administrator
Administrator
User avatar

Joined: Thu Mar 09, 2006 5:32 am
Posts: 11818
Location: Arizona
You would have to use the category='list,each,category,here' but then for every new category you would have to add it to that tag parameter...

Or do some fancy smarty calls in the News templates to not show that category...

_________________
Extensions » Modules/Tags click the name of the module/tag or Help to the right to get its parameters.
Right click and view source is a great way to see what you have to work with.
Check ver. CMSMS, PHP, server OS, in System Information page.
Default content http://multiintech.com/defaultcontent/
People are Wonderful
Business is Great
Life is Terrific
Ever wonder what happened to the Album module? Well it is alive and well.
http://album.multiintech.com/
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Arvixe - A CMSMS Partner