Jump to content

All Activity

This stream auto-updates     

  1. Past hour
  2. Super cool, congratulations on the upgraded infrastructure. I definitely would like to read more details about how you two setup ProcessWire in that environment. That would make for a good, enterprise-y tutorial here on the page too.
  3. horst

    WireMailSmtp

    Oh, yep. It is a left over from debugging. many thanks for testing and reporting back.
  4. Today
  5. Quietly and without interruption this week, our whole website (and all subdomains) moved from a single static server to a load-balanced multi-server environment, giving us even more horsepower and redundancy than before— https://processwire.com/blog/posts/processwire-hosting-upgrades/
  6. 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 the GitHub issue. Cheers
  7. 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
  8. Wanze

    SeoMaestro

    @Juergen What version of ProcessWire and which AdminTheme are you using?
  9. 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
  10. David, I checked here on my project. The module does increment the counter for a page that has Segments turned on BUT it doesn't increment the counter when you access "page-url/segment", which would be expected, right?
  11. 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
  12. Thanks Juergen. I’ll try that. What are the data and square brackets in terms of PHP and the API?
  13. You have so many options. But if it’s a simple gallery, you could have all the images within a single images field. Im not sure what you mean by “catalog the photos” but you could look at image tags. Alternatively ive created galleries where I needed to create a separate page for each gallery.
  14. Some previous threads and a module that may help you: https://processwaire.com/talk/topic/6158-photography-galleries-best-solution/?do=findComment&comment=60228 Also, a better way to search the forums: https://cse.google.com/cse/publicurl?cx=014789015761400632609:fxrf0rj4wr4
  15. Hi @horst, thank you for your fast implementation! Looks good on my end. However, I had to remove the creation of "hn_basic" (I think it's not intended to be there, is it?). Thank you and have a nice weekend
  16. Hi, I am sure this question may been asked but I couldn’t find it in the forum. I am new to using Processwire CMS/CMF. I read great reviews on CMS blog about Processwire. So I decided to give It a try. I am trying to figure out what is the best way to structure a simple gallery. I will also need to be able to catalog the photos. Thank you,
  17. got this working foreach ($page->images as $image) { $content .= "<div uk-lightbox>"; $content .= " <a href='{$image->url}'><img src='{$image->url}'/></a>"; $content .= "</div>"; }
  18. Hi, I have used a simple loop to show images in my template. How can I get this to link to a larger image possibly in a lightbox with arrows? Thanks foreach ($page->images as $image) { $content .= "<img src='{$image->url}'/>"; }
  19. horst

    WireMailSmtp

    Hi @androbey, I have created a dev-branch on github with the requested functionality. Please can you try it out and give some feedback? https://github.com/horst-n/WireMailSmtp/tree/5600cb0230531327438d6a333b2c8a3eb29cc08d There is also a new $mail->debugSend() method available that you can use instead of the regular $mail->send() method. With calling the debugSend() method in a template file you will get detailed log information like this: C STARTTLS S 220 2.0.0 Ready to start TLS Starting TLS cryptographic protocol TLS started: STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT
  20. Thanks @LostKobrakai I will try both suggestions and see which one would be easier for me, fit better and most important, would be good to read. It might be a bit harder to turn the entire code to pure PHP due to the fact that there will be lots of html code to assign to $out and to align it, however I might not worry about it as I am planning to minify pages anyway. The more I touch HC, the more ways I see to use it where some user intervention is required but no manual file editing is a good idea. P.S. I tested @LostKobrakai suggestion and can confirm that it works 100% with escaping the PHP tag at the beginning and then adding the HTML code. In my scenario there would be lots of interactions with the HC parameters which would be a part of a few selectors so it would make more sense to have them in PHP. At least if anyone is looking for HTML and PHP mix inside a Hanna Code tags, they could use either approach.
  21. You could try using a PHP hannacode with: ?> <html>test</html> <?php
  22. Can anyone of the forum admins please update the thread-title and include [SOLVED] ? I don't know how I can edit the title myself... d'oh - just edit the first post... and it gives you the possibility to modify the thread title as well.
  23. Hey @Klenkes I always get lazy which was the reason to search for a way to include only the PHP particles in my HTML. I came to the same conclusion as your suggestion, however, this morning. Thank you for it. I guess that for a big chunk of markup the mix of HTML and PHP would not make it read-friendly so I will bang it with PHP.
  24. Juergen

    SeoMaestro

    Hello @Peter Knight I think that there is no render tag method for the robot tags, but you can use the following: $page->seo->robots->data['noIndex'] $page->seo->robots->data['noFollow'] This returns true if 'no index' was choosen and true if 'no follow' was choosen. Create the meta tags by yourself and use PHP to fill in these values into the meta tags. Best regards Jürgen
  25. Hi, I'm just experimenting with Markup Regions and have a question regarding conditional replacement of a region. Is this the right way to do the following: <?php if (!modules()->isInstalled('ModuleRequiredForRendering')) { ?> <div id="content"> <strong>ModuleRequiredForRendering</strong> module is not installed. Module is required to render this page! </div> <?php return; } ?> <div id="content"> // output content ... </div>
  26. Hi @Wanze If we want to output just the opengraph tags, the instructions provided work `echo $page->seo->opengraph->render();` But what is the syntax to just echo the robots tag ? `echo $page->seo->robots;` Outputs 'RobotsSeoData' `echo $page->seo->robots->render();` Outputs nothing
  27. Thanks Dragan. This has bugged me for ages and seems to be finally be the fix
  1. Load more activity
×
×
  • Create New...