-
Posts
6,629 -
Joined
-
Last visited
-
Days Won
358
Everything posted by bernhard
-
Just a note if anybody gets in trouble when creating complex PDFs... It seems that there is some bug related to the tempdir that is created for the pdf. If the PDF takes long to render it can happen that this folder is deleted automatically before the PDF is done. Then you'll get an error. In my case this solved it: $pdf = $modules->get('RockPdf'); $pdf->settings([ 'tempDir' => $this->config->paths->root . 'site/assets/cache/WireTempDir/.RockPdf/test/', ]); For sure just a quickfix, but I'm busy...
-
PW can set the mime type, so I guess it could be related to it. But I've never used this feature, so I don't really have an idea. I also don't have time to look into that atm. Maybe someone is more experienced in this area and can help...
-
Agree. @tpr maybe an idea for AOS to add some hints to the tree when moving items around? I have no specific idea yet ?
-
Thx @AndZyk, Hm... There are situations where I also need it in my php or otherwhere. I'm now using this one: https://github.com/leehooi/vs-color-picker The nice thing about this is that you can pick the colors also from other applications (like an open browser's website background). Yeah, good point. The reason for that is that I create the classes dynamically: I then have the colorcode in my php wherever I need it and I can also create colors based on user input (color picker field) and have the proper classes for my RockGrid ?
- 246 replies
-
- visual studio code
- vsc
-
(and 2 more)
Tagged with:
-
Interesting. I got some mime-type errors in the console from time to time. Maybe that could be the reason? No idea how I should track that down since everything is working fine on my side ?
-
Thx for sharing ? Would be interesting WHY they preferred it ? Maybe they where just used to the old way of doing it. This does not mean that another way could not be easier/better in the long run. I remember when I first installed Office 365 I was quite upset because everything looked different then on the old Office 2007/2010 but now it's the other way round: I love the new Office and when I have to work on an old computer with old Office I'm totally bugged ?
- 17 replies
-
- 1
-
-
- cms
- comparison
-
(and 1 more)
Tagged with:
-
Hey @charger, thx for that info. Could you please check if that is the same in a non-pw setup? I mean creating a php file only for that purpose, importing mpdf, creating the pdf and trying the show() and download() equivalents of mpdf?
-
Any recommendations for a good color highlighting plugin? I want one that highlights the colors in my code (eg #afafaf should get grey), but I also want one where I can open a color picker. Or maybe two plugins? The ones that I have does not seem to work in .php files, for example.
- 246 replies
-
- visual studio code
- vsc
-
(and 2 more)
Tagged with:
-
No problems here. Which Browser? Can you try whether using the original mpdf code works (without using my shortcuts)?
-
I've always used the all tables option but on my recent mathparser module I've used 3 fields for the same functionality: 1) radio active by default yes/no 2) if no, fields to include 3) if yes, fields to exclude
-
The timezone IDs are taken from the default PW installer. There is a select field and you can lookup the IDs there. That's how the installer is set up - no idea where these IDs come from ? To your other questions: I can imagine that it took some effort to make it work. Does it work now? Do you have any specific suggestions for improvements? I'm short on time and I use kickstart on my PC just to setup new installations. I don't plan to develop a general installer replacement. I'm happy to accept PRs though ? Hope that helps!
-
Thx for reporting! I can have a look next week or maybe you can do a pr or share your investigations until then?
-
Same here. Maybe someone else wants to give it a try. Or I'll go for it myself when I find some time. Would also love to. And your explanations definitely help a lot to understand everything a lot quicker. Thanks!
-
You wrote Tracy enabled/disabled, that's why I asked.
-
You can add a markup field there via array in your module config: [ 'type' = 'markup', 'value' = 'your html', ] You can also group/collapse etc several fields. There is a blog post about the new module config. Sorry on mobile ?
-
Doesn't sound like you are eager to try it out? ?
-
So what are your load times regarding the "force su into dev" setting?
-
Are you looking for docs in modules for the superuser or docs in admin pages for the client?
-
Great, thx for the heads-up! So that means it would be very easy to improve your module to use the default theme (by ryan) and adjust some variables via inputfields. These Inputfields could - in the easiest implementation - be regular text fields (one field for each adjustable less variable). Or it could be a textarea field where we can copy something like this: @theme-primary-color: #3584EA; @theme-primary-color-rgba: rgba(53, 132, 234, 0.6); Just include a php less parser: https://github.com/oyejorge/less.php $parser = new Less_Parser(); $parser->parseFile( '/var/www/mysite/ryansbasictheme.less' ); $parser->parse( '@theme-primary-color: #3584EA; @theme-primary-color-rgba: rgba(53, 132, 234, 0.6);' ); // the line above would take the inputfield values, it's just to show how easy it is to parse the less with custom php variables $css = $parser->getCss(); Then we'd only have to tell the regular theme to take this new CSS as stylesheet. Maybe you could define this as option (color1, color2, color3, custom less). And it would be easy to customize the admin for everybody very easily and fast - and without any source compilation. Ah, of course the creation of the CSS would have to be done once when changing values. It would be totally imperformant on every page load. If I understand that correctly: Congrats! ? ??
-
I wrote that on mobile, maybe you missed it? It was related to your post.
-
[SOLVED] Add class to FieldtypeTable before outputting it
bernhard replied to dotnetic's topic in API & Templates
Your screenshot shows an InputfieldTable, which is neither a FieldtypeTable nor a FieldtypePageTable ? -
[SOLVED] Add class to FieldtypeTable before outputting it
bernhard replied to dotnetic's topic in API & Templates
$inputfield->addClass() does not work (you already have this line in the linked gist)? Or did you already solve it like this? -
Also interested, please share it in public ?
-
Everything sounds awesome! ? Maybe that's unnecessary to say, but please also reserve some time to do proper docs. I'm just afraid that things can get quite complex ? thx!