-
Posts
2,765 -
Joined
-
Last visited
-
Days Won
40
Everything posted by Macrura
-
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
-
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..
- 1 reply
-
- 1
-
ListerPro has actions, so you can filter down, select etc, then run actions on those results (such as delete)..
- 21 replies
-
u need to spoiler that edit: looks good now (was scrolling endlessly on mobile)..
-
2 date fields, how to ensure the second date is higher?
Macrura replied to horst's topic in General Support
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) -
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!
-
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)
-
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;
-
wrapbootstrap is very good
- 23 replies
-
- 1
-
- template
- website template
-
(and 2 more)
Tagged with:
-
would be awesome if core natively supported dependent selects in repeaters!
- 9 replies
-
- 6
-
- inputfield
- dependencies
-
(and 1 more)
Tagged with:
-
you mean this? http://modules.processwire.com/modules/fieldtype-fields/
-
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).
- 12 replies
-
- 10
-
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:
- 9 replies
-
- 9
-
- inputfield
- dependencies
-
(and 1 more)
Tagged with:
-
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...
-
say fanboy again
-
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?
-
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.
-
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....
-
[solved] Admin menu issues after ProcessModule install
Macrura replied to rick's topic in General Support
Are you using any javascript in your process module? -
Module Visual Page Selector (commercial page picker module for ProcessWire)
Macrura replied to kongondo's topic in Modules/Plugins
Sounds like the defaultColumns is what i was looking for - thanks! -
Module Module: RuntimeMarkup Fieldtype & Inputfield
Macrura replied to kongondo's topic in Modules/Plugins
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. -
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..
- 12 replies
-
- 10
-
zero is my concrete answer to yr question