I am using views to show some published content. I would like to give users with the role preview
the ability to see all content within the view – published and unpublished. So they can preview how the page would look like after publishing content. My thoughts: I need to add a filter-criteria:
Published (=Yes)
OR
Current-User-Role (=preview)
Ideas?
edit #1: to make it easier, I could also allow to see the content for all authenticated users.
edit #2: I have about 15 views where I need the preview functionality. they have different structure (filter criteria, viewmode, context etc) that means I need to keep it flexible. means probably that I need to define a filter and validate the data in the template.php