-
Posts
1,358 -
Joined
-
Last visited
-
Days Won
16
Everything posted by elabx
-
Simple way to have multiple select fields as per value choice
elabx replied to MilenKo's topic in General Support
Of course, totally understand! What if you have a page select per category, and the field's visibility depends on the Operating System selection. So if selection is "Windows", it will show the field that only contains the options for Windows. So on your template you would have the fields: operating_system windows mac linux Hope I am understanding your problem correctly! -
Simple way to have multiple select fields as per value choice
elabx replied to MilenKo's topic in General Support
Have you seen: https://modules.processwire.com/modules/process-dynamic-selects/ ? Modules from @kongondo are as pro as it gets :) -
Wow! Have just gone through the docs and this looks spectacular, congrats on the awesome work!
-
Does anyone know why if placed on init.php it works and not on ready??
-
Webhosting in Germany -Any recommendation for Processwire site
elabx replied to Knubbi's topic in Getting Started
I recommend managed VPS from LiquidWeb. I've had good experiences with their support. EDIT: Sorry, just read that it's hosting in Germany. -
Oh!! Unexpected!
-
@Beluga Wow spectacular! I'm so sad I don't understand a thing haha. Does anyone know if this software works on premises or does it work like a service?
-
I'm using it on on multiple Linux servers with Apache configuration. Haven't done any other special updates to make it work, for what I understand if PHP has GD/imagemagick enabled it should all work. Where I have not being able to configure it is on mixed nginx+apache configurations (like on Runcloud) because static assets are delivered by nginx rather than apache, so I just haven't had time to figure out how that would work. (using the htaccess configuration for delivering webp) What issues have you encountered? I'm not sure I understand why CentOS/Plesk wouldn't support it.
-
I'm also very interested in the backend part and all the security implications it might have, though being absolutely sincere I'm not seeing myself using Delphi. Thanks for your interest in sharing!
-
I think this should work?? https://github.com/processwire/processwire/blob/51629cdd5f381d3881133baf83e1bd2d9306f867/wire/modules/Process/ProcessModule/ProcessModule.module#L315 $compiler = new FileCompiler($this->wire('config')->paths->siteModules); $compiler->clearCache(true);
-
I had once considered vanilla forums since I tested their very embedding which seemed pretty straightforward. https://success.vanillaforums.com/kb/articles/67-embedding-your-forum
-
All of this seems pretty doable. ProcessWire has a built-in access control system that is REALLY powerful. For example, you could have "content editor" roles doing the articles only, and "financial editors" roles for people that can edit loan information or view potential client loan requests. (Just throwing ideas here) Each loan type could be a page with the required template/fields to define the loans. Again, a page with a template with the required fields should be enough. Save forms to pages, and show them on a ListerPro! Doable with some Process modules (basically a way to make custom dashboards in processwire, it's a bliss and almost the same as doing any frontend work), could be as simple or complex as you want. What would probably require more though on how you show/process data is with the loans themselves, what I would do is, have a page that holds the loan information, and pages that are child of it as "transactions" that affect the loan statuses, every time a transaction is saved, calculations could be done on the loan page holding the main data. For example, to update a field that shows how much is in debt or already paid.
-
As an alternative so you don't have to use an extra field, you could also use the $cache API to save the counts, and to avoid the count on first load, calculate all counts when a page of template news or exhibition is saved through a hook. And if you really really want to make sure a guest user never hit the cache rebuild call you could use a cron job to rebuild the cache behind the scenes.
-
From the looks of the source, at least Profields table doesn't seem to be very hookable at that detail (it's creating the markup concatenating strings), you could only hook on the inputfield render method and that includes the whole markup for the table field. I'd try with some custom javascript. Textareas does seem to trigger the Inputfield render method, so I'd give it a shot with @bernhard's hook.
-
Have you tried ProCache?? Depending on the type of website (is it mostly viewes by guests?) could work wonders because it sets up Apache to grab cache files from the system instead of hitting the database (thus saving that connection). That seems to be the database user ProcessWire uses to make it's queries. And sorry but I've got no recommendations for any european servers, way out of my geography :D I do remember seeing some forum threads about hosting solutions, try to search for that here on the forums.
-
@Ovolion I use Shopify 101% of the times, it just has most of what you need out of the box.
-
Try: https://processwire.com/api/ref/page/get-field/ $page->getField('Formattext01')->id
-
Here I had thought you wanted the actual PHP code inside the function! lol
-
ohhhhh got it! no idea man hahaha
-
Hi @Joss !! What are you having trouble with? Most of the time I forget to call ProcessWire variables like this inside custom functions: $hanna = wire('modules')->get('TextformatterHannaCode')
-
Does anyone know if there is a way to do this in Firefox?
-
This looks like a reasonable approach! There is currently nothing like those tools you mention. What I've seen works for a lot of ProcessWire developers is to use the Repeater Matrix module to create content. Take a look here: https://processwire.com/store/pro-fields/repeater-matrix/
-
About to purchase it now that I have a new computer because on my old one it just couldn't handle!
-
Use functionalities of skyscraper in Regular Profile
elabx replied to August's topic in Getting Started
Try adding: <?php namespace ProcessWire; ?> To the top of the file where that function is used and defined.