Ryan Cramer

Results 408 comments of Ryan Cramer

Thanks @jlahijani I've pushed a fix for this. I don't manually minify the core JS as PhpStorm seems to do it automatically. I think it uses uglifyjs, but not certain.

PageArray and `$pages` may have some similar named methods, but that's because we try and maintain a similar naming convention across the entire API, for everything. But this does not...

$pages is an API variable and it is not array type, and doesn't behave as an array in any fashion that I can think of. On Fri, Jun 21, 2019...

Guys, I understand what you are saying, but you are still coming from the idea that a method like findOne() or get() is supposed to work the same between $pages...

@BernhardBaumrock I have gone ahead and added `wirePageId()` and `pageId()` functions. Both do the same thing, but pageId() is only present when the functions API is enabled. I couldn't find...

> ...breaking changes would be acceptable because improved consistency would definitely make the API nicer and easier to work with. PageArray is currently consistent with WireArray and all types that...

Similarly named methods in WireArray (PageArray is one of many) are not supposed to behave the same as those from $pages because those methods originate from WireArray, which is not...

@elabx Sounds like a good idea, maybe we should implement something similar. I wanted to mention that if this is for the admin, this is something you can already do...

@tbba yes the modules directory has some old stuff in it. The modules directory itself is old, and it's one of the next items on the rebuild list (to match...

@cb2004 This loading=lazy option has been added, but must be enabled in the field settings for those that want it.