-
Posts
6,671 -
Joined
-
Last visited
-
Days Won
366
Everything posted by bernhard
-
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!
-
I don't care about those 135kB, but I also don't care about any other theme than we currently have ?
-
For me: No, sorry. I don't get it or maybe I'm misunderstanding it. Do you want to add some css modules on the fly in the frontend when you are using some markup (eg add slider.css when using a slider html block)? Markup regions could then be a solution: <region id="slider"> <div>your slider markup</div> </region> <region pw-append="styles"> <link rel="stylesheet" type="text/css" href="slider.css" /> </region>
-
Just go to Modules > Admin and install the Select Options Module, then you can select it in the list of available Fieldtypes
-
Could you explain that a little bit more detailed, please? I just try to understand how your module works ?
-
Thx for the heads-up noel. I just tried your theme again and found this little bug: Very nice! Why are there three colors? Could you describe a bit how you created thos color variants? What is necessary to add a new custom color? Is everything replaced by hand in the css? Or is there some less/sass files? The reason why I'm asking is because it would be great to have the option to change some colors just by selecting one.
-
How to render admin page into a variable to create a PDF?
bernhard replied to dotnetic's topic in General Support
Wow @OLSA thx for that great example! Creating PDFs via PHP (mpdf) definitely has some drawbacks (formatting is sometimes tedious since not all css commands are supported, for example you can't use block elements inside table cells). Your method would also work with charts or other complex elements. Not sure how multipage would work, but I guess support for that via the @page directives should be possible. @jmartsch For creating 1000s of reports you could use RockGrid's batcher. You could create a grid containing all elements to create a PDF from and batcher would create the reports one-by-one with a progressbar and user feedback, similar to this: -
How to render admin page into a variable to create a PDF?
bernhard replied to dotnetic's topic in General Support
Do you know about RockPdf? Yeah, performance is a problem with all those PHP PDF libraries. Generating PDFs on page save would definitely help, if possible. mPDF also has a feature to replace text in pdf files, so you could maybe copy a base PDF and replace blocks individually to make it more performant (never tried, though). The problem with this feature (for me) was that it does only support strings and not any other markup (like images). -
from this github issue: https://github.com/bmewburn/vscode-intelephense/issues/135 So in a future release intelephense might also work server-side (if I understand this comment correctly)...
- 246 replies
-
- 1
-
-
- visual studio code
- vsc
-
(and 2 more)
Tagged with:
-
How to render admin page into a variable to create a PDF?
bernhard replied to dotnetic's topic in General Support
haha, sorry, totally missed that ?