-
Posts
1,496 -
Joined
-
Last visited
-
Days Won
21
Everything posted by elabx
-
Integrate Vue.js in a ProcessWire module
elabx replied to dotnetic's topic in Module/Plugin Development
Exactly that one haha! -
Integrate Vue.js in a ProcessWire module
elabx replied to dotnetic's topic in Module/Plugin Development
Man I also figured this out, I hadn't had the time to come back and report! It's all very rough but I basically load through the local server by vue-cli-service serve. I followed a Wordpress tutorial so I have no idea what the webpack config actually does and it must have something to do with the success, but it worked good enough to start working. Now I feel I've wasted my life without hot reload ? -
Any errors in javascript the console??
-
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! -
Wrong parameters for ProcessWire\WireDatabaseQueryException
elabx replied to Jon's topic in General Support
This just happened to me a few days ago when I disabled the tags on the image field (I think there is a Use Tags? checkbox). Adding it back fixed although I haven't had time to figure out what's going on. -
Are you doing any $pages->find() or get() on the pages with such performance?
-
Module: Video embed for YouTube/Vimeo (TextformatterVideoEmbed)
elabx replied to ryan's topic in Modules/Plugins
Any info on the last pages of this thread? I remember some issues with the most recent php versions. -
Parent page with children not showing Trash action.
elabx replied to elabx's topic in General Support
-
RockMigrations1 - Easy migrations from dev/staging to live server
elabx replied to bernhard's topic in Modules/Plugins
I think you're talking exactly about the Migrations module from @LostKobrakai and I believe you can use RockMigrations within it without problems. It says it's deprecated but works just fine, I'm using it on latest PW master. I do this exactly with that migrations module having the migrations in version control. -
Running 3.0.165 I have this weird thing happening where somehow pages with children don't show the Trash action, I can only delete them from the edit screen. I have access control enabled and the user with the role that shows this behaviour have the page-delete permission enabled and everything that seems to be needed to edit/publish/trash since the user has worked without issues up until noticing this detail. Single pages on the main root also display the Trash action. Parent Page without the trash action: First children with the Trash action: Forgot to mention this is all fine for superuser.
-
wireshell - an extendable ProcessWire command line interface
elabx replied to marcus's topic in API & Templates
Hi @bernhard ! Pretty much the same use as @Ivan Gretsky. I also use the backup functionality when making batch migrations of data along multiple installations or just when I want to do it quickly from cli.