Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 06/25/2018 in all areas

  1. I found a solution. In case someone else has this problem in the future: One has to explicitly use an apache server for it to work. Processwire requires "mod_rewrite" which is not present in php build-in and it seems neither it is with IIS-express. So in the "project settings->server" choose "custom" as server and enter the project url. I used xampp to run the apache server and mysql database. Make sure xdebug is installed in the php-installation of xampp. Now php tools reads all PW variables and functions properly, no need for page() (still good to know that it exists).
    2 points
  2. A few usability tweaks and tips for the CKEditor "Styles" dropdown, which is by default not that user-friendly: As you can see it's small and if you add custom items to it they may look awkward as they may inherit styles from their targets (a 3rem bottom margin in the screenshot above). These are relatively easy to fix but you have to load your custom CSS files to two places (eg. with AdminOnSteroids): PW admin and CKEditor. After loading the CSS/Js assets (see code below) the dropdown looks nicer and more usable: The screencap contains other features that you can achieve with the snippets below. Code CSS - CKEditor (contains demo styles too) CSS - admin JavaScript - CKEditor custom styles P.s. in case you wonder whether the half-margin, no-margin stuff and font-sizes from 12px to 48px were real-life examples - yes, client request ?
    1 point
  3. Attention: This is the thread for the archived open source version of RockPdf. This module is neither developed any further nor maintained nor will it get any fixes. Modules Directory: https://modules.processwire.com/modules/rock-pdf/ Download & Docs: https://github.com/BernhardBaumrock/RockPDF Please see the new version here:
    1 point
  4. Did you look into the database itself to verify that there aren't any gremlins in those street names? What happens when you look for pages containing the streets that cause an sort issue? Do you find all entries or only a few? There is one thing... ok, that shouldn't be the problem but... does ProcessWire stumble over street and street_number?
    1 point
  5. Received PM from @ThomasH ThomasH 0 Started conversation: just now Hi, sorry. i can't answer with a post cause i'm a starter here. i fixed my issue. DomainFactory have Problem with DNS. I used the IP address of the mysql server and it work fine. perhaps you can quote my answer and close the thread
    1 point
  6. This sounds awesome! I can offer my humble testing skills even though I'm not having too much free time these days but this project is more important than ever (thinking of GDPR compliant backups, ie. encryption for backups). Last time Flydev could not reach out to too many active testers, so now I encourage anyone reading these lines to join in and offer testing – maybe even development – help to Flydev in advance if you can really do it when he needs it. Also, please do not just hit the like button but reply with suggestions too ? BTW, my first suggestions is: besides being GUI friendly, the new module could also be cli friendly: meaning wireshell integration.
    1 point
  7. Featured in ProcessWire Weekly #215. Thanks a lot for sharing @bernhard!
    1 point
  8. I think they are referring to a Drupal setting that maps to CKEditor's config.fullPage, for editing a full HTML document? That's not something we use. Though it's possible I'm missing something. I noticed CKEditor 4 is now up to version 4.9.2 (we are on 4.8.0). Maybe they have fixed the issue in CKE. I'm going to update to 4.9.2 in PW core 3.0.107 this week, hopefully that'll help.
    1 point
  9. Thanks @flydev and @dragan for your suggestions. I forgot to mention in my original post that I did try paste as plain text. While it works well and is a great option in some situations, it's probably a bit of a last resort for us in this instance. As @ryan has pointed out, we don't want our editors to have to remember to do it (or force them to do it), and they'll just get irritated that all their formatting disappears. They don't always paste from Word, but it happens enough for us to have to make it as simple as possible for them (but not too painful for us as the ones who then have to check their pages prior to publishing them). Indeed! I've been using PW for personal sites for a few years now, so when it became evident we needed to change our CMS I introduced it to the rest of the Web Team and then we managed to argue the case for it to be our new CMS! ? Finally thanks to @ryan for your fantastic advice. I might look into HTML Purifier a little, but that hook code should be enough to get it operating how we need it. I'll give it a try when I'm back at work on Tuesday!
    1 point
  10. A small news about Duplicator and why its not updated recently: On the current state of the module, it is usable for small website, I mean small database (I am aware of the issue which include the parent directory in the compressed package which make the package non deployable by the installer). As stated by Ryan itself, If you are working with really large files, it may be better to perform that task directly in PhpMyAdmin or the native MySQL client. And as I am working now with giga-sized databases, its the time to rewrite this module. So what is planned ? Duplicator will be made on top of PHPBU in the hope to provide to the community a professional focused backup service for your websites. More information : Future requirement: PHP 7.x.x The official repo : https://github.com/sebastianfeldmann/phpbu Any suggestion welcome. Have a nice day ! ✌️
    1 point
  11. Hi Ryan, Firstly, thank you for Processwire and all the time and effort you have invested and thank you to the many others that help you support this community. Please could you advise when the next master stable version is likely to be released? As you will be able to see in this instance the multi-site installation is running an older master version of Processwire: version 3.0.62. I have raised a couple of related queries/topics that remain unanswered: The above is much more of an issue at present. I'm very wary about updating until I am sure of the correct procedure I should follow to update a multi-site installation. Any advice would be greatly appreciated. Setting up access to allow a potential administrator to view the backend without having edit/delete permissions - effectively to be able to view the everything including the edit interface without being able to make any changes - would be really useful.
    1 point
  12. Nicely timed question— this is actually already in 3.0.107, and I've just been testing it locally this morning. If there are any pages in the trash that a user had edit permission to, then they can see the trash, and see those pages in the trash. The trash and restore actions also are now supported for non-superusers. They can't see pages in the trash that they don't have page-edit/page-delete permission, only superuser can see those.
    1 point
  13. Problem already solved in another thread.
    1 point
  14. @Uniteam Anything showing on your logs? Under Setup > Logs.
    1 point
  15. Make sure you have debug mode turned on - you might get a meaningful error that way.
    1 point
  16. I would love to agree but I can't in this special case. For a developer with some years of experience and knowledge this should be a no-brainer. Absolutely true. But for those who just started with (web) development and have all their database stuff in phpMyAdmin it might be not.
    1 point
  17. +1 for Duplicator. It has saved me so much time deploying projects.
    1 point
  18. Or use Duplicator which is even easier imho.
    1 point
  19. What about the database? Copied it? appropriate login/password?
    1 point
  20. ok yeah, I'll see if i can improve the readme and i'll post a walkthrough here with some screenshots shortly... In the meantime a lot of the info in this post is still relevant:
    1 point
  21. Thanks for the info. Hooking ProcessPageView::execute and calling getPage() seems to have negligible effect on response times. The method only executes once per page view, and getting the page object with getPage() method took an average of 0.0015 seconds in my tests. So I'm not too worried about that aspect. I'm not sure what you mean here - it might return the page object for a different page? Or some aspect of the page can be different? This gave me the same ID each time: $wire->addHookBefore('ProcessPageView::execute', function(HookEvent $event) { /* @var ProcessPageView $ppv */ $ppv = $event->object; for($i = 0; $i < 50; $i++) { $page = $ppv->_callMethod('getPage', []); bd($page->id, 'page->id'); } });
    1 point
  22. You might want to use the functions API (just literally discovered it myself seconds ago...) https://processwire.com/blog/posts/processwire-3.0.39-core-updates/#new-functions-api
    1 point
  23. I'm so glad I wanted to share that with you today. Since November 2017, all of the company's infrastructure is built on ProcessWire. Whether it is the showcase website or the millions of transactions recorded in the database as pages or all the custom modules to interact with the company's data. Just to say that I feel lucky to work all the day with what I love, and when I remember that I was demoralized thinking I had to learn Wordpress or I don't know what, because before ProcessWire I never worked with a CMS and it was becoming vital. Then I stumbled on ProcessWire (hooray!). And now, a new step for me appeared yesterday. I have a trainee for a month. And my task is to teach him how to work with ProcessWire! This make me really proud ! Have a nice day everyone and again, thanks to this community and this software! ?
    1 point
×
×
  • Create New...