-
Content Count
361 -
Joined
-
Last visited
-
Days Won
8
Jonathan Lahijani last won the day on July 15
Jonathan Lahijani had the most liked content!
Community Reputation
974 ExcellentAbout Jonathan Lahijani
-
Rank
Distinguished Member
- Birthday 04/24/1983
Profile Information
-
Gender
Male
-
Location
Los Angeles, CA
-
Interests
Web Development, Snowboarding, Hiking
Contact Methods
-
Skype
jonathanlahijani
-
Tis the season to clean out the mechanical keyboard (first time in 7 years)...
- 10 replies
-
- 10
-
-
-
I just ran into this issue which occurred as a result of some server upgrades not going smoothly. The fix in our case was to run: apt-get install php-mysql If you end up getting this error, it wouldn't hurt to try installing PW from scratch in a separate directory. PW's installer identifies where potential issues are, such as missing packages, which is very helpful. Sometimes it is not so apparent from php.ini, phpinfo() or error logs.
-
I have a spare computer laying around so I did a fresh install of Windows and installed Laragon. I must say, it is very slick, feature rich and I can understand the appeal... it just works and has a lot of useful magic (such as auto virtual hosts and easy SSL setup).
-
With the default settings, running this: echo $page->image->render(["srcset" => true, "uk-img" => true]); Outputs this: <img src='/myprocesswire/site/assets/files/1/la1.jpg' alt='' data-uk-img data-srcset='/myprocesswire/site/assets/files/1/la1.320x569-srcset-hidpi.jpg 320w, /myprocesswire/site/assets/files/1/la1.640x1138-srcset-hidpi.jpg 640w, /myprocesswire/site/assets/files/1/la1.768x1365-srcset-hidpi.jpg 768w, /myprocesswire/site/assets/files/1/la1.1024x557-srcset.jpg 1024w, /myprocesswire/site/assets/files/1/la1.2048x1115-srcset.jpg 2x' sizes='(orientation: portrait) and (max-width: 768px) 50vw'> Notice how "src" is not "data-src" as per UIkit's documentation: https://getuikit.com/docs/image#srcset As a result, according to Chrome DevTools network graph, 2 images are loaded as in the attached screenshot. Shouldn't 'data-' be added to 'src' in UIkit mode?
-
$config->urls->templates with absolute URL?
Jonathan Lahijani replied to Jonathan Lahijani's topic in API & Templates
The weekly blog had it here: https://processwire.com/blog/posts/processwire-2.6.18-updates-pagination-and-seo/#new-http-prefix-available-for-all-config-gt-urls-properties In the API: https://processwire.com/api/ref/paths/ Easy to miss this one. -
I just found this developer oriented browser which has me excited: https://sizzy.co/ I'm about to play around with it but wow, it looks like it could increase my productivity quite a bit!
-
How to find pages by template filename?
Jonathan Lahijani replied to alanxptm's topic in API & Templates
That code seems correct. Are any of the post pages in-fact published, because if not, you'll need to add 'include=all' to your selector: $pages->find('template=lvl04-post, limit=5, include=all'); -
Why is a simple calendar so hard to find?
Jonathan Lahijani replied to OrganizedFellow's topic in General Support
I was literally suggesting FullCalendar as you replied. It's a great option. You just need to provide it with the JSON it needs and it works quite well. -
Excellent update. One minor nitpick about the overrides tab. When a field has been added to a RepeaterMatrix, can you have it show the Matrix Type Name (such as "gallery") instead of (or in addition to) the Matrix Type ID ("matrix4"). It would be much clearer that way.
-
@NoremPload ProcessWire 3.0.142 (which is a dev version and very recently released) brings in the ability to have custom fields for images. I personally had some issues with this ImageExtra plugin and stopped using it a while ago (it's been a few years). Also the author is no longer working with ProcessWire so there's also that. I'd recommend putting in the extra work to do it the new, native way: https://processwire.com/blog/posts/pw-3.0.142/
-
<?php namespace ProcessWire; class MyCoolModule extends WireData implements Module, ConfigurableModule { public function __construct() { $this->myvar = $this->wire('pages')->get(2)->name; // problematic for some reason } I have the above code in my module. However it throws this error: Fatal error: Uncaught Error: Call to a member function get() on null. Why is this the case?
-
ckeditor – adding lnline styles to a tags
Jonathan Lahijani replied to ngrmm's topic in General Support
One work-around is to use this package, which I've used with success: https://github.com/tijsverkoyen/CssToInlineStyles -
Autojoin in complex setups (page field with multiple pages)
Jonathan Lahijani replied to ceberlin's topic in FAQs
Related: https://github.com/processwire/processwire-issues/issues/928 -
This doesn't seem to be a problem with PW 3.0.140 as far as I can tell.