adrian Posted January 23 Share Posted January 23 2 hours ago, Guy Incognito said: I’ll have a think if there’s anything else that can be done to improve it further. Sounds good - I might actually be tempted to go back to this module - I do prefer the inheritance flexibility of it. 1 Link to comment Share on other sites More sharing options...
Peter Knight Posted January 25 Share Posted January 25 On 1/23/2022 at 12:01 AM, Guy Incognito said: Thanks 😊. I will check out RockSEO. The thing that has kept us on MarkupSEO to date is the simplicity for implementation and also for clients. Combined with the changes you’ve made previously it’s pretty effective at doing what it needs to. I’ll have a think if there’s anything else that can be done to improve it further. Is RockSEO an upcoming Module by the community or a paid Pro Module? Link to comment Share on other sites More sharing options...
Guy Incognito Posted January 25 Share Posted January 25 15 minutes ago, Peter Knight said: Is RockSEO an upcoming Module by the community or a paid Pro Module? I haven't had a chance to dig into it yet but according to a recent weekly PW newsletter it's a new module @bernhard is working on: https://github.com/baumrock/RockSeo 1 Link to comment Share on other sites More sharing options...
horst Posted January 25 Share Posted January 25 (edited) 18 minutes ago, Peter Knight said: Is RockSEO an upcoming Module by the community or a paid Pro Module? https://www.google.com/search?q=site%3Aprocesswire.com%2Ftalk+RockSEO doesn't show much, but Rock(XYZ) indicates that it is a module from @bernhard (Bernhard Baumrock) 🙂 EDIT: Oh, @Guy Incognito has beaten me! 🙂 Edited January 25 by horst Link to comment Share on other sites More sharing options...
bernhard Posted January 25 Share Posted January 25 RockSeo is really not meant to be used already 😄 Just didn't make it private for easy preview sharing... Link to comment Share on other sites More sharing options...
Pete Posted January 25 Share Posted January 25 On 1/23/2022 at 2:56 AM, adrian said: Sounds good - I might actually be tempted to go back to this module - I do prefer the inheritance flexibility of it. I still use it. I do have one workflow thing I do where I add a "keyword list" textarea field below the keywords as the SEO tool we use to generate lists of keywords for subjects spits them out one per line, so we copy and paste that into that textarea and on save I turn it into a CSV string and put it in the proper keywords field. Sounds a bit lazy but one site had hundreds of articles. I may also need to build a Y0ast-like page score module at some point soon too, though I think those things can be misleading as much as they can be helpful. 2 Link to comment Share on other sites More sharing options...
Guy Incognito Posted February 1 Share Posted February 1 On 1/25/2022 at 3:17 PM, Pete said: I still use it. I do have one workflow thing I do where I add a "keyword list" textarea field below the keywords as the SEO tool we use to generate lists of keywords for subjects spits them out one per line, so we copy and paste that into that textarea and on save I turn it into a CSV string and put it in the proper keywords field. Sounds a bit lazy but one site had hundreds of articles. I may also need to build a Y0ast-like page score module at some point soon too, though I think those things can be misleading as much as they can be helpful. We also use the Keyword field more as a reminder of keywords we're targeting a particular page at - especially as most search engines ignore this data anyway. 2 Link to comment Share on other sites More sharing options...
siaweb Posted February 21 Share Posted February 21 Hello everyone. I would like to add yandex services to tracking. Can you tell me how to add a couple of fields correctly? 1. <!-- Yandex.Metrika counter --> <script type="text/javascript" > (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)}; m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)}) (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym"); ym(XXXXXXXX, "init", { clickmap:true, trackLinks:true, accurateTrackBounce:true, webvisor:true }); </script> <noscript><div><img src="https://mc.yandex.ru/watch/XXXXXXXXX" style="position:absolute; left:-9999px;" alt="" /></div></noscript> <!-- /Yandex.Metrika counter --> and <meta name="yandex-verification" content="xxxxxxxxxxxxxxxxxxx" /> Link to comment Share on other sites More sharing options...
fruid Posted March 8 Share Posted March 8 I'm trying to add hook before the page is saved. Then it should check if the SEO fields are empty and if so, use page's field's values that make sense. let me illustrate: $wire->addHookBefore('Pages::saveReady', function($event) { $page = $event->arguments[0]; if (!$page->id) return; if ($page->isChanged('seo')) return; if ($page->seo->title == '') { if ($page->template == 'speaker') { $page->seo->title = $page->academicrank.' '.$page->givenname.' '.$page->lastname; $page->message(':D'); // just to make sure the conditions are set right :D } else { $page->seo->title = $page->title; } } $event->arguments(0, $page); }); Something like this. I do get the message : D, so the issue is not there. However, the seo title field stays empty. Any ideas why this is not working? Link to comment Share on other sites More sharing options...
elabx Posted March 8 Share Posted March 8 @fruid I think the fields is named "seo_title"?? So it would be $page->seo_title = $page->academicrank.' '.$page->givenname.' '.$page->lastname; 1 Link to comment Share on other sites More sharing options...
fruid Posted March 9 Share Posted March 9 10 hours ago, elabx said: I think the fields is named "seo_title"?? So it would be @elabx OK my bad, that worked, thanks! Link to comment Share on other sites More sharing options...
fruid Posted March 9 Share Posted March 9 also… if ($page->isChanged('seo_title') || $page->isChanged('seo_image') || $page->isChanged('seo_description')) return; is there a nicer way to do this? Link to comment Share on other sites More sharing options...
elabx Posted March 9 Share Posted March 9 Though I wonder what do you want to do?? To updated the title/description/image if it has changed? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now