Jump to content
ryan

PW 3.0.155 – Core updates

Recommended Posts

This post covers a few of the bigger updates in ProcessWire 3.0.154 and 3.0.155 on the dev branch. This includes a new function for live replacement of text in core and modules, a new method for creating canonical URLs, and some major upgrades to our $input->urlSegment() method that I think you’ll like! This continues from last week’s post in the ProcessWire support forum about 3.0.154 core updates and includes several new details—

https://processwire.com/blog/posts/pw-3.0.155/

  • Like 14

Share this post


Link to post
Share on other sites

Thanks for the update. This implementation is a bit weird to me:

// Get previous URL segment

$prev = $input->urlSegment('=bar');

Perhaps a new urlSegmentBefore() (and after) or a second parameter would be more readable.

  • Like 1

Share this post


Link to post
Share on other sites

I love this update! I’m doing a non-english single-language site right now, so i’ll try it out asap 👌

Canonical URLs are also awesome! Finally I can get rid of the awkward concatenations 🙂 Thanks Ryan!

Share this post


Link to post
Share on other sites

Thank you for the updates. 😀

But I think there is a small bug with the image field. I cannot search image descriptions like this anymore:

<?php pages()->find("content>0, content=[image.description%=$q, include=all]");

Content is a repeater matrix and $q a search term of a search function.

Can somebody reproduce this?

Regards, Andreas

Share this post


Link to post
Share on other sites

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...