Linked Questions

13
votes
8answers
12k views

How to redirect an anonymous user to the login form after a 403 error?

I want to redirect an anonymous user to the login form if such user encounters a 403 error. I have created event subscriber and this is my code, but I end up on loop on the current page. /** * ...
5
votes
3answers
1k views

How to restrict access to a node via node/12 and allow access via a path like content/sometitle?

Problem: I want to restrict direct node access using node number www.example.com/node/12 and allow access using pathauto alias www.example.com/content/sometitle to anonymous user. This user should be ...
1
vote
6answers
2k views

How to mark a Message as 'viewed' when a user sees it in a View?

I'm displaying a user's Messages (created with the Message module) in a View. I'd like to flag them once they're viewed and thought that a Rule could do this easily. I've set the Rules Event to "A ...
2
votes
2answers
1k views

Webform as a block only

When I crate a Webform I do have an option to make it available as a block as well. But in this case it creates a node as well. How can I create a Webform as a block only?
2
votes
4answers
623 views

How to redirect by adding something after pathauto url?

I am trying to do a simple thing. Whenever an anonymous user views a content , I want to redirect the user to node's-url/#overlay=signup So, how do I modify the URL to use #overlay=signup at the ...
2
votes
4answers
825 views

How can I set the view mode of a node through rules

I'd like to change the view mode of a node based on the role of a user and another flag in the node, and by using the Rules module. Since a call to display the node by default is full content, I ...
1
vote
1answer
619 views

How to change taxonomy term in field with Rules?

I have a field status that when user uploads a file, is populated by a taxonomy term "uploaded". Now when an administrator downloads the file I need the status field up change to taxonomy term ...
3
votes
2answers
189 views

Redirect page to existing field value

I am redirecting most of the pages of my old website to a new subdomain of the same domain, from http://www.domain.com/www-page_url to http://new.domain.com/new-page_url/with-different-slug. This new ...
1
vote
2answers
197 views

Which Rules Event in the Rules module gets triggered after clicking on a link?

If I click on a link in a node, I want to know which Rules Event in Rules gets triggered that I can use. Notes: On the home page, there are a lot of views blocks. So in that node title (or image or ...
2
votes
1answer
132 views

Rules module user/register

I keep getting spammed/attacked looking at reports/db. Anonymous users keep trying to go to /user/register (but I disabled registering). So being annoyed by anons still trying to going to that url, I ...
2
votes
1answer
127 views

How to tell what is being loaded on a Rules Content is viewed event

Is there a way I can see what exactly is being executed on a Rules Event of 'Content is viewed', followed by an action of page redirect to an external URL? Specifically if the content is actually ...
1
vote
1answer
116 views

Apache solr with rules module, on refresh, rule viewing node triggers it in search page

I'm building a site in free Acquia cloud env with apache solr running, I need to count when a node (for one content type) is being full displayed, that’s already working fine, but every time I refresh ...
0
votes
0answers
92 views

I cannot see the Rules event “Page is going to be viewed”

I am looking for rules event "Page is going to be viewed" but I cannot see it; is there something I am missing? I'm using rules 7.23, I have panels enabled, and I want to use it to redirect ...
2
votes
1answer
92 views

Which Rules Event can I use for automatic login from main site to sub site with same database after clicking on a link?

In the home page of main site, I am listing all the products. Buyer has logged into the main site and clicks on any product title or image, then I take the buyer to the corresponding sub domain ...
1
vote
1answer
61 views

Using rules to populate a field with the output of pdfprevew

I have a field (public_files) that accepts file uploads to which I have applied the pdfpreview module which provides a field formatter that will provide the generated image for pdf files. I have ...

15 30 50 per page