Andreas2003 Posted March 17, 2010 Share Posted March 17, 2010 I'm having a question regarding the "preventDuplicates"-class. My problem is, that the titles of the pages are modified, when changing the language or changing pages in product listing: 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 .... But one question: 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. I saw, that FWR is the author of this file. @FWR, maybe you can help me please. Thanks in advance, kind regards Andreas Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.