Jump to content

uiui

Members
  • Content Count

    27
  • Joined

  • Last visited

Community Reputation

4 Neutral

About uiui

  • Rank
    Jr. Member

Recent Profile Visitors

1,122 profile views
  1. My problem is that the page reference field that contains the unpublished pages doesn't return any pages. $p = $pages->get(1470); echo count($p->galleries); This prints 0, although galleries contains one page reference. That seemed to be different in 3.0.132.
  2. Is there a way to bring this buggy behaviour back? 😉 In other words: How can I get a page reference field to return unpublished references for the frontend?
  3. That was it. Thank you so much.
  4. Hi, Locally I'm using Processwire 3.0.164 on MAMP 4.1.0. with ImageMagick 6.8.9. The phpinfo lists WEBP under ImageMagick supported format. Nonetheless, ->webp->url is returning a JPG-URL for any image. Why is that?
  5. Isn't there a "break;" missing in line 264?
  6. Hi, I have the issue that LanguageSupportPageNames' verifypath corrects the language although it shouldn't. A page shares its name among multiple languages and the url only differs in the first section of the path (e.g. /lang1/same and /lang2/same). As verifypath seems to only take sections of the path into account independently, line 262, $name === $requestedPart is always true for the second language, although the path of the first language's version was requested. Is that a bug or is my site set up erroneously?
  7. uiui

    SeoMaestro

    I want to replace domain names in my sitemap of a multi-language, multi-domain site. I tried registering a hook in _init.php but it seems like this is not how to do this. Where do I need to register a hook for SeoMaestro::sitemapItems? Edit: I eventually solved this issue. As the sitemap is only created when requesting an admin page, the webhook needs to be registered in admin.php. $wire->addHookAfter('SeoMaestro::sitemapItems', function (HookEvent $event) { $sitemapItems = $event->arguments(0); foreach($sitemapItems as $item) { $alternates = $item->get('alternates'); foreach(wire("languages") as $lang) { $code = $lang->name; if($alternates[$code]) { $alternates[$code] = preg_replace("/(?:local\.)domain\.tld/", $lang->domain, $alternates[$code]); } } $item->set('alternates', $alternates); } $event->return = $sitemapItems; }); The domain for each language is stored in $lang->domain.
  8. uiui

    SeoMaestro

    To anyone else who runs into this issue: I solved it with a hook like this: $wire->addHookAfter('SeoMaestro::renderMetatags', function (HookEvent $event) { $tags = $event->arguments(0); $group = $event->arguments(1); if ($group === null) { foreach(wire("languages") as $lang) { $code = $lang->name;//$lang->isDefault() ? $defaultLang : $lang->name; $tags["link_rel_{$code}"] = preg_replace("/domain.tld/", $lang->domain, $tags["link_rel_{$code}"]); } $event->return = $tags; } }); $lang->domain stores the domain used for a language.
  9. uiui

    SeoMaestro

    I'd need to change the base url for the alternate link meta tags. Is it true that you can neither work with different domains for multiple languages nor deactivate that functionality to do it yourself?
  10. I didn't see any issues with my multi-language site. But I don't see an option to configure it for multiple domains so that it can be "domainname.fr" for the french-speaking pages and "domainname.de" for the german-speaking ones.
  11. Is this module supposed to work with several domains for multiple languages?
  12. Wouldn't you want to not have the same content available multiple times? Shouldn't you rather redirect the old URLs to the new domain?
  13. 1. ASM 2. Yes, two levels.
  14. Hi @kongondo, I'm working with version 3.0.132. The menu that produces this error contains 88 pages and a couple of custom links. As soon as I add a page that is counted as number 89, the menu won't save anymore. The last page added doesn't seem to be the origin of the problem as I tried it with a number of different pages.
×
×
  • Create New...