Ok.. continuing on with my hybrid solutions....
I was able to locate the problem with the Meta title in SEO Tools... under the bug report looks like the fix is:
solved it by changing following line in action.default.php )line #82)
$meta_title = $this->getPreference('
meta_title','{title} | {sitename}');
to
$meta_title = $this->getPreference('
title_meta','{title} | {sitename}');
I did the above and that portion works great! on all pages including blog pages because I have the SEO Tools Meta Title set to
Code: Select all
{if isset($blogtitle)}{$blogtitle}{else}{title}{/if} | {sitename}
so now onto the Meta description issue. SEO Tools also gives you an option to auto generate a Meta Description.
HOWEVER... because SEO Tools has a section called "description block" if i remove "META Description" from that section to force it to auto generate, i get an error.
SOOOOO HERE"S MY HYBRID SOLUTION!
After you've made the necessary change above to the action.default.php file do the following:
First I had to remove the code
Code: Select all
{capture}{content block="META Description" oneline="true"}{/capture}
from the detail blog template (YES I know SEO Tools instructs you to place that code on the template).. I have left it every where else in all the other templates (May not even be needed, but I left it).. I have only removed it from the Detail Template in the Blog Module.
Second, In SEO Tools setup, I have removed the words "META Description" from the Name of page description content block: section (Keep in mind this is also something that SEO Tools tells you to put into that section BUT I removed it.)
Third, I have checked the option in SEO Tools called Automatically generate a page description where none is provided.
Fourth, in SEO Tools in the Text for auto-generated descriptions: section I have added this code:
Code: Select all
{if isset($blogtitle)}{$blogtitle}{else}{title}{/if} | {sitename} | {keywords}
You can pretty much add anything you want at this point.. the only requirement is that the {keywords} has to be left in for SEO Tools to function properly.
Fifth, on the details template of the blog you have to add this code
Code: Select all
{assign var='blogtitle' value=$entry->title|escape}
so that the SEO Tools module picks up on the blogtitle.
And That's It!!! Everything seems to be working fine and SEO Tools is creating all the META data for all the pages including the blog pages.
I hope this helps someone else.. any feedback is appreciated and I by no means claim to be great at any of the coding here.. so if I've done something that can be improved or was unecessary - PLEASE feel free to leave a reply.. i am always open to improving!
Now to get the Social Bookmarking plugin to read the title of the blog and description instead of the default pages and I'll be golden!