ryan

PW 3.0.109 – 2-factor auth ready

Recommended Posts

Thanks for the new updates @ryan!

Do you think for the next week or two the focus could be on bringing the Selectors documentation up to date? This is a really important part of the documentation, especially for new users. New API methods get added to the API documentation automatically which is great, but that doesn't happen for new selector features because the documentation for Selectors isn't derived from code comments in the core.

I went back through previous blog posts and compiled a list of things that it would be nice to have covered in the Selectors docs.

has_parent now supports multiple values:
https://processwire.com/blog/posts/processwire-core-and-profields-updates-2.5.22/#has_parent-selectors-now-support-multi-value

The ~= operator now supports words with fewer than 4 characters:
https://processwire.com/blog/posts/merry-christmas-heres-processwire-3.0.3-and-2.7.3-and-some-more/#improvements-to-the-operator-in-page-finding-operations

Nested sub-selectors are now supported:
http://processwire.com/blog/posts/processwire-3.0.6-brings-pages-upgrades-and-link-abstraction/#support-for-nested-sub-selectors

It is now possible to sort by custom fields of a parent page:
https://processwire.com/blog/posts/processwire-3.0.7-expands-field-rendering-page-path-history-and-more/#whats-new-in-3.0.7

New selector array syntax:
https://processwire.com/blog/posts/processwire-3.0.13-selector-upgrades-and-new-form-builder-version/#selector-engine-array-support
It would be good to explain about the verbose option for selector arrays too and what circumstances that is needed in.
And perhaps some mention of using the Selectors class to merge different types of selector together: https://processwire.com/talk/topic/16651-merge-selectors/?do=findComment&comment=146890

Multiple dot selectors:
https://processwire.com/blog/posts/pw-3.0.25/#syntax-and-examples

Negative start and limit, and matching by index:
https://processwire.com/blog/posts/pw-3.0.46-stocking-stuffers/#support-for-negative-limit-and-start-values-in-selectors

Use Fieldtype in selectors:
https://processwire.com/blog/posts/processwire-3.0.91-core-updates/

Owner selectors:
http://processwire.com/blog/posts/processwire-3.0.95-core-updates/

Use field tags in selectors:
https://processwire.com/blog/posts/pw-3.0.106/#a-new-way-to-search-with-upgraded-tags-for-fields

If anyone knows any other new selector features not included in the Selectors documentation maybe they could post a reminder about them here?

 

Another thing it would be good to cover in the Selectors docs are the differences between what is supported in a PageFinder selector and what is supported in an in-memory selector. I mentioned a few differences that I know about in a comment here: https://processwire.com/talk/topic/18343-selector-filter-for-multiple-dates/?do=findComment&comment=160451
And perhaps there is a way to bring support for some of those things to in-memory selectors to reduce the differences between the two types of selector? 

  • Like 16

Share this post


Link to post
Share on other sites
7 hours ago, Robin S said:

The ~= operator now supports words with fewer than 4 characters

Totally missed this one.

7 hours ago, Robin S said:

Owner selectors

And this one.

Thanks for wrapping this up!

  • Like 3

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.