Jump to content

flydev

Members
  • Posts

    1,355
  • Joined

  • Last visited

  • Days Won

    48

Everything posted by flydev

  1. Hi, You can add a variable which store the number of menu shown in your foreach() loop then add the class uk-hidden to the rest of items: <?php $nMenu = 0; // number of menu shown foreach(...) { // [...] // check the var, if > 5 then add uk-hidden class to the elem $hidden = ($nMenu < 5) ? '' : ' uk-hidden'; echo "<li class='someClass{$hidden}'>My Menu </li>"; // [...] $nMenu++; // increment } // end foreach
  2. It's also working on windows by now, pushing the update to the dev branch ?? Test version: v1.4.15
  3. I made some progress and I could finally backup on an Unix machine the bigger setup I have (a backup imported as the method is not finished to be able to work on Windows) - for about 400MB files and a database of 1.6GB using the new implemented method which use the MySQL native tools. The method consist of writing a shell script on the fly which then is executed. If you wanna test it - still a work in progress - you can find the new method implemented on the dev branch on Github.
  4. thanks @dragan just pushed a fix - sorry for the mistake.
  5. Finally, I rebuilt the profile and updated it to the latest version of Bootstrap 4.4.1. I Also updated the bsRender* helpers functions, removed the Bower dependency and added the possibility (as example) to minify and bundle assets for releasing the website in production. With $config->debug set to true, you will want to work with asset files in site/assets/dev/src, and when ready, you will launch a terminal in this same directory and type yarn build to minify, concat and bundle assets, then set $config->debug to false to see the website with the assets minified.
  6. I checked it and I need to rebuild the profile - I will update Bootstrap to the latest version at the same time as this profile was shipped with the beta version. Stay tuned.
  7. We could build also the server part with Delphi, but using ProcessWire as a database interface, make the whole thing easier. It's incredible. If you couple it with a real server dedicated server, you have full speed. I have a setup where an embarked client communicate with a server-application made with Delphi through TCP/IP, relying the requests on localhost to ProcessWire : You mean a device like this ?
  8. Build a custom Process module then code what you need ? https://processwire.com/api/ref/wire-database-p-d-o/ Example in one setup I have, 3 custom tables in the database managed through a Process module which serve to find plates : In this example, I am just looking for data, but you can do what you want, show a MarkupAdminTable or even an HandsonTable to edit your data easily.
  9. @howdytom The profile didn't work - thanks you, I'll try to fix it in the couple of hours.
  10. @dragan @bernhard I feel dumb but I don't see anything in the discussion linked - so I don't understand what you was speaking about ?
  11. @howdytom Wow it's been a while a didn't tested it. Let me check.
  12. Ok for restoring, we might find a way to speed to the things, but about the backup, you kinda lost me here with your comment ?
  13. Good to know; To give you a simple answer: InnoDB was faster for writes and MyISAM for reads. Nowadays, InnoDB are the way to go, yo should be aware that MyISAM is deprecated and being ? removed in MySQL 8 I think, or maybe on a later release.
  14. Ok @adrian thanks , let us know then. It's planned yes, I was already coding something this night using natives tools. Stay tuned.
  15. I just pushed the new master version 1.3.13. You can upgrade the module through ProcessWireUpgrade.
  16. Hi everyone, While enjoying every day with ProcessWire - not building websites - but native apps and API. Just to say that I have a desire for a few months that is to teach you how to build an RestAPI and a cross-platform native application for iOS, MacOS, Android, Windows and maybe Linux in some weeks by coding in Delphi (Pascal) and using our awesome CMF ProcessWire as a backend. Why Delphi ? Embarcadero released a free edition of their IDE/Compiler (the FREE Delphi Community Edition) and everyone can enjoy building real native apps. It also give me now the opportunity to share this experience with you, as the license without the free edition was starting at ~1500$ for the Pro Edition. Also, Delphi is easy to learn, in particularly the FireMonkey frameworks which will be used to build those apps. At least I think ! When I personally begun to write code in Delphi, I had years of experience of the internal Windows API and C/C++ coding background. Still, it's just a desire, and i don't know if there are people interested by this - so let's vote !
  17. Hi @derelektrischemoench #1 - You might try to play with the htaccess on this line : # RewriteBase / Try to comment / uncomment this line on your distant server. #2 - Give a try to Duplicator, make a package on your local setup then upload it to your server and use his installer to check that everything required is ok, then continue the package installation Download link of the module (use the 1.3.12 or 1.3.13) : https://processwire.com/talk/applications/core/interface/file/attachment.php?id=18643
  18. Thanks @Autofahrn ???? @adrian About the issue "MySQL server gone away". Its quite hard to determine from where come this issue - and just saying - I still not found the way to track down this issue. FYI I also got this issue on a new MariaDB server on Windows (a boosted server where the PW setup contain more than 1.5 millions pages), and also sometime on my local MAMP setup. (The issue does not concern only Duplicator). I remember also two weeks ago, I got this issue on a shared server (another setup with about 260k pages). ATM the only two hints which come to my mind is that the issue mostly appear when using the API - which can lead us to another hint: a server memory issue Thing to test: Disabled TracyDebugger Other thing to check: I mostly work with InnoDB databases and I remember that adjusting some MariaDB parameters helped. Parameters to check : max_allowed_packet innodb_log_file_size innodb_buffer_pool_size innodb_log_buffer_size PS: To adjust the settings, check this reply : What say the MySQL devs : Let me know - thanks guys ??
  19. https://codepen.io/flydev/pen/LYEeEdR this with a bit of css/js solve your issue.
  20. @Gadgetto maybe I have misread you and/or you didn't tested the technique I told you, check this demo : https://codepen.io/flydev/pen/ZEYvYKZ
  21. set debug to true then tell us the file which trigger this error. You certainly have a call to that class bad typed. let's see. Where we should look at ?
  22. Correct, the trick here is to disable all options except the one which need to be submited. <select> <option value="1" disabled>one</option> <option value="2" disabled>two</option> <option value="3" selected>three</option> </select>
  23. @theqbap Then add the string "JSON" before the config : JSON{ "name": "Testing the import", "input": { "type": "csv", "delimiter": ",", "header": 1, "limit": 10 }, "fieldmappings": { "title": 1 }, "pages": { "template": "Data", "selector": "title=@title" } }
  24. @theqbap The YAML example converted to JSON with an online tool give us this config : { "name": "Testing the import", "input": { "type": "csv", "delimiter": ",", "header": 1, "limit": 10 }, "fieldmappings": { "title": 1 }, "pages": { "template": "Data", "selector": "title=@title" } }
×
×
  • Create New...