Jump to content

Wanze

PW-Moderators
  • Content Count

    1,068
  • Joined

  • Last visited

  • Days Won

    10

Wanze last won the day on February 6

Wanze had the most liked content!

Community Reputation

1,492 Excellent

1 Follower

About Wanze

  • Rank
    Hero Member
  • Birthday 06/19/1986

Profile Information

  • Gender
    Male
  • Location
    Bern, Switzerland

Recent Profile Visitors

12,472 profile views
  1. Wanze

    SeoMaestro

    @Peter Knight That's because the opposite (index,follow) is assumed by default and you do not need the meta tags at all in this case. The module does only render them if you have checked at least one (noindex or nofollow).
  2. Wanze

    SeoMaestro

    @Juergen I think that a hacker will easily find other ways to determine the underlying CMS by inspecting the markup or headers (or https://builtwith.com/). But I see your point For now, you can use a hook to disable the generator tag: $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; } }); Feel free to open a feature request on GitHub. Cheers
  3. Wanze

    SeoMaestro

    @Juergen @Peter Knight There is a render() method for any "group", but in case of the robots it will only return something if at least one option (noIndex, noFollow) is checked. Your example to access the individual data is correct, you can also use the following syntax, which looks slightly nicer: $page->seo->robots->noIndex Cheers
  4. Wanze

    SeoMaestro

    @Juergen What version of ProcessWire and which AdminTheme are you using?
  5. Wanze

    SeoMaestro

    Hi @Peter Knight, $page->seo->robots->render() should work fine, but it only outputs the tags if you have checked any of the noIndex or noFollow options. Cheers
  6. Wanze

    SeoMaestro

    @Peter Knight This is currently only possible with a hook, check out the following test case: https://github.com/wanze/SeoMaestro/blob/master/tests/src/SeoMaestroTest.php#L119-L129 But this would make a nice feature, either in the module config or configurable per field. Could you open a feature request on GitHub? Thanks Cheers
  7. Wanze

    SeoMaestro

    @alexmercenary This bug has been fixed with version 0.5.0, see https://github.com/wanze/SeoMaestro/blob/master/CHANGELOG.md#050---2019-02-17
  8. That is not true: https://support.google.com/webmasters/answer/189077?hl=en @Michkael The meta tags added by SeoMaestro do not perform any redirects, there must be another issue either on server level or some code in ProcessWire performing the redirects.
  9. Wanze

    SeoMaestro

    Looks fine, if you inspect the source code you will see the XML markup. This is not a sitemap for users, but one you can submit to search engines, see here: https://support.google.com/webmasters/answer/183668?hl=en Here is a quick how-to, i did not find this feature in the docs: Create a new field of type "FieldsetTab", e.g. "Seo Settings" Use this field to group other fields that should be displayed in the new tab A screenshot is probably easier
  10. Wanze

    SeoMaestro

    Hi fellow Seo Maestros, The next version 0.6.0 adds the ability to customize the canonical URL of a page: The canonical URL is part of the "meta" group. You must enable the canonical URL under the "Input" settings of your SeoMaestro field, if the content editors should be allowed to change it. This release also includes a new hook to add custom items to the XML sitemap, useful if you have pages using URL segments to present additional content. Cheers
  11. Wanze

    SeoMaestro

    @tiefenbacher_bluetomato Here is an example script from my migration. Note that I did not use MarkupSeo, in my case I had two fields "seoTitle" and "seoDescription". I highly recommend using the migrations module to execute such logic. $pages = $this->wire('pages')->findMany("seoTitle|seoDescription!='',include=all"); foreach ($pages as $page) { if (!$page->hasField('seo')) { continue; } $page->of(false); foreach ($this->wire('languages') as $language) { $this->wire('user')->language = $language; $title = $page->seoTitle->getLanguageValue($language); $desc = $page->seoDescription->getLanguageValue($language); $page->seo->meta->title = $title ?: 'inherit'; $page->seo->meta->description = $desc ?: 'inherit'; } $page->save(); }
  12. Wanze

    SeoMaestro

    I agree. Let's put it in the meta group. There is also no need to setup default values for the canonical url, it always equals the page's url unless overridden.
  13. Wanze

    SeoMaestro

    @wbmnfktr Thanks for your feedback, glad you are liking the module. Regarding the custom canonical URL, see the following issue: https://github.com/wanze/SeoMaestro/issues/4 I really want to introduce this, as I am also in the need. What do you think about my thoughts in the GitHub issue, any preferences? Cheers
  14. Wanze

    SeoMaestro

    Hey @Tom. Thanks for the nice words and your feedback. I agree, it would be neat to have an image field for clients. Could you open a feature request on GitHub? I would like to discuss the implementation with you, or anyone interested in this. I guess there are may ways to achieve this, and I'm not sure which one's the best
  15. Wanze

    SeoMaestro

    Hi Andrea, Thanks! Out of curiosity, what is the reason to put the SeoMaestro field inside a repeater? Just can't think of any use case I'll look into it. Cheers
×
×
  • Create New...