Jump to content

dragan

Members
  • Posts

    2,007
  • Joined

  • Last visited

  • Days Won

    21

Everything posted by dragan

  1. I'm not quite sure I understand... what is #colMedia? Maybe use another variable name than data in your success function? i.e. var d = $(data).find('#mediaGrid').html(); Do you add items with filtering, or remove? (remove would be the behavior that Lister Pro uses - i.e. show fewer items as you add more filter conditions)
  2. You could try: Uncommenting this line in your .htaccess: https://github.com/processwire/processwire/blob/master/htaccess.txt#L92 Delete site/assets/cache folder contents Check site/assets/logs for additional hints what went wrong Check $config->httpHosts in site/config.php As a last resort, find out which version you had installed, and overwrite the entire wire folder with the same version. (use $config->version somewhere in your templates to find out which one you have installed). Backup the old wire folder (rename it), just in case. e.g. if you had v. 2.6.1, grab the wire folder from here https://github.com/ryancramerdesign/ProcessWire/tree/2.6.1 And finally... you could download the entire site, clone the DB, and try to make it run locally. But this shouldn't really be necessary.
  3. Maybe @ryan can share some light on this. Meanwhile, why not open an issue @ https://github.com/processwire/processwire-issues/issues ?
  4. It just seems like this never really worked as intended, or maybe stopped working as expected. However, I just installed kixe's module mentioned earlier, and when I tried this children name format, it works: date(Y-m-d) title id gives me 2018-01-20-here-we-go-again-1043
  5. You got an HTTP 500 error? I don't think that's expected behaviour... Is your site live? Is $config->debug set to true? What if you change it to false?
  6. If there are many such fields, consider changing the textarea values via API + regex. e.g. with https://gist.github.com/jbroadway/2836900 Just take care about when using / removing / adding which textformatters in the whole process. Perhaps do a test with only a handful of fields first, and see if it works out OK?
  7. Welcome to PW Could you describe a bit what those elements contain? I mean what kind of content would go inside "walk variations" or "walk segments"? Also, do you plan to include some maps? Is there maybe another similar site that does more or less what you're trying to do?
  8. If I understood correctly, @oma wants to add something after the last matrix item of type x. That would be rather tedious with JS. I tried the following in a test-setup (albeit I used richtext as example type, not text): foreach ($page->matrix as $matrix) { $matrixTypes[$matrix->id] = $matrix->type; } $filtered = array_filter($matrixTypes, function ($var) { return ($var == 'richtext'); }); $lastElementKey = array_pop(array_keys($filtered)); Now you can do an if/else with the ID you have from $lastElementKey.
  9. You mean adding something in the frontend template? Did you try a count() ? You could use a good old counter var and if/else inside your text repeater loop.
  10. I have never done that, but here's the official docs: https://dev.mysql.com/doc/refman/5.7/en/converting-tables-to-innodb.html With a live site, I would first of all backup the DB, then duplicate the DB and set the copy to InnoDB. Then change the config to point to the new copy. Test as much as you can (frontend, backend - with devmode on and Tracy installed and running). Or even better: make an entire copy of the site too (sub-folder) and test only with that copy first. After first time running the cloned site, clear the modules cache and delete the site/assets/cache folder.
  11. Awesome! Just a few remarks after trying it out for 5-10 minutes... My main concern with such a powerful tool is security: I see you created a special permission for this module. I guess that your intention was that only superusers are able to use this module. If I allowed regular editors use this module, it'll only be a question of time till someone breaks stuff (editing core files, PHP etc.). I just want to make sure there's no nasty backdoor (like with WP's code editor, that is still installed and enabled by default, and is still a massive security hole)...
  12. I don't think that's default. Take a look at the settings @ /module/edit?name=ProcessPageEditLink
  13. Don't know if you heard about it: There's a great CKEditor plugin called Accessibility Checker: https://ckeditor.com/ckeditor-4/accessibility-checker/ I have started to include it in every new PW installation and tell clients about it. Perhaps there's a way to include this as well?
  14. Nice. I had Octotree installed since ages... Any plans to support Gitlab too?
  15. Then I'd use asmSelect (autoselect multiple), with option to create new items by hitting enter.
  16. Are the duties "free-form"? Or do you have a structured set of duties? If the latter, I would pagefields. I would do it without repeater matrix. parent page Members + child pages with tpl member Somewhere a parent page with child pages to store each duty. Then just use two text fields (firstname + lastname - gives you more possibilities for sorting), plus pagefields (select or checkboxes) for duties. You can control access rights on field-level.
  17. Never tried something like this. In fact, I'm glad PW has this feature... I would try with 3) - take a look at this hookable method: https://github.com/processwire/processwire/blob/master/wire/modules/Inputfield/InputfieldFile/InputfieldFile.module#L532
  18. I was thinking about writing a module: Enabling PW to index and search contents of uploaded files. I know the easiest way to include search-inside-files capability is to use Google CSE. Developers who have a dedicated server may of course use of of the "big boys" of search like Lucene, ElasticSearch, Solr etc. For ES you'll need Apache Tomcat, which most people don't have at their disposal, etc. So, my question is, first of all: Would such a feature be used at all? I know you can create some sort of meta-search with file-descriptions, or when using the "one page per file" approach. After some brainstorming, I came up with this: Idea: Make it possible to search file upload content (PDFs, Word, Excel) Approach: Build a module (d'oh) Config settings: select templates / file-fields (what to index) - list all inputfields type "file" “index now” button or “index each time a file is added” or cron? Performance? Where / how to store indexes? As a separate, new field inside each page? On the file-system? In the module folder, each file has a related JSON file? (similar to language files) A new, separate DB-table? What we need: filename / path / URL filetype (to customize search results with file-icons) page id extracted content timestamp of last index-build? MD5/SHA hash or some such? How to handle user roles when doing actual search? Inherit from page? Inherit from file-field? So, what do you think? Not worth it? Does something like this already exist (I searched, but found nothing)?
×
×
  • Create New...