-
Posts
509 -
Joined
-
Last visited
-
Days Won
17
Everything posted by Jonathan Lahijani
-
This doesn't seem to be a problem with PW 3.0.140 as far as I can tell.
-
I experienced this issue and the fix was related to JavaScript loading order.
-
How to get a Page field's ID only
Jonathan Lahijani replied to Jonathan Lahijani's topic in General Support
I see that if I enable auto-join for the field, then it circumvents the issue. So that's one solution. -
I have a Page field and in ProcessWire, I can get values from it like this: $page->my_page_field; // returns the ID $page->my_page_field->title; // return the title Given my particular situation, I'm hitting an infinite loop as I documented here a few years ago: https://github.com/ryancramerdesign/ProcessWire/issues/1962 Is there a way to ONLY get the raw ID of the assigned page without ProcessWire getting all the attributes of that page leading to the loop?
-
Forgot the version bump?
-
How to get $page on Inputfield::render hook?
Jonathan Lahijani replied to Juergen's topic in General Support
If the field being hooked is inside of a repeater, how can I get the repeater's page id? -
I don't use a Mac but I've heard great things about Quiver: https://happenapps.com/
-
I'm using this now on a site that needs that extra level of metadata. It's working great. Thank you.
-
https://craigmod.com/essays/fast_software/
- 1 reply
-
- 10
-
-
-
Visual Studio Code for ProcessWire Developers
Jonathan Lahijani replied to kongondo's topic in Dev Talk
https://blog.theodo.com/2019/07/vscode-php-development/- 219 replies
-
- 2
-
-
- visual studio code
- vsc
-
(and 2 more)
Tagged with:
-
I'm looking to improve my editor (VSCode) in a way whereby it will tell me the value of a ProcessWire setting() value that's been defined in another file as I write an override setting. Let's say I have a file called /site/templates/settings-default.php with the following: setting("my-div", "my-default-class"); And I have another file called /site/templates/settings-override.php with the following: setting("my-div", "my-override-class"); As I'm writing that specific line in "settings-override.php", is it possible through some sort of auto-suggest / intellisense for it to tell me the value of the setting in "settings-default.php" so that it provides context in realtime as I write the override setting? This would prevent me from having to switch between the two files in my editor and improve my workflow. Any suggestions would be appreciated.
-
A sneak preview of a new page builder concept that I'm close to completing. I'll write more about this in coming weeks, but this video demonstrates a lot of unique things going on:
- 18 replies
-
- 21
-
-
-
I have PageFrontEdit enabled. I have a template that includes a bunch of partials. Those partials contain the PageFrontEdit tags in the following format: <edit field="body" page="<?php echo $page->id; ?>">...</edit> This is all working well, however I have a particular template whereby I don't want Frontend Page Editing to be activated at all, as if you were logged out. https://processwire.com/docs/front-end/front-end-editing/ What's the best way to disable it for a particular template? Is there a proper hook for this perhaps? Or some hackish JS approach?
-
I follow Linux desktop trends quite a bit. This post has got me thinking if it's time for Linux on the desktop for me despite MS innovations. I gave it a bit of thought and I think I can make it happen, even if I have to run Adobe CS through a VM. I'm much more comfortable with the idea now that I've been using WSL funny enough (also since I install Linux for customers every now and then... Ubuntu, RHEL, CENTOS, Suse). I'm thinking Arch w/ i3, VSCode, ranger and a bunch of text user interface apps, bash scripts, etc. Minimalism as much as possible, kind of like ProcessWire.
-
@apeisa Would you consider merging this PR? https://github.com/apeisa/ProcessRedirects/pull/17
-
Creating thousands of pages via the API
Jonathan Lahijani replied to David Beesley's topic in API & Templates
How about deleting thousands of pages using the API? Right now I'm using this hackish approach, but it's only when syncing my live db to my dev db, so even though it's not clean and may leave orphan records (which aren't causing any problems if they are even there), it's ok for my purposes: Github Request: https://github.com/processwire/processwire-requests/issues/131 -
One big reason: Adobe CC doesn't run on Linux 😞 https://forums.adobe.com/thread/1057800 https://forums.adobe.com/thread/2444095
-
Is there a reason why you guys use Laragon instead of WSL? I used WampServer for years, but like Laragon, its using the Windows version of Apache, MySQL and PHP. While that works, I feel the Windows versions of those will always be second class. Add in things like node and Windows' character limits for file paths (which I think has now been resolved) and it gets more dicey. Also, it's probably slower. I don't use a Mac or Linux, so when WSL came out, Microsoft basically fixed a huge problem for people like us (Windows users doing non-Windows development... that is, LAMP stuff). Why not just use WSL? You get rsync and all the Linux utilities that I don't know how I lived without. There's a little bit of initial setup, but I've boiled that down into 10 minutes with a set of commands that'll make ProcessWire run perfectly.
-
What are your favorite VSCode extensions?
Jonathan Lahijani replied to OrganizedFellow's topic in Dev Talk
I discovered indent-rainbow today: https://marketplace.visualstudio.com/items?itemName=oderwat.indent-rainbow I don't like visual distractions when coding, and I thought this might contribute to that, but the colors are very very subtle so I'm keeping this one installed. -
Windows Terminal has been released and can be downloaded from the Microsoft Store. Article: https://www.theverge.com/2019/6/22/18701365/microsoft-windows-terminal-10-download-store-features WSL (WSL2 in the near future) + VSCode + Terminal... Microsoft is awesome.
-
What are your favorite VSCode extensions?
Jonathan Lahijani replied to OrganizedFellow's topic in Dev Talk
I just switched over to VSCode (Insiders) a couple weeks ago now that it integrates with WSL using the new extensions. Version Lens seems useful if using NPM: https://marketplace.visualstudio.com/items?itemName=pflannery.vscode-versionlens "Shows package version information for npm, jspm, bower, dub and dotnet core in the Visual Studio Code editor." -
Detecting invalid, invisible characters in your editor
Jonathan Lahijani replied to Jonathan Lahijani's topic in Dev Talk
VSCode plugin: https://marketplace.visualstudio.com/items?itemName=nhoizey.gremlins -
Ah, the early days of discovering ProcessWire and enjoying the constant feedback loops of development bliss. This is a great site. I love seeing PW + ecommerce.