Leaderboard
Popular Content
Showing content with the highest reputation on 12/05/2017 in all areas
-
I recently started to build Vue SPAs with ProcessWire as the backend, connected with a REST API. Thanks to code and the help of @LostKobrakai (How to use FastRoute with ProcessWire) and @clsource (REST-Helper) I got it up and running pretty quickly and now have put all of it in a site profile for others to use. It includes the REST API with routing for different endpoints, JWT Auth and a simple Vue SPA which shows the process of logging in a user (nevertheless, you don't have to use the Vue part, the API will work on it's own). Check it out here: https://github.com/thomasaull/RestApiProfile I'm pretty sure, it's not the perfect or most sophisticsted solution, but it gets the job done for me… Feedback or Improvements are very welcome Update: This site profile is a module now: https://github.com/thomasaull/RestApi4 points
-
Got to agree with @Pixrael. While page.js seems nice, it's probably overkill in this case, and since you already have ProcessWire to provide routing, it makes sense to just add JavaScript-powered transitions on top of that. I've used http://barbajs.org/ in the past for this purpose. As a bonus compared to pure JavaScript approach you won't have to worry about search engines, non-JS enabled browsers, etc. as they'll still get the "regular page load experience"4 points
-
Originally requested by a client, I just wanted to share this fork of this module which now support Facebook video : https://github.com/flydev-fr/TextformatterVideoEmbed4 points
-
Wow! Indeed! That did it: upload_max_filesize 1200M post_max_size 1200M memory_limit 3200M max_execution_time 1200 max_input_time 1200 420MB upload ok. Fortunately, this is a dynamic cloud server, so increasing the memory was no problem at all. Tomorrow, I'll test how much I can go down again. Thanks so much for the idea Jonathan, I wouldn't have tried this without your suggestion The upload took about 6 minutes4 points
-
Try doubling the values above? How long does it take to upload 400mb on your server?4 points
-
Hi and welcome to the forum @ihathome If I understand correctly, in your admin page, go to Modules > Configure > SimpleContactForm then check the following screenshot : PS: You should ask your module related questions in their respective thread For SCF, here you go: https://processwire.com/talk/topic/8254-simple-contact-form/3 points
-
You can use this: https://github.com/miguel-perez/smoothState.js Demos: https://rawgit.com/miguel-perez/smoothState.js/master/demos/sidebar/index.html https://rawgit.com/miguel-perez/smoothState.js/master/demos/csstricks/index.html you don't need to do anything complex on your PW website3 points
-
3 points
-
Argh, I've just learnt what I was missing: logout+login for the user in question2 points
-
I've just recently used barba.js when relaunching the frontend of https://www.priotas.de/ (a processwire based website). As teppo mentioned: That's pretty much what you're looking for.2 points
-
Huzzah! Managed to figure it out. For anybody else with this issue, there is a setting for the Page Selection fieldtype to allow UnPublished page at the bottom of the Details tab.2 points
-
Glad you got it sorted, but while you are upgrading, I would really recommend PHP 7 if it's easily available on your host. If not, at least go for 5.6. If they don't have that, then look elsewhere2 points
-
I think the only issue you'll have with PW 2.5 and PHP 7 will be a few PHP notices. There shouldn't be any errors, but if you are not planning on upgrading that 2.5 to 3, then might be safer to stick with php 5.6.1 point
-
Hey I just checked and it doesn't seem like that's possible right now. If you're referring to the paid FormBuilder module, you might want to ask on the official VIP FormBuilder Support area? https://processwire.com/talk/forum/18-form-builder-support/1 point
-
1 point
-
The sort box will go back to the default/first option, unless you program some basic logic to make it selected. Something like this should work: <?php $sort = $input->get->string('sort'); // sanitize url variable shorthand ?> <select name="sort"> <option value=""></option> <option value="title" <?php if($sort=="title"): ?>selected<?php endif; ?>>Title (Asc)</option> <option value="-title" <?php if($sort=="-title"): ?>selected<?php endif; ?>>Title (Desc)</option> <option value="price" <?php if($sort=="price"): ?>selected<?php endif; ?>>Price (Asc)</option> <option value="-price" <?php if($sort=="-price"): ?>selected<?php endif; ?>>Price (Desc)</option> </select>1 point
-
Yup, my server noobness is showing. Looking at how I could disable eAccelerator, I saw that this particular account had PHP 5.4 selected. Turning eAccelerator off didn't do the trick but switching to PHP 5.5 did. Thanks for pointing in the right direction guys1 point
-
Looks like you are running eAccelerator Opcode Cache. That could be causing you some problems. Just an observation.1 point
-
Yeah, you got a point. You can't even run 'npm run compile' from the wire folder either because the included version with core doesn't have the source files/node_modules etc. An alternative, maybe you could git clone the module, compile it with less padding, then install it as a custom one in '/site/modules/' for each of your sites. But then of course you need to keep your personal version updated. Maybe you do need that setting after all1 point
-
Thanks @SamC I understand that it can be easy to change UIkit's LESS variables, however, about 95% of the time I would be quite happy to leave this task to ProcessWire Why? Because I like the new theme the way it is, it is just that too much extra whitespace compared to Reno that bothers me, so why should I spend more time on it then absolute necessary? I'm not lazy, I just do not want to setup UIkit for each project in order to change one (or a couple of?) variable(s). I get your point and appreciate your help. We just need that setting somehow, I think Since: "ProCache 3.1.7 adds support for SCSS and LESS" https://processwire.com/blog/posts/pw-3.0.76-plus-login-register/ It might also be possible to recompile UIkit admin theme's variables if this support is also added to ProcessWire core somehow.1 point
-
Unfortunately, one is not public – the other one not finished (not public either, but I might put in in my portfolio with a screencast or anything)1 point
-
You could stick: // Smaller margins @global-margin: 5px; ...inside your custom less file which is imported into '/custom/pw/_import.less/ (or straight in pw-theme-reno.less) and recompile the less (npm run compile), then you can make global margins any size you like... This affects all margins though. In order to do just the inputfields, it's more tricky as there are multiple padding variables all over the place which are saved to other variables. This is only a small example, been studying this theme for about a fortnight now and still finding it awkward tracing the variables about. Either it's a really super complicated thing to do, or the less is just written in a complicated way, not sure which: I do think though that you will lose the consistency if you override just the collapsed inputfields, the global margin would be the way I'd do it so the entire admin has uniform padding throughout. @szabesz maybe set global from 20px to 15px and you'll be happy1 point
-
Thanks for testing it @adrian! and I get what you mean. Yes, LazyCron generally will slowdown, we can even say it will break completely the navigation on the website! and should be used with caution. Duplicator support LazyCron as "last" cron solution. About PwCron, I don't see objection for removing it from Duplicator or maybe it could stay as is for people who want to use it. I added support for running cron jobs without external modules. Its already on Github (I will update the README). You have to call it this way (/site/modules/Duplicator/cron.php) : 0 0 * * * php /www/mysite/wwwroot/site/modules/Duplicator/cron.php >/dev/null 2>&11 point
-
Sorry that's my bad I didn't specify clearly. The main function I want from the Page Table is the ability of editing/adding children, while it also has the ability to edit/add pages somewhere else just like repeater but more flexible(choose any parent).1 point
-
I have heard alot about Django from a mentor, from what I hear it's actually quite a robust solution, so to be honest am a fan of use what's right , I don't subscribe to using Processwire for every type of application most times, I might find myself using Symfony for certain projects because of the flexibility and proper architecture that requires me to handle things and remove certain bundles , but I mostly use Processwire to build sites I want clients to manage, the moment an application has so many custom and specific needs, I would use an application framework, now if I were in Python world, because I don't really like Python i'd use Django for Site management but would prefer to use something light and flexible. Also I think you should state views without insulting, calling people "Fanboy" is not the right approach all the best1 point
-
I think profields table would be most suitable for your needs. https://processwire.com/api/modules/profields/table/1 point
-
here is the blogpost just for reference https://processwire.com/blog/posts/building-custom-admin-pages-with-process-modules/1 point
-
@codelearner I'm not sure if PW is superior to Django. But some of the strong point of PW is ... that we have that PW2.1 installation running since 6 years without any updates. We don't have to, since there's no security update needed or anything else. But updating it to PW3.x is a matter of 5 minutes, and it still works without doing anything. Except switching the RTE editor, not because it's an issue but CKeditor is now the default RTE. From the PW side mostly there's like 0h maintenance over the years. Developing and supporting projects with PW can be a fun task. ... there's a hierarchical structure that naturally represents a website structure that can be squeezed and squashed and moved around without much efforts, build self containing structures and wrap it up with some code. ... build modules in no time for whatever task. It's consistent with using the API you already familiar with. PW admin itself is built using its API. It's easy to manipulate and extend. ... occasionally you'll hear a "I just love PW" from yourself or your coworker. Usually when the deadline is tight and you have make last minute changes that would be impossible in other Systems. How do you come to this conclusion? Have you already developed something 3 months in PW and then built it in Django?1 point
-
1 point
-
1 point
-
@dragan http://modules.processwire.com/modules/import-external-images/1 point
-
Hi guys! I've been a bit away from the forums lately but I didn't forget you all (well, I'm not writing much, but visit all the time) Here is our latest site http://www.plateau.studio The design is by Plateau themselves. Some of you will probably recognize "The Weekender" magazine from their portfolio, since we also did their site some time ago https://www.the-weekender.com1 point
-
Some nice updates this morning for the Console and the Snippets Runner panels. 1) The code injection feature (the one that lets you run hooks etc at init, ready, and finished) now has better error handling. It will no longer inject code if it detects any type of error (previously it wasn't properly detecting 500 errors). 2) The Console panel now makes use of orange and red icon colors. The orange simply indicates that you are currently injecting code, and the red indicates that there is an error in your code and as such, nothing is being injected. 3) The Console panel now restores the last error to the results section on page load so if you missed the error when you clicked "Run" to register the code, you will see it again as a reminder of what needs fixing. 4) 500 errors in the Console and Snippet Runner panels now show the full error message - previously this had to be tracked down in the browser dev console's Network tab. Hopefully these changes will be nice improvements to debugging code in the Console and Snippet Runner panels. Let me know if you notice any problems. Cheers! PS I have been using the Console code injection feature for all my hook testing lately and really enjoying it.1 point
-
hi @donald i've never used this module so i cannot provide any support that you requested in the other topic. why don't you just create your own contact form? I'm not talking about creating a module for that. only a template with a simple html form, a honeypot and some lines of code that send you an email and store the results in a page in the backend? all you need is a form: https://getuikit.com/docs/form and a template that handles the request (here it handles an ajax request with some json data): <?php $email = 'your@mail.com'; $subject = 'your email subject'; $html = "<html><body>"; $formdata = json_decode($formdata); foreach($formdata as $field) { switch($field->name) { case 'email': case 'name': case 'tel': $html .= "<p>" . $field->name . ": " . $sanitizer->text($field->value) . "</p>"; if($field->name == 'email') $email = $sanitizer->email($field->value); break; case 'message': $html .= "<p>" . $field->name . ":<br>---<br>" . nl2br($sanitizer->textarea($field->value)) . "<br>---</p>"; //${$field->name} = $sanitizer->textarea($field->value); break; case 'mail': // honeypot if($field->value) $subject = 'SPAM: '.$subject; break; } } $html .= "</body></html>"; $mail = wireMail(); $mail->to('your@mail.com')->from($email); $mail->subject($subject); $mail->bodyHTML($html); if($mail->send()) { ?> <div class="uk-alert uk-alert-success uk-alert-large"> <p>Thank you!</p> </div> <?php } else { ?> <div class="uk-alert uk-alert-danger uk-alert-large"> <p>Error!</p> </div> <?php } // save to log that can be viewed via the pw backend $p = new Page(); $p->template = 'maillogitem'; $p->parent = 1234; $p->title = date('d.m.Y') . ' - ' . $email; $p->body = $html; $p->save();1 point
-
If you and your site editors have fixed IP addresses you could use mod_rewrite to redirect away from the Admin page based on IP address. In .htaccess, after RewriteEngine On # Define allowed IP addresses RewriteCond %{REMOTE_ADDR} !^111\.111\.111\.111 RewriteCond %{REMOTE_ADDR} !^222\.222\.222\.222 # Adjust to suit the name of your Admin page RewriteCond %{REQUEST_URI} ^/processwire/ # Redirect to home page. Use 302 redirect until finished testing. RewriteRule ^ / [L,R=301]1 point
-
@msavard have you seen this post? https://processwire.com/talk/topic/3706-how-to-blockredirect-one-user-role-away-from-admin-pages/?do=findComment&comment=46421 Also, there are these modules: http://modules.processwire.com/modules/auth2-factor-ppp/ http://modules.processwire.com/modules/session-login-alarm/1 point
-
This sounds familiar: https://www.magnolia-cms.com/blogs/christopher-zimmermann/detail~&hybrid-headless-cms~.html.1 point
-
I upgraded jQuery from 1.8.3 to 1.12.1, jQuery UI from 1.10.4 to 1.12.1, datepicker.js from 1.6.1 to 1.6.3 and updated longclick.js from 0.3.2 to 0.4.0 and it works just fine (after few quick tests). Then I tried jQuery 3.2.1 and jQuery Migrate 1.4.1 and it's working too (Migrate is required). jQuery 1.8.3 is released in november 2012. It's nothing wrong with that old version, but it just doesn't fit in the incoming new stable version of PW...1 point
-
Until you login, you're an anonymous visitor like every other guy who accesses the site. So if you hide the admin access, how would PW know it was you? Don't worry. Set up a safe password and you'll be fine. If you really want an extra layer of security, change the admin path to something not obvious like dragan suggested. Anything more isn't worth it. The admin path isn't listed anywhere, and is not indexed by search engines (nothing tells them where it is), so the only way to guess it is just that, to guess it. It's extremely unlikely someone would try that unless you're making a site for the government or a huge brand like coca-cola. Also worth mentioning is that if you fail a login 3x, the admin will make you wait 5 seconds before the next attempt. Fail again and it's 10, again and it's 15... Brute-forcing with that protection would take forever. I've mentioned this in various posts in the past about security. I've NEVER heard of a single PW site being hacked.1 point
-
Oh, and actually... you're not "hiding" the login URL with that. You're just making it harder to guess. You would need to add some .htaccess rules to login first via basicauth, adding another layer of security.1 point
-
I haven't tested, but youtube.be should work: https://github.com/ryancramerdesign/TextformatterVideoEmbed/blob/7c8e4ddce22dc4970c17d0f63ce3d53679e7e3a8/TextformatterVideoEmbed.module#L163 Here's it working as expected: https://regex101.com/r/aEcLl2/11 point
-
I made a few changes in my fork of the module. I added support for DateTimePicker, Recurring Events and DataTables. Here is it: https://github.com/blackberrymamba/FieldtypeEvents1 point
-
First off, I won't stop developing ProcessWire unless I'm dead. But lets say that one of you showed up at my door and shot me, and then I'm gone for good. This is free software and you don't get any guarantees there, no matter what CMS it is or how big the community or adoption of it is. But what you do get is the source code and permission to use it and do with it what you need to. There is far more security in that than any proprietary or commercial system. We should all feel very lucky that this project has attracted such a capable development community around it (more than any project I've ever seen), and there are several guys here that are fully capable of taking over the project if I go down in a hang-glider crash. I'm always reluctant to list off people because there are so many people that contribute to the core and I don't want to forget anyone. Suffice to say, I may hold the keys to the master GitHub account, but this is a project of many developers, at least 5 of which are fully capable of taking over the project if I kick the bucket. I'm certain that some of these guys could do better than me with it. Please don't take that as an invitation to show up at my door with a weapon. But I would suggest this may be better odds than with the bigger projects you'd mentioned. Lets also point out here that ProcessWire is not WordPress–it does not need daily updating in order to keep running. Most sites I build with ProcessWire are running the version they are launched with. With ProcessWire, you do not need to upgrade your site every time a new version comes out. You can generally upload it and forget it, and it'll keep running till the site as long as the server itself is running. What other CMS can you say that for? (I can't think of any) Personally, I think adoption of something like Drupal, Typo3, Joomla, etc. is more of a risk, because you are dealing with a legacy platform – you are adopting technology from 10 years ago. You are also adopting something that is a target for hackers and spammers. WordPress is perhaps the biggest target, and something I've very apprehensive to setup for clients. Ultimately when a company chooses to adopt a legacy platform because "it's what the clients know" or [more likely] what they themselves know, it's a lazy decision. It's not looking out for the clients' best interests, and it's pursuing mediocrity. When you pursue mediocrity, you pay for it in the long run. There is no better testament to that than the legacy platforms that agency seems attached to. 1-3 years after installing [Drupal/Joomla/Typo3/WordPress/etc.] for the client, they are going to be looking for "something different" in terms of the CMS (we all know this) and they won't be coming back to the same agency. The agency that thinks it's playing it safe is really just hurting themselves when they give their clients something tired and mediocre that anyone can give them. Instead, give them ProcessWire, and they'll know you are different and better (a secret their competition does not have), and they'll be a lifetime client.1 point