1

We have a website, We also use civicrm for our membership and communications. Now we have our 16000 records entered into civi and all correct, can we restrict access to some member content pages(not written inside civi), Essentially we want to create a login for the member only content, have a script check with civi that the membership is still current, maybe check member id and email then allow access to the pages we want members to have access to. We dont want members to signup and pay for membership because the folks we represent dont do credit cards!! We just want a page or area of our website thats restricted to our members rather than the entire webiverse.

Or am I dreaming that it can be done?

  • Which CMS are you using? – Coleman Aug 13 '16 at 15:36
2

Understanding the parts

There are a few parts to this question - your CRM (CiviCRM, which has your membership list), and your CMS (Drupal, Joomla or WordPress, which has your website pages). Your CMS has Users while your CRM has Contacts. These may match, but you can also have a Contact without a matching User. The CMS controls access to Pages. In order to access restricted pages, the User generally needs to log into the CMS first.

So there are some "dots to join". In your case,

  • All your Member Contacts will need a matching User in the CMS
  • The CMS needs to restrict access for some Pages to some Users
  • There are access criteria for the above (User must connect to Contact which has current Membership)

How you implement this depends on the CMS you're using, and what makes most sense for you. (Including details like the CMS in your question will inform the answers you get.)

Drupal

There are wiki docs on how to sync Contacts to Users. This page looks a bit old - definitely test this process on a development site.

In Drupal there are multiple ways to slice and dice the content access situation ... sorry! Some options would be Content Access (suited for smaller sites where you have one or two restricted pages), Node View Permissions (restrict by member-only content type), or reviewing a longer list of content access options.

(You could also implement your own access restriction using CiviCRM checksums alone, but I think I've given you enough new questions already!)

Other CMS

This answer doesn't specify how to do this for other CMS (nor does it give specific instructions for Drupal, just a few options). If you can help improve this answer, you're welcome to edit it wiki style, OR add your own solutions for Joomla / WordPress.

  • That answer is fine if you assume that we have created a website in Drupal. Issue for us is we havnt, its a standard run of the mill html website that we built from the ground up, so it dosnt rely on Drupal. The website came first, then years later we needed to manage members and hence Civi came later. – Gary Martin Aug 14 '16 at 23:07
  • Sorry this wasn't helpful to you. You didn't specify a CMS in your question - as you can see from both my reply and Coleman's, this would inform the correct answer. I checked through your previous questions and saw some referring to Drupal, so did my best to answer based on the info at hand. This meta question is worth a look - I wonder if we could improve the ask page to encourage detailed questions? – Chris Burgess Aug 15 '16 at 0:10
  • Gary - I'd encourage you to edit your question and add the CMS detail, hopefully once that info is available you'll get a better informed reply. – Chris Burgess Aug 15 '16 at 0:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.