All keywords lowercase
-
teubernet
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 6
-
Thank you received: 0
-
-
8 years 9 months ago #4692
by teubernet
Hello, I am using tag meta enterprise TagMeta1.7.8Enterprise_J3, Joomla 3.4.8.
When I generate keywords with the {autokeywords 4,10} makro I get all keywords lowercase. For the keyword meta tag it´s ok, but I use the makro also for trhe title tag, there it is a little annoying.
How can I get the keywords in the title tag as written in the text?
Best regards
Christian
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
8 years 9 months ago #4694
by admin
Same here, i will check both requests and let you know.
Sincerely,
Luigi
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
8 years 9 months ago #4696
by admin
For meta keywords to work I need to put all words extracted to lowercase before to group them and sort by frequency. So to have case sensitive words it should be necessary to create a second (different) macro.
I will probably add in the next release. Meanwhile, if you don't need lowercase, change line 1393 (the same of other post) from this:
$content = JString::strtolower(trim(preg_replace('/[\s\r\n\t\.,:;\?!]{1,}/', ' ', $content)));
To this:
$content = trim(preg_replace('/[\s\r\n\t\.,:;\?!]{1,}/', ' ', $content));
Kind regards,
Luigi
The following user(s) said Thank You: teubernet
Please Log in or Create an account to join the conversation.
-
teubernet
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 6
-
Thank you received: 0
-
-
8 years 9 months ago - 8 years 9 months ago #4698
by teubernet
Worked like a charm, "grazie mille" for your fast and great support!
Last edit: 8 years 9 months ago by teubernet.
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
Time to create page: 0.144 seconds