-
Posts
2,780 -
Joined
-
Last visited
-
Days Won
41
Everything posted by Macrura
-
you can do like this: $pageArray = $this->wire('pages')->getById($_ids); $pdf->markupMain = ''; foreach($pageArray as $item) { $pdf->markupMain .= wireRenderFile($this->config->paths->templates . '/book2pdf/default.php', ["page" => $item]); }
-
it also depends on the budget of the project; for clients without a line item for frontend design, us developers have no choice but to use an HTML theme... and why deny some clients without large budgets the benefits of having a PW site... Sometimes these Themeforest and Wrapbootstrap themes are good, and have good integrations with plugins like tabs, slideshows, masonry etc. Having said that, i do find that i have to fix a lot of problems with these templates, remove as much CSS code as i can that i'm not using, and also write a lot of my own custom stuff on top of them; here is a site using Canvas: http://louiskarchin.com (recently relaunched/upgraded)..
- 23 replies
-
- 4
-
-
- template
- website template
-
(and 2 more)
Tagged with:
-
Most themes come in the plain HTML version, so not much use these days to convert a WP theme.. But, if you absolutely must use a wordpress theme, the easiest way is to copy the HTML that WP outputs and analyze/use that; looking at the source WP theme code is typically close to useless;
-
Thanks for this - this has solved the issue with FieldDescriptionsExtended that i posted about...
-
Possible to layout pages this way? (Page Tree Q)
Macrura replied to joer80's topic in General Support
@Robin S - sure, here is some info on how i use page flags (sorry if this is off-topic and/or verbose!) 1) i setup a (page reference) field to hold flags for any page (usually I use chosen select, but ASM select is also good for this); Users have to be able to add flags. 2) I start traversing through a type of content, (in this case the musical works of a pretty famous composer), and find problems; for this project the works were imported from another system, and now need to be cleaned up; the flags helps us to track, group, filter the works that have certain issues, or maybe need attention from some specialized member of the team; I have also setup a certain amount of auto-flagging, just by checking the fields on save and adding the flag if problems are found – for example (on a different site) the admins want to add a subscription form strategically inside the body content of their blog posts; there was no easy way to do that except by manually adding the hanna code to the body copy where they want it; But they have several hundred blog posts and don't know which ones they missed; so i have the system scan the body field for the hanna code and if not there, add the 'missing subscribe form' flag to those posts. -
Possible to layout pages this way? (Page Tree Q)
Macrura replied to joer80's topic in General Support
here is a screenshot of a dashboard, i'm using a simple grid framework + a free admin theme (AdminLTE 2) + masonry for the 'widgets'; i use 3-4 types of widgets, one is a set of shortcuts which is configurable to show on different users, or access levels; this allows individual users to have their own custom set of shortcuts if needed. The other types of widgets are a mini lister, and a formbuilder list; The formbuilder list can display recent submissions to various forms, and is helpful for admins who want to see a quick overview of recent submissions. -
Possible to layout pages this way? (Page Tree Q)
Macrura replied to joer80's topic in General Support
I use a dashboard for most big sites, and shortcuts on there to all of the major interactions; i have clients who interact with their content only through the dashboard and lister pro listers, and some settings pages that have shortcuts to edit on the dash... -
@Zeka, many thanks - will accept PR and test asap...
-
I'm not experienced with the multilanguage stuff; I'd have to research to see if there is a way to support it...
-
Do you have Tracy Debugger installed? That might provide some additional info; Usually when I'm doing a V2 -> V3 upgrade, i follow this procedure: 1) If I don't have the site already cloned locally, make a duplicate site on local machine to test the upgrade - make sure you have TracyDebugger installed, force development mode - put site into debug = true 2) check/repair permissions on files, and also check the chmod settings inside config.php (I've had upgrades seem to fail because of bad permissions).. 3) remove all modules that are known to not work on V3, for example legacy CropImage; - also remove all modules that are not necessary for the site to run - check which ones are in the modules folder, but are not installed and remove those. 4) Run the upgrades on the local version, and find issues, repair...; - view logs if you get errors - repair permissions if you get server errors but nothing in logs - Update .htaccess, add any mods that were made to the 2x version into the 3x version (such as www/non-www, force https, custom redirects, gzip etc). So far even on a really complex site, i've maybe found 4-5 things that needed to be fixed, and then i went to the live site, fixed those things before the upgrade, then ran the upgrade on live and it worked fine. Make a complete backup of the live site, as well as the database, using the database backup module, prior to running the upgrade Troubleshooting: - If you run into modules that seem to be broken, you sometimes have to trick the filecompiler to recompile the module, you can open the module file, create a new line somewhere, save, undo, save... (this happened on a few sites) - refresh the modules - sometimes you have to refresh modules several times to clear out errors
-
@Zeka - as far as i know this module shouldn't prevent you from using languages, since you create the inputfields, and the module does not limit what you put in the config settings for any/each inputfield. Did you test it already and find it not working (?), if so i can look and see if the issue is with the module, otherwise it should work the same as if you were creating module config settings..
-
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: