-
Posts
790 -
Joined
-
Last visited
-
Days Won
40
Everything posted by Jonathan Lahijani
-
New post: Weekly update for 18 Jan 2019
Jonathan Lahijani replied to ryan's topic in News & Announcements
This is great life advice! -
Going here causes internal server error: https://processwire.com/blog/posts/
-
How about a new favicon of the ProcessWire logo instead of being lost in the clouds? I attached two 512x512 PNG files (PNGs can be used for Favicons by the way and all browsers support it; worth ditching .ico).
- 290 replies
-
- 10
-
-
I'm not a Mac user, but for Windows, Xyplorer is freaking amazing. It's like the ProcessWire of file managers. ?
-
Working on this, which I hope to finish off at some point in a couple weeks after the main site launch: It will be 2 minutes and 11 seconds long, which is the length of the audio (full audio here). I will try to make it show off the power of ProcessWire as much as possible (tree, fields, matrix, front-end editing, api, docs, formbuilder, procache, github activity). I may need to extend the music a bit for it all to fit. Anyway, this is happening!
- 290 replies
-
- 11
-
-
When scrolling down the home page, the animations of the 8 callouts cause a horizontal scrollbar to temporarily appear while they animate in. Adding the 'uk-overflow-hidden' class to the #content-container div should fix that.
-
The offcanvas toggle icon is using the slightly older approach (the markup got updated at some point during UIkit 3's development): Replace: <a id=offcanvas-toggle class=uk-hidden@m href=#offcanvas-nav uk-toggle> <span uk-icon='icon: menu; ratio: 1.3'></span></a> With: <a id='offcanvas-toggle' class="uk-navbar-toggle uk-hidden@m" uk-navbar-toggle-icon href="#offcanvas-nav" uk-toggle></a>
-
Tampermonkey will let you modify the code of a page: https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?hl=en You could create your own CSS file, and then establish a setting in TM to load that file (other's would have to do it on their browsers as well however).
-
One nitpick about the server in general. You can access it (the home page for example) without https. Ideally http should redirect to https.
-
Never used Craft professionally... just tried the demo a couple years ago.
-
I put this feature request in a couple months ago which relates to this conversation about migrating structural changes: https://github.com/processwire/processwire-requests/issues/230
-
Chrome dev tools device mode causes PW logout?
Jonathan Lahijani replied to Robin S's topic in Dev Talk
If you run multiple PW under the same hostname, then setting $config->sessionName to something unique is recommended as well as it prevents one installations logged in state from clashing with another (and other weird admin caching things). I usually set its value to $config->dbName since that's easily unique enough. $config->sessionName = $config->dbName; $config->sessionFingerprint = 2; -
Note: whether I use Page(template=mytemplate)::added or Pages(template=mytemplate)::added does not make a difference.
-
In 2015, Ryan introduced conditional hooks: https://processwire.com/blog/posts/new-ajax-driven-inputs-conditional-hooks-template-family-settings-and-more/ I have the following hook which works properly: $wire->addHookAfter('Pages::added', function($event) { $page = $event->arguments[0]; if($page->template=='mytemplate') { // ... } }); Now if I want to take advantage of conditional hooks, I should be able to do this: $wire->addHookAfter('Pages(template=mytemplate)::added', function($event) { // ... }); however the hook doesn't get hooked. Any ideas?
-
[SOLVED] How to set database timezone on Shared Servers?
Jonathan Lahijani replied to PWaddict's topic in General Support
User-specific timezones is on Ryan's todo list: https://github.com/processwire/processwire-issues/issues/270 -
New post: Rebuilding processwire.com (part 2)
Jonathan Lahijani replied to ryan's topic in News & Announcements
That video got me hooked as well. I'd love to help out with making a new marketing video. I can do the screen recording, video editing and voice-over. If someone can concept out a script/storyboard, I can take care of the rest. Maybe it can be featured on the new PW homepage hero section to hook more people.- 28 replies
-
- 10
-
-
phpMyAdmin: how do you refresh the edit row view?
Jonathan Lahijani replied to Robin S's topic in Dev Talk
Try Adminer instead: https://www.adminer.org/ It's only one file. phpmyadmin feels bloated compared to it. -
Let's say you want to add an image using the PW API from an outside service that doesn't provide a clean filename like my-cool-image.jpg (such as from dummyimage.com, urlbox.io, etc). Doing it this way will add the image successfully, but the filename will be problematic and have an invalid extension (bad): $p = $pages->get(1); $p->your_single_image_field = "https://dummyimage.com/600x400/000/fff"; $p->save(); Instead, you need to rename the file right before save (good): $p = $pages->get(1); $p->your_single_image_field = "https://dummyimage.com/600x400/000/fff"; $p->your_single_image_field->first->rename("better.png"); // need 'first' here $p->save();
-
New post: Rebuilding processwire.com (part 1)
Jonathan Lahijani replied to ryan's topic in News & Announcements
UIkit3 is a bit more of a utility class oriented CSS framework. The benefits of utility based CSS are excellently summarized in this article, which I side with given my own evolution with CSS: https://adamwathan.me/css-utility-classes-and-separation-of-concerns/ Gridlex is just a grid system from what I can tell. If you need all the usual components (accordions, tabs, etc.), UIkit3 has it covered extremely well, especially compared to the other big CSS frameworks. Many great options. I rarely pull in other libraries since UIkit has it covered, and since it's all under one roof, it's very consistent and doesn't lead to conflicts. -
Does this work with FormBuilder?
-
Feature request Can there be an option to redirect the user to another page if they land on a protected page (rather than showing them the login form)? Additionally, if there could be a field by which an admin can enter a custom message (or error) to $session->message("the message"); or $session->error("the message"); that would be really great.
-
Great module @adrian. For the Custom PHP Code option, can you make it also have access to the $pages variable (in addition to just the $user variable)? I have a use case for it and it would be helpful. I modified the module to include it and it worked fine for me.
-
About ProcessWire & Performance
Jonathan Lahijani replied to Mobiletrooper's topic in General Support
What version of PW are you on? Newer the better? Also, recently one thing that was driving me nuts was a bug related to ListerPro pages taking forever to load (you might not be able to view the link since it's in the private ListerPro forum): The temporary work-around for that was to remove all the filters in my ListerPro. For some reason, my ListerPro was loading all 2000 pages on my site on each page load causing a slowdown. Is the site still slow when there's only a handful of people using it, as opposed to over 100+? If so, that may indicate something. Have you enabled debug mode in PW? Anything stand out? -
Actually what I think you're asking is for the Hanna Code Dialog module. Check it out.