Jump to content

Macrura

PW-Moderators
  • Posts

    2,765
  • Joined

  • Last visited

  • Days Won

    40

Everything posted by Macrura

  1. are you using the default .htaccess file - do you have anything enabled, like www vs non-www, or https? Also are you using cloudflare?
  2. For anyone who is having the red x problem with images, I was able to solve these missing images by doing 2 things: 1) If you are on https, convert image references to absolute (i think this is because the library uses http when replacing image references ?) $rootPath = $pages->get(1)->httpUrl; $body = str_replace("/site/assets/", $rootPath . "site/assets/" , $page->body); 2) Manually create the temp folder ("WirePDF") inside site/assets/cache/ – this folder did not exist and therefore the core library was throwing image errors. Once these 2 things were completed, now the PDFs generate with the images correctly
  3. I would fix your markup, remove the ID from the option since that won't validate (multiple same id). Also, it looks like you are not closing the opening tag for the option. in order to have it searchable, you'd need to add data-live-search="true" to your select element. for running an action, you would need to do like an onChange event and then window.location.replace with the value of the selected option..
  4. ListerPro has actions, so you can filter down, select etc, then run actions on those results (such as delete)..
  5. u need to spoiler that edit: looks good now (was scrolling endlessly on mobile)..
  6. I've done quite a number of forms with this type of setup, not sure if any of this js would help but just in case... (using custom timepicker init and callbacks)
  7. When working with the NavItems submodule, which is incredibly useful, i have encountered some caveats, and not sure if these can be fixed/addressed... 1) The js that adds those items seems to only work on the first menu item, and if that has child items. Usually this is Pages, and has children; but in my case, i have a dashboard module that takes the top position under the admin, and is the landing page for the admin. In this case, the nav items don't show, since there are no child items present under the dashboard process. 2) For custom nav items, i often will need to be able to place the menu items in specific places, like under a 'Content' or 'Company' menu, and i know that won't be possible currently in AOS, so as a workaround, I used the technique of adding a menu item, using ProcessPageEdit as the selected process, and then doing the trick of of hooking in ready.php to specify the id of the edit page (courtesy @Jonathan Lahijani), but the issue with this is that the $input->get doesn't seem to be available to other modules (maybe the order in which they are loaded), and therefore any modules used in the admin that rely on $input->get->id don't work, since the URL that you are on is the url (name) of the process page. if($page->template=="admin" && $page->name == "homepage-config") { $input->get->id = $pages->get("/settings/homepage-editor/")->id; } So anyway i have a somewhat hacky process module (ProcessMenuLink) that $session redirects to the edit page for the item; ultimately would be cool if there were some way to have the menu item itself link directly to the edit page w/o redirect, but for now this is the workaround i'm using... thanks for listening!
  8. you just have to use a regular multi select, and then init that with the chosen JS on your form; In other words you wouldn't setup the formbuilder field to use chosen select, you would setup a page select multiple with a InputfieldSelectMultiple as the input; then you would config add the chosen assets from within your formbuilder.inc file in your templates folder, using either a conditional or a switch statement; you would also need to add a init js file that would init the inputfield.. (see https://harvesthq.github.io/chosen/ for examples)
  9. I've had this issue for a while but am just now getting around to posting about it – if i am seeing this correctly, minimizing the tracy bar is adding a 'hidden' class to the body, which makes any site using bootstrap turn completely white, since in bootstrap framework, there is this rule: .hidden { display: none; visibility: hidden; } would be great if it didn't do that, since it scares some people when they minimize the toolbar and lose the site;
  10. would be awesome if core natively supported dependent selects in repeaters!
  11. you mean this? http://modules.processwire.com/modules/fieldtype-fields/
  12. Here is the text, in a gitbook; hopefully nothing too controversial... https://outflux3.gitbooks.io/why-choose-processwire/content/ If anyone wants to edit, feel free; Also, i want to add some images – screenshots of admin, some gtmetrix scores of really fast sites, and icons here and there (that are in the original but didn't make it to the gitbook).
  13. I needed the same thing so i used Selectize inputfield single for the master select and then a select multiple on the dependent select, then i initialized the 2nd one using Selectize JS; the JS is not so hard, but you do need to have a custom select multiple that has a data-parent attribute on each option; those are filtered to match the selected option in the 'parent' select. Eventually this will make it into InputfieldSelectize somehow, but for now it's just done by adding JS, courtesy of AdminCustomFiles.. In the screen capture, you will see the left select, which may or may not have child pages; if it does, then the right one shows the children:
  14. right - got it; i haven't pushed the new features to the import module yet, as still testing, will push it soon, maybe next week; i will look at how to add an input to the image, but adding input field to inputfield is something i've never tried yet...
  15. the latest version also has an option to specify a field containing an image URL; this way you can copy image urls off the web, paste into that field and it adds it to the images field (specified in the module config); does the images field have a place to paste a URL - would that need to be added with a hook?
  16. i have a similar need, and have a 'roll your own' pagetable setup, using Runtime Markup; i think once i implement the Datatables Editor (if that ends up being possible), it will be really cool, and much less screen-estate than a repeater interface.
  17. In developing the Field Descriptions Extended module, i looked at your code for how to hook into the Inputfield::render and then from there run the method to do my replacements on the field descriptions, and it's all good. But i got stuck at fields inside repeaters; I see that AOS doesn't add the edit link to those fields either; i'm guessing the hook doesn't run on those because they are rendered by ajax, so wondering how hard it will be to support the AOS field edit links for fields in repeaters, and similarly in my module....
  18. Are you using any javascript in your process module?
  19. Sounds like the defaultColumns is what i was looking for - thanks!
  20. oops, mis-typed, i meant keep closed when blank; they do stay open if set to open. I guess maybe i need to make sure my code returns empty for this to work; will check again.
  21. i could post an edited version, this one is very marketing oriented and names my company and other clients, and talks about some proprietary modules... Perhaps an idea is to setup a GitBook that could be collaboratively edited, like an open source book about Why Choose ProcessWire; on Gitbook, the books can be read, or downloaded as PDF, ePub etc.. When i use this document at meetings, i usually print/bind it and go through the points with the perspective clients..
  22. I can try and send it privately/PM, it probably wouldn't be good to post on the forum..
  23. zero is my concrete answer to yr question
×
×
  • Create New...