anand-patel / oc-seo-extension

SEO Extension for October CMS Pages
12 stars 29 forks source link

Title and description tags are duplicated #31

Open ghost opened 7 years ago

ghost commented 7 years ago

There are no visual difference between the fields

image

Can you just identify where is <meta name="description" ... and where if <meta name="og:description" ?

And separate the fields with a simple hr?

raakesh commented 7 years ago

@dunets I've had same problem. I've moved the fields ( added by seoextension plugin ) to new tab ( like SEO ).You can do it by yourself by making some changes in Plugin.php. Change tab values to 'SEO' ( i.e 'tab' => 'cms::lang.editor.meta' to 'tab' => 'SEO') in Plugin.php.

d-nightmare commented 6 years ago

Or remove the fields that come from the pages plugin itself and only use the ones from this plugin.

Plugin.php


if(PluginManager::instance()->hasPlugin('RainLab.Pages') && $widget->model instanceof \RainLab\Pages\Classes\Page)
            {
                // remove title & description from pages plugin
                $widget->removeField('viewBag[meta_title]');
                $widget->removeField('viewBag[meta_description]');

                $widget->addFields([..........
timvermaercke commented 4 years ago

The fix provided works! Thanks.