-
Content Count
849 -
Joined
-
Last visited
-
Days Won
7
elabx last won the day on February 3
elabx had the most liked content!
Community Reputation
869 ExcellentAbout elabx
-
Rank
Hero Member
- Birthday 04/12/1988
Profile Information
-
Gender
Male
-
Location
Mexico City
-
elabx started following Integrate Vue.js in a ProcessWire module, PW 3.0.173 – Core updates, new hook type, Image custom fields - set values with the API and and 4 others
-
Great addition!! Kudos to @bernhard for bringing this on board!
-
Maybe try setting caption directly without the set method: page()->image->caption = $description I'm thinking set method is trying to act on the Pageimage object properties, and not be affecting the image fields.
-
Try setting the page's output formatting to false before saving. page()->of(false);
-
Hook into selectable pages for InputfieldPageAutocomplete
elabx replied to cjx2240's topic in API & Templates
What about executeFor?? https://github.com/ryancramerdesign/ProcessWire/blob/master/wire/modules/Process/ProcessPageSearch/ProcessPageSearch.module#L157 -
Hook into selectable pages for InputfieldPageAutocomplete
elabx replied to cjx2240's topic in API & Templates
If I remember correctly this wasn't working like expected due to Autocomplete using ProcessPageSearch. This github issue have some info and code that could be useful. -
This has happened to me when a Warning or Error is appended for some reason on the response of the ajax upload and the icon keeps spinning. Try disabling errors and warnings through php settings.
-
Nice tip!! To elaborate on other examples, I do something like this to have this same "code to view" per page (in the sense of one code per page) like this on ready.php: if(!$user->isLoggedIn()){ wire()->addHookAfter('Page(template=sometemplate)::viewable', function($event){ $page = $event->object; $pass = wire('input')->get->text('pass'); if($page->page_pass && $pass){ if($page->isUnpublished() && $pass == $page->page_pass){ $event->return = true; } } }); }
-
Are child pages published and not hidden? Does using using find() have the same issue?
-
Integrate Vue.js in a ProcessWire module
elabx replied to dotnetic's topic in Module/Plugin Development
Hi! Wanted to know if anyone has a more elaborated guide on how to use Vuejs with Proceswirer for Process/Inputfield modules with hotreload and all the webpack nice thingies 🙂 so that for example, I can view the process/inputfield module in development in the context of the ProcessWire pages/routes. -
If you don't want to get into server management/installation of lamp stack i'd recommend Ploi, Runcloud, Serverpilot or one those to skip that part. I've alway felt it is worth every penny.
-
I think this might be happening! I remember this happening to me when working with the webp hooks. https://processwire.com/blog/posts/webp-images-and-more/#webp-image-strategies-in-processwire $wire->addHookAfter('Pageimage::url', function($event) { static $n = 0; if(++$n === 1) $event->return = $event->object->webp()->url(); $n--; }); Word from Ryan on that post:
-
I've been using Sizzy and want to try this to see how it compares!
-
Maybe saving it as a property of the page instance? $page->hanna_counter = $page->hanna_count + 1
-
I've done this another way around by sending requests from Google Sheets to a URL with custom functions. https://developers.google.com/apps-script/guides/sheets/functions
-
Shetland.org | Welcome to the Islands of Opportunity
elabx replied to nbcommunication's topic in Showcase
What a great looking website! Everything looks/feels on spot! And Shetland does look awesome too haha. PageimageSrcst is in all my installs from the moment it releases. Can't thank enough for that module!