Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Google Duplicate Content Manager version 1.0a

FWR Media

Recommended Posts

I want to change the title and description pattern (the sorting) in the "preventDuplicates"-class.


The today's output is like that:

language_en | other title => for english
language_de | other title => for german
language_es | other title => for espanol

sort_2a page_1 language_de | other title
sort_2a page_2 language_de | other title


I have these settings in the code, which is fine:

 var $IhaveDuplicateContent = true;
 var $turnServiceOn = true; // true turns on false will turn this service off



Is it possible, to move this prevention method ('sort', 'page', 'language', 'currency') behind the original title ?

For example:


other title | language_en => for english
other title | language_de => for german
other title | language_es => for espanol

other title | sort_2a page_1 language_de
other title | sort_2a page_2 language_de



Is it correct, that the sort order of the title/meta-pattern can be influenced in the function "performPCRE" ??

Then I guess, that changing these lines here maybe the right point:


   $pattern[]   = '@<title>\s*@i';
   $pattern[]   = '@<meta\s*name\s*=\s*"\s*description\s*"\s*content\s*=\s*"\s*@i';
   $pattern[]   = '@<meta\s*name\s*=\s*"\s*keywords\s*"\s*content\s*=\s*"\s*@i';
   $replace[]   = '<title>' . str_replace('-', ' | ', $this->addedMeta);
   $replace[]   = '<meta name="description" content="' . str_replace('-', ' ', $this->addedMeta);
   $replace[]   = '<meta name="keywords" content="' . str_replace('-', ', ', $this->addedMeta);


but I don't know how and where exactly.


Thanks in advance for your help,

kind regards


Link to comment
Share on other sites

  • Replies 75
  • Created
  • Last Reply

Top Posters In This Topic

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...