Using "Front page" view: private vs public content

Events happening in the community are now at Drupal community events on www.drupal.org.
rtvWebServicesLibrarian's picture

All:
I am attempting to use the "Front page" view to filter for public/private content. I created a taxonomy called "Visibility", with two terms: "public" and "private". I've added this to the "Article" content type. I want articles labeled "private" only to show up for authenticated users.

I enabled the "Front page" view, and adjusted the following settings:

  • Under "Filter Criteria," added "Content: Visibility (<> Private)" and set it to "This page (override)".
  • Page settings > Access > Role > anonymous user

Then I added a second "Page" to the view, with the following settings:

  • Page settings > Access > Role > [all other roles besides anonymous user]
  • Page settings > This page (override)
  • Removed the visibility criteria

When I view the home page as both an authenticated and anonymous user, I can see articles labeled "private". How do I make this work?
Thanks in advance!

Comments

Found the problem, please disregard

rtvWebServicesLibrarian's picture

I found I'd neglected to change

Administration > Configuration > Site information > Front Page

from "node" to "frontpage" to make it work.

(I feel rather silly.)

Doesn't work for me.

jvelasquez's picture

So I followed this procedure, and it almost works, except....

Upon adding a 2nd Display of type 'page', and changing it's 'Page Settings' to 'This Page (override)', and the access role, somehow changes the access role settings of ALL my Displays. Is this a bug?

Status Report:
Drupal 7.14
OK
Access to update.php Protected
OK
CTools CSS Cache Exists
OK
Colorbox plugin 1.3.19.3
OK
Configuration file Protected
OK
Cron maintenance tasks Last run 21 min 9 sec ago
OK
Database system MySQL, MariaDB, or equivalent
OK
Database system version 5.1.63-0+squeeze1-log
OK
Database updates Up to date
OK
Date API System date settings
OK
Drupal core update status Up to date
OK
File system Writable (public download method)
OK
GD library PNG support 2.0
OK
GD library rotate and desaturate effects 2.0
OK
LDAP Extension Loaded Passed
OK
Module and theme update status Up to date
OK
Node Access Permissions Disabled
OK
PHP 5.3.3-7+squeeze13 (more information)
OK
PHP extensions Enabled
OK
PHP memory limit 128M
OK
PHP register globals Disabled
OK
Unicode library PHP Mbstring Extension
OK
Update notifications Enabled
OK
Upload progress Enabled (PECL uploadprogress)
OK
Web server Apache/2.2.16 (Debian)
OK
Wysiwyg CKEditor spellchecker Installed correctly
OK
Wysiwyg TinyMCE spellchecker Installed correctly
Info
phpCAS 1.3.1

Each time you edit a setting

jeremyr's picture

Each time you edit a setting make sure you have switched it to "override". You have to change it once for each group of settings on the same display.

Check that and see if it fixes it.

Success, but still buggy

jvelasquez's picture

Yes jeremyr, I was able to get it by really playing with it.
But I'm positive that the Views UI version I have has a little bug in it.
Thanks for the help none the less.

Utah

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week