Project

General

Profile

Paste
Download (2.4 KB) Statistics
| Branch: | Revision:

root / drupal7 / sites / all / modules / content_access / help / integration.html @ ae34fb26

1
<h2>Introduction</h2>
2

    
3
<p>This section contains notes about how to integrate <strong>Content
4
Access</strong> with other modules.</p>
5

    
6
<p>I have not tested these myself, so I do not guarantee that the
7
suggestion collected below actually work.  They are just to keep the
8
links to the workarounds posted somewhere on the web in a single
9
file.</p>
10

    
11
<p>If you spot link rot, or wrong information, on this page, please
12
report it using the project's
13
<a href="https://drupal.org/project/issues/content_access">issue queue</a>.</p>
14

    
15
  
16
<h2>Varnish, Cachewall</h2>
17

    
18
<p><em>Varnish</em> and other cache systems such as <em>Cachewall</em>
19
by default will delete cookies before they reach Drupal, so everybody
20
becomes an anonymous user. This precludes access to private file
21
attachments.</p>
22

    
23
<p>Below are settings for <em>Varnish</em> to prevent this for some
24
file types:</p>
25

    
26
<pre>
27
# Always cache the following file types for all users. This list of extensions
28
# appears twice, once here and again in vcl_fetch so make sure you edit both
29
# and keep them equal.
30

    
31
if (req.url ~ "(?i)\.(pdf|txt|csv|png|gif|jpg|ico|swf|css|js)(\?.*)?$") {
32
  unset req.http.Cookie;
33
}
34
</pre>
35

    
36
<ul>
37
<li>Drupal.org: <a href="https://www.drupal.org/project/content_access/issues/2682635">Issue #2682635</a></li>
38
<li>Drupal.org: <a href="https://www.drupal.org/project/webform/issues/2421429#comment-9667677">Issue #2421429, comment #4</a></li>
39
</ul>
40

    
41

    
42
<h2>Views and Workbench</h2>
43

    
44
<p>If you have problems intgrating <strong>Views</strong> and/or <strong>Workbench</strong>,
45
in particular in connection with the  “<em>View own unpublished content</em>” permission,
46
one of these links may help:</p>
47

    
48
<ul>
49
<li>Drupal.org: <a href="https://www.drupal.org/project/content_access/issues/2204609">Issue #2205609</a></li>
50
<li>Drupal Answers: <a href="https://drupal.stackexchange.com/q/41997/12076">Problem with “Content Access” and permission “View own unpublished content”</a>.</li>
51
<li>Drupalprimer: <a href="http://drupalprimer.com/node/2">Drupal 7's Access Control module prevents view of user's own unpublished content</a>.</li>
52
</ul>
53

    
54
<p>Problems using relationships in <strong>Views</strong> may be solved by patching core:</p>
55

    
56
<ul>
57
<li>Drupal.org: <a href="https://www.drupal.org/project/content_access/issues/2020453">Issue #2020453</a></li>
58
<li>Drupal.org: <a href="https://www.drupal.org/project/drupal/issues/1349080#comment-10953027">Issue #1349080, comment #332</a></li>
59
</ul>