Posts and Comments Duplicate Content Issues

I'm having problem with duplicate content when I uncomment the following line in my robots.txt:

Disallow: /comment/reply/

If I comment the above line in my robots.txt, I think Google will not crawl comments submitted on the post. So how do you deal with duplicate content in Drupal?

I don't want Google to index the post and at the same time index the comments with the same post. This could cause a duplicate content in search engine results.

drupal_access_denied()

 

​

if ((Int)$count == 0) {					
	drupal_access_denied();
	module_invoke_all('exit');
	drupal_exit();
}


​

Is giving an infinate loop. Other than doing a redirect instead to an access denied page what is the best solution please?

How do I Send a single email with Rules when I edit multiple nodes?

I have a view of nodes that I edit with VBO. I filter this nodes by author. When I edit this nodes I send a mail to author with a rule but I have a problem when I edit more than one nodes with VBO. In fact Rule sends as many email as they are the nodes.

How I can do to send only a single email to the author that I have filtered in the views?

I use Drupal 7.

testing: two PC's, one DNS entry, 2 ports

I have an Apache web server (registered DNS: myname.org) on my primary PC, but need to test a 2nd PC attached to the same router. The 2nd PC will eventually be accessed by its own DNS name ("other.org" already registered) when I replace the old machine. "other.org" is already registered and an active server is using it at another location. I am testing a replacement for it . I have set up my router to forward a different port (50xxx) to the 2nd PC and I have set up its Apache httpd.conf to Listen on that port. "other.org" will run Drupal and uses "other.org" in its "settings.php".

How to use Rules to match multiple text patterns

I get a large number of spam user accounts created recently. I start using Rules module to block these spammers. Here is how to do this: the spammers seem to have unlimited amount of email addresses from several domains (such as ????.website which is rarely used by normal people). For each such domain name I create a Rule, performing text comparison between the email address and the domain names (using 'ends with' comparison). Then I ask Rules module to block such user account automatically. This works pretty well.

Add new Paragraph instance through editable field in view

I'm working on a Drupal 7 site, trying to create a pretty complicated view that will allow adding a new instance of a Paragraph without having to use the entire node edit form. I have the editable fields module installed, and I can add the paragraph, but not without cluttering the view with all previous paragraph instances. I've played around quite a bit with view modes, and field settings, but haven't come up with a solution. Any ideas?

Thanks!

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x