Jump to content

Recommended Posts

Posted

Hi,

We are in the process of upgrading our website. Our current PHP version is 5.6.  Do we have SeoMaestro version compatible with PHP 5.6.  If yes could you please share the download link

After upgrade we will make use of the latest version of SeoMaestro

Thanks

 

Posted

Could you please suggest on the below

Do we have any good SEO plugin compatible with both PHP 5.6 and PHP 7

Also do we have export and import feature in SeoMaestro

Thanks

 

  • 1 month later...
Posted

Apologies if this has been asked before (I searched but didn't find anything), but most of the pages of my site, I want the meta title format to be Page Name – Site Name.

But for the home page, I want it to be Site Name – some text. I don't see a way to do that.

Posted

delete " - site name" from module settings and add "site name" if not home page.

$wire->addHookAfter('SeoMaestro::renderSeoDataValue', function (HookEvent $event) use ($settings) {
    $group = $event->arguments(0);
    $name = $event->arguments(1);
    $value = $event->arguments(2);

    $page = wire("page");

    if ($page->id != 1 && $group === 'meta' && $name === 'title') {
        $event->return = $value . ' - ' . $settings->site_name;
    }
});
  • Like 1
  • 1 month later...
  • 3 weeks later...
Posted

Hi folks,

I just released version 1.1.1 which fixes the PHP 8.1 related errors from this issue: https://github.com/wanze/SeoMaestro/issues/41

These issues have been fixed by merging a pull request. I appreciate if the community can help me out, as I am quite disconnected from the ProcessWire world (as you might have noticed). However, I still want to support this module with bugfix releases.

Cheers

  • Like 6
  • 2 months later...
Posted

Hi, I was using this code:

<?php
$wire->addHookAfter('SeoMaestro::renderMetatags', function (HookEvent $event) { 
	$tags = $event->arguments(0); 
	$group = $event->arguments(1); 
	if ($group === null) { 
		unset($tags['meta_generator']); $event->return = $tags; 
	} 
}); 

To hide generator from SEO Maestro, but with the last version is not working anynore.

Thx in advance ?

  • 1 month later...
Posted

HI,

In Seo Maestro Plugin - There is no provision to add twitter:url, twitter:title, twitter:description, twitter:image values.PFA

Please suggest.

Screenshot_11.png

  • 4 months later...
Posted
On 12/20/2021 at 10:06 AM, DV-JF said:

Hey @Wanze I've maybe figured out a problem with your module - see: https://github.com/wanze/SeoMaestro/issues/40

Edit: Because this seems for me that this could be a problem for anybody else, I'll copy the text and images here - anyone else facing this problem?

Seo image is duplacated multiple times:

  • PW Ver. 3.0.184
  • Modul Ver. 1.1.0
  • PHP 7.4
  • Settings - see. Screenshot below

Description:
Till now I've only setup one image on the Homepage (page id 1) for the SEO image field.
But it seems, that every time  I save the page  I visit the page an extra image is created in site/assets/files/1234 the folder corresponding to the page I'm saving.

EDIT OUUUCH -It seems even worse: - The suspicious files are generated every time the page is loaded in frontend - see last three screenshots.

999075392_2021-12-2011_11_58.jpg.cfa38b9d40b7c5b4e995b2404c273100.jpg

1295879251_2021-12-2011_13_13.jpg.03c3cff43d41d6f1402162b4f3671c12.jpg648843762_2021-12-2011_14_14.jpg.a02fd1f3700809277921516b0c362ba5.jpg

This blows up the assets folder enormously and is absolutely weird.

For more screenshots see attachments.

2021-12-20 10_48_32.jpg

2021-12-20 10_44_08.jpg

2021-12-20 10_39_12.jpg

Screenshot 2021-12-20 at 10-30-13 Feld bearbeiten seo_meta • stadthalle-kelkheim local.png

Was this tackled in the 1.1.1 update? I can see it's still an open issue on github

  • Like 1
  • 7 months later...
Posted

Should you use multiple sitemaps on a multi language website? On my current website (only one sitemap) i have this in the generated sitemap.
 

https://www.example.se/ 2023-09-24T00:43:23+00:00 hourly 1.0 
https://www.example.se/en/ 2023-09-24T00:43:23+00:00 hourly 1.0 

 

  • 9 months later...
  • 1 month later...
Posted

Hey,

I have a multi-language site with a localized site name for each language. Is there a way to reflect that in the site name field?

  • 2 months later...
Posted (edited)

It doesn't look like this module is being maintained anymore and there's an issue that should be known by users.

The sitemap generator is including:

  • Pages that have 'include in sitemap' unchecked
  • Hidden pages
  • Children of unpublished pages

Not sure if this is being experienced by others but this can be problematic for discovery of pages that shouldn't be readily known to the public.

Correction

If a parent page has indexing disabled, but a child page does not, then the child page will still be indexed, which kind of opens the parent page for indexing as well. Best to keep robots.txt up to date as a fallback.

If you would like hidden pages to not show up in sitemap.xml, then modify L77 of SeoMaestro/src/SitemapManager.php

<?php

$selector = sprintf(
    'template=%s,template!=admin,id!=%s,include=hidden', // Remove 'include=hidden' from this line
    implode('|', array_keys($templates)),
	$this->getExcludedPages()
);
Edited by FireWire
Add solution
  • Like 3
  • 4 months later...
Posted

Hey,

I have made an adjustment to the output of the hreflang tags in getCommonMetatags()

On news pages with pagination, only the url of the page is currently output as hreflang.
As I understand it, the url segment of the pagination should also be appended to the hreflang tags so that the correct translation pages are referenced.
The attached change works for me.

Is my assumption correct?
If so, what is the correct procedure here? 
Should I make a pull request?
 

    /**
     * Build common metatags not configured via fieldtype.
     *
     * @return array
     */
    private function getCommonMetatags()
    {
        $baseUrl = $this->seoMaestro->get('baseUrl');
        $defaultLang = $this->seoMaestro->get('defaultLanguage') ?: 'en';
        $hasLanguageSupportPageNames = $this->wire('modules')->isInstalled('LanguageSupportPageNames');

        $tags = ['meta_generator' => '<meta name="generator" content="ProcessWire">'];

        if ($hasLanguageSupportPageNames) {

            # page number & prefixes
            $pageNum = $this->wire('input')->pageNum();
            $prefixes = $this->config->pageNumUrlPrefixes;

            foreach ($this->wire('languages') ?: [] as $language) {
                if (!$this->page->viewable($language)) {
                    continue;
                }

                $code = $language->isDefault() ? $defaultLang : $language->name;
                $url = $baseUrl ? $baseUrl . $this->page->localUrl($language) : $this->page->localHttpUrl($language);

                # add pagination segment
                if ($pageNum > 1) {
                    $prefix = isset($prefixes[$code]) ? $prefixes[$code] : $prefixes['default'];
                    $pageSegment = $prefix . $pageNum;
                    $url = rtrim($url, '/') . '/' . $pageSegment . '/';
                }

                $tags["link_rel_{$code}"] = sprintf('<link rel="alternate" href="%s" hreflang="%s">', $url, $code);

                if ($language->isDefault()) {
                    $tags['link_rel_default'] = sprintf('<link rel="alternate" href="%s" hreflang="x-default">', $url);
                }
            }
        }

        return $tags;
    }


Kind regards & many thanks

  • 3 months later...
Posted

In my backend the following error is displayed:

Error upgrading module (SeoMaestro): SQLSTATE[42S02]: Base table or view not found: 1146 Table 'db123456_1.field_SEO' doesn't exist

Is this a known issue or is there a problem in my templates or fields?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...