Jump to content

Kiwi Chris

Members
  • Posts

    206
  • Joined

  • Last visited

  • Days Won

    2

Kiwi Chris last won the day on January 3

Kiwi Chris had the most liked content!

Profile Information

  • Location
    New Zealand

Recent Profile Visitors

1,994 profile views

Kiwi Chris's Achievements

Sr. Member

Sr. Member (5/6)

307

Reputation

  1. I've been using Bootstrap since 3.x compiling my own customised version from less with 3.x and then SCSS with 4.x I'm yet to jump to 5.x I've taken a look at Tailwind a couple of times, and the good thing is it seems to produce very small CSS, but the process of getting set up to compile a minimised version seems to be more complex and requires more tools than with Bootstrap. That's a one off I guess, and once you're set up then presumably it's straightforward. I do like Bootstrap's components. I'm a developer, not a designer, and when a client asks me "What can you make my website look like?" it's really handy to be able to say, "Here are a set of components you can pick from. I can change the colour, size and position any way you like." That's way easier than trying to explain the intricacies of CSS and that technically, I could probably make their website look like just about anything from dog's vomit to the crown jewels.
  2. ProcessWire is an excellent framework for building just about anything, with great tools for permissions, input fields, and creating data structures. With the Combo and Table profields, it's possible to handle just about any data. These fieldtypes show the potential of ProcessWire to handle SQL tables in a more 'traditional' SQL table format, which leads to one area I wonder might have potential for a new feature. In addition to ProcessWire, I also do some work with ASP.Net Core, and one of the nice features it has is the ability to work with existing SQL databases, so that you can either build your models in the framework, or use existing SQL Tables. While working with any SQL data is possible in ProcessWire, it's a lot more hands on, with less built-in support. InputFields and FieldTypes are separate, and there's no reason why an inputField can't be used for data input for any kind of data, and indeed there are some modules that use inputFields to edit custom table data. What would be an amazingly useful addition to ProcessWire would be a module that allows mapping of inputFields to fields in an arbitrary SQL table without modifying the structure of the table itself. This is something the open source Directus project does by using metadata tables to store data about to display input for existing SQL tables, without touching their structure, but documentation isn't great for that project. I think ProcessWire has all the plumbing in place to enable this kind of functionality, and the Combo fieldtype gets pretty close, but still requires the combo table records to be associated with a ProcessWire page. Obviously, existing SQL tables won't automatically map to pages, which means directly accessing them on the front-end via URL automatically isn't possible, but often this isn't required as they may be for backend use only, or for consumption within a ProcessWire page. The recent support for URL/Path hooks though, means that if there is a need to directly access existing SQL on the front end via URL, it should be possible to create a hook to do so. I think adding the ability to create backend data entry for existing SQL tables would fully complete the ProcessWire philosophy of getting out of your way and not making assumptions about your content. It's currently already best of class in terms of doing this regard to front end presentation, but it's still a bit opinionated about data structures at the back end. This is absolutely fine if you're building a web app from scratch, and works really well in most cases, but there are times where being able to quickly incorporate existing data structures would be useful. To be clear, this isn't a replacement for the existing pages model, as that would be a huge and unecessary task to completely re-engineer ProcessWire, but rather an enhancement that can sit alongside all the good stuff that's already in ProcessWire so that it's possible to get ProcessWire to handle existing SQL data tables on the backend as neatly as it already does with its own data.
  3. I think this was a bug. It affected ordinary repeaters too. It seems to have been fixed in 3.0.180
  4. Nice photos. Do you have any issues with image theft posting relatively hi-res images without watermarks? I have quite a lot of photos on one of my personal websites, but they are scaled down and watermarked, and even then, I've found some of them pop up on other people's websites without anyone asking permission. I inherited a camera club website made with Concrete, and the performance was terrible, and the editing process was horribly easy to mess up even if you mostly knew what you were doing. ProcessWire has nice image handling capabilities.
  5. Oops! Second site was on older version of Tracy. Upgrading to latest got pagination working with Lister Pro with Tracy Logs enabled. Whatever has changed with that panel between versions might give a clue as to why the other two are causing issues.
  6. I think I've located the culprits. Debug mode and Request info panels both seem to trigger the behaviour. I disabled all panels, and then started enabling them one at a time. With either of these panels enabled I get the behaviour, but otherwise things work as expected. Just testing on the other site. Results seem a bit different, in this case Tracy Logs also triggered the behaviour.
  7. Just checked. Yes it's still there, but pagination works in Lister Pro. I've just tested on another site, and there are no console errors, but pagination doesn't work in Lister Pro with Tracy enabled, but does with it disabled.
  8. Thanks @Robin S In the JS browser console, I get an error relating to a service worker I have registered for the site, so that might have something to do with it. Strangely, both modules were working just now, but I logged out and back in and they both stopped working again. The upgrades module never gets past the continue button to load the latest versions of modules, and Lister Pro does nothing when clicking on pages. Disabling Tracy from the Tracy bar at the bottom of the screen without logging out, they both work as expected again. I don't actually want or need the service worker running when on the site admin, so I'll see if I can change its scope so it's only associated with the public part of the site and see if that makes any different.
  9. When Tracy is enabled, the latest Upgrades module doesn't display the list of modules installed/available for upgrade, and with Lister Pro, pagination doesn't work. Disabling Tracy results in these modules working fine.
  10. I'm not sure about using pagination in other situations, but with Lister Pro, it breaks when Tracy Debugger is enabled. Disabling Tracy Debugger causes pagination to work again with Lister Pro. I haven't tested with other scenarios, but if you have Tracy Debugger installed and enabled, and everything else with your pagination seems to be set up correctly, it might be worth disabling Tracy to see if that makes a difference.
  11. There seems to be a new bug in that image fields from a template for image captions and descriptions etc for an image that is used in a repeater aren't getting saved.
  12. @matjazp Is it safe to just overwrite the old unmaintained module with your one? I have a site that has it installed, and it seems to be working, but it is generating a large number of log entries with warnings in Tracy Debugger.
  13. This module works well, but with Lister Pro and inline editing within the Lister Pro table, even with the check box to update on save for this module, file names aren't renamed, although opening via a full edit and saving does work. I suspect the issue might be the way Lister Pro works, but if it's possible to get this module to work with inline editing mode in Lister Pro it would be handy.
  14. This sounds like an SNI problem, although Windows 7 should support SNI. https://www.kinamo.be/en/support/faq/which-browsers-support-server-name-indication-sni The other possibility could be root certificates that aren't recognised by Windows 7, or TLS/SSL versions supported by the server. A lot of servers have retired older versions of TLS because they're insecure, and by default Windows 7 doesn't support newer versions. https://www.zdnet.com/article/nsa-urges-system-administrators-to-replace-obsolete-tls-protocols/ If this is the case, changing the CMS won't resolve the problem, as the problem is an issue between the server and Windows 7 not the CMS. This might help you: https://help.runbox.com/enabling-tls-1-2-on-windows-7/ If enabling TLS 1.2 on Windows 7 makes the website work with Windows 7, then you have the answer to what is causing the problem. Unfortunately you can't be sure that anyone running Windows 7 has enabled TLS 1.2, and if the server has disabled older versions for security, it's unlikely to be able to get insecure versions of TLS enabled again, as it puts the server at risk. It's over a year now since Windows 7 reached end of life, so anyone still using it on the internet is taking big risks with their security.
  15. I wanted to do something a little different but the code for this module helped me figure out how to achieve it. I had an existing page with a page reference field with a value that I wanted as the default value for the same page reference field when used on another template, ie I wanted to be able to allow admin but non-super users set a default themselves on a site settings page that they could change periodically. I ended up doing it as a hook in ready.php, but I guess with some more work it could be made into a module. It would need to allow selection of both source template and field, and templates the default should apply to (to avoid circular references of the field to itself). /** * Check for default value and populate when appropriate */ $wire->addHookBefore('InputfieldPage::render', function(HookEvent $event) { /** @var InputfieldPage $if */ $if = $event->object; $inputfield = $if->getInputfield(); //$default_value = $this->getDefaultValue($inputfield); if (!($if->hasPage->template == 'ProductionRole' && $if->hasField->name == 'pageShow')) return; $default_value = $event->pages->get('name=settings')->pageShow; if (!$if->required || !$default_value || !$if->isEmpty()) return; $inputfield->value = $default_value; });
×
×
  • Create New...