Jump to content

Ralf

Members
  • Posts

    110
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    Germany

Recent Profile Visitors

3,653 profile views

Ralf's Achievements

Sr. Member

Sr. Member (5/6)

50

Reputation

1

Community Answers

  1. @horst are you still using this hook with the latest PW version? I'm trying to display the button on the right like you, but it's just not displayed on the right. 🤔 I must confess I do not use the module "AdminCustomFiles" now however it should go with this Hook nevertheless also? $wire->addHookAfter('AdminTheme::getExtraMarkup', function (HookEvent $event) { $parts = $event->return; $parts['head'] .= '<style type="text/css"> #hook_sort_images { float: right; } #hook_sort_images:after { clear: both; } </style>'; $event->return = $parts; }); But it does not currently...
  2. Yes with the HTML5 input type the issue of a comma or dot for the "decimal places" is solved. However, I then have the issue in the admin area that large values are as good as no longer readable, because I can now no longer capture points. With the input type text I can enter commas and dots, but as bernhard has already explained in this issue report, PW then stores no value in the DB. And now?
  3. Thanks for the reply, I think I will get back to you via PM 😉
  4. Hello all, I am just thinking about building a small accounting tool with processwire for my club. Background, I'm tired of doing everything with excel and constantly picking out the accounts and co. The whole thing should be nothing special, but I have a question for you experts that is bothering me right now. I need the possibility to specify several lines (debit to credit) per "posting". E.g. for different tax rates in an invoice or for different areas on which I want to distribute the booking. My question now, what would be the "easiest" or best way to solve this? With my current knowledge, I would probably solve it with repeaters, but is that the easiest/best solution? The longer I think about it, it is probably the same as with an invoice tool, there you also need partly several positions. Maybe one or the other of you has already solved this problem for yourself? I look forward to your ideas / suggestions. @bernhard on the search for solutions for this contribution, I also became aware of your tool RockPrice, are you there with the evaluation after tax rates already progressed? this would of course also be a requirement of mine for the advance return for sales tax ("Umsatzsteuervoranmeldung")...
  5. @dotnetic, I have tried and the result is that $pdf->show() => does not work $pdf->download() => does not work $pdf->save() => works, puts the correctly generated PDF on the server so it seems to be rather a problem with the output method "markup regions" which I use, respectively that I still have a wrong code structure here or? Thanks bernhard, I went through the points one by one 1. I deactivate markup regions in config.php => output in browser works now! (However, the design no longer fits) 2a. I enable markup regions again and test the change from above (I'm not quite sure now if I should really just put the "echo" in the "case 'pdf': "? I do it, and it outputs my design (up to the header, then a white body, and the footer again at the bottom). The only thing it outputs to me at the bottom of the pw-region-debug line is "No regions" and the time of generation, nothing else. 2b. I interpret your echo to mean that I should paste the code from my pdf.php file here instead of the include command. Unfortunately the result is again the same as above with dotnetic's suggestion. The only code that works to create a PDF is save(). 3. "... what does the source code look like?" => Unfortunately there is no real HTML code to look at or parse (except for the one in point 2a, but there it doesn't process anything....) so I can't share anything. Sorry if I'm a bit clumsy here.... I am therefore very grateful for any help.
  6. you misunderstood me then, i don't want to use markup regions to render html. I just thought that because I use the template "Regular" and this is based on markup regions, it is probably because of that? Because the same code works for another project where I have chosen a direct output. See in this thread on page 2. I will shown below my actual structure.... actual in my output-pdf.php File I have only this code $pdf = $modules->get('RockPdf'); $pdf->set('SetHeader', 'This is my header text'); $pdf->write('Hello World ' . date('H:i:s')); $pdf->write('<!-- my custom comment -->'); // Output $pdf->show(); // to directly show your file in the browser so I think if I understood the question correctly, the answer is no? ok maybe it's easier if i just post my code to show what i'm trying to do
  7. @dotnetic Yes as it looks, the browser seems to render the page correctly (I can't find any errors at least in "tracy" and in Chrome "DevTools"). My error that comes looks like this: (first one = Chrome // second one = Edge)
  8. Hello all, once again I have a problem how to integrate the PDF output into my page ... (With a direct output I get it in the meantime, see here). But now I use the standard template "Regular" (which is already included in the installation) and it uses the "Markup regions" method as output strategy. Well, and this is where I get stuck. Because if I try it with the same method as in the link above, it wants to open a PDF in the browser, but there is ALWAYS an error message. However, it can't be the code, a) I've already tried it only with the most necessary and b) any test code works wonderfully in "Tracy", whether I want to output it directly or save it, everything works. Now I'm unfortunately a bit at the end of my ideas and hope to get some helpful tips from the community. Would be happy, thank you and stay healthy cu Ralf
  9. Thanks for the suggestion, but I need a formatted output in various other places (eg in the backend overview), so I can not implement this manner. I have inserted the $page->of(false); 🙂 But I still have a question about your first answer, or rather I do not really understand the last sentence. How can this work? If I enter a date in the field A, how can he fill the field B WITHOUT saving the page (without Ajax)? Or am I just misunderstanding your statement?
  10. @BillH thank you very much, that was exactly what I was looking for.... I only had to modify the following line slightly, otherwise it gives me problems with my date (fieldtype: datetime). // old line $originalValue = $page->date_field; // modified line to my needs $originalValue = strftime('%Y-%m-%d', $page->getUnformatted('date_field')); Thanks cu Ralf If someone wants to see the whole code again...
  11. Hi all, i am currently facing a task where i want to fill an integer field using php based on an input from another field as already written in the subject. Specifically, my request is as follows: I have a date field in which I select e.g. the date 2021-02-06. In a second field (I thought e.g. of an integer field) the correct calendar week is now automatically entered according to the input from the "date field". In my case this would be "06" or "202106". The PHP code for the conversion would be theoretically this date("oW", strtotime("2011-01-07")); // gives 201101 Could someone help me with the hook here???
  12. Hello everybody, in order not to hijack the Wishlist & Roadmap thread, here is an extra thread about my current webP problem where I need your help. More precisely, it's about a strange phenomenon in the creation of images. - I have an Image Field, where I can upload an image. - Then I save the page with the image and call up the internet address in the frontend. - PW now generates a webP image for me. => HOWEVER this picture is unfortunately "empty".... More details see in this article here: https://processwire.com/talk/topic/14236-webp-support/?do=findComment&comment=208142 Help where is my error? Is it PW? is it the GD version I use? Thanks Ralf
  13. Hello everybody, i am currently working on a project where i want to implement the webp support in the code (<picture>...). But what I'm already busy with all this weekend, that PW for whatever reason doesn't always generate a webp image? In the first screenshot (which is reproducible) no webp image is generated. But if I edit this original picture and change parts of it, then make a jpg out of it and upload it, it works. Unfortunately, this is not only the case with this picture, but with other pictures this has already happened to me on Friday 😞 Help what could be the reason for this? ----------- The server specification from my hosting provider ProcessWire 3.0.165 PHP version 7.4.10 gd module version 2.1.1 WebP Support - enabled imagick module version 3.4.4 but NO entry in the supported formats! (that's why I did not enable IMagick Image Sizer)
  14. Hello Ryan, thanks for the update and yes the new page is more the look-and-feel of the main page. I'd like to give you a short feedback on two points I noticed during the first view/trial. 1. I have to admit that I personally am a person who likes to visually perceive larger lists. That is to say, I appreciated the fact that in the old page a small picture of the author was displayed with each module entry. I have to admit, if I have a list of 25, 40 or 50 modules in front of me and all entries look "the same" I knew in the past, I'm now looking for a module of author x, who has his picture looking like this... and then I "scrolled" over the search result quite fast. Would it be possible to include this module Autor Avatar in the new directory? 2. The second point concerns the search function in the module directory. Currently it seems to me as it looks like it probably does not search in the "body" area. Would this be possible? Explanation: The following problem occurred during my first test, the first module which I always install with every new PW installation is the "ProcessWireUpgrade" module. So my difficulty was, I can't remember the exact name ... don't ask why, I already tried it with postits etc. etc. ... nothing helps. 🙈 So I entered "Update" in the search field (I know update and upgrade is not the same thing) and it gives me only one entry here: "MarkupBrowserUpdate" 🤔 but that's not what I was looking for. I knew that the module is from you, so I clicked on your name in the author's section and went through all your modules and see, it's not update but upgrade. OK the search can't find anything, but the word "update" does appear in the body text, so why doesn't it show me this? Long speech, short sense... wouldn't it be helpful if the search function would also search the body area? Or a completely different idea (I'm working a lot with the blog system right now) how about a hashtag function for the modules? The module author can then enter 1, 5, 10, ... Keywords to be included. Or would even both be helpful? Only my two cents, thanks for reading and a nice weekend
  15. Hello @adrian, ... yes, if you look under "Admin -> Setup -> Fields -> force_passwd_change" this is also possible *am I stupid* 🙈 I looked it up under Language and didn't have the idea to look under Fields... sorry. Of course you can find everything there and enter everything you want. Secondly, thanks yes, I have now found the translation in the language files and translated it immediately ("You must change your password now"). But as far as my actual topic with the "output" is concerned, it still doesn't work. My question here is, do I have to add any code to the PHP template file of LRP (login-register.php) in the frontend to output exactly this message "You must change your password now"? Because this message is currently not displayed in the frontend? (but in the backend I see this message)
×
×
  • Create New...