-
Posts
6,221 -
Joined
-
Last visited
-
Days Won
308
Everything posted by bernhard
-
session: configurable module check failed when updating to 2.6.13
bernhard replied to bernhard's topic in General Support
ok after doing a modules > refresh all but one errors are gone: what does this error mean? is it critical? everything seems to work fine... it's even not visible when debugging is set to false... -
session: configurable module check failed when updating to 2.6.13
bernhard replied to bernhard's topic in General Support
today i moved my dev-project to my live server and i still have the same issue seems that i'm stuck with version 2.6.10 for now... it seems that its not a server issue. can anybody help me where i can start my researches please? -
maybe you can use the concat field http://modules.processwire.com/modules/fieldtype-concat/ it will only work for basic output. body html-tags will be shown in the pagetable. maybe you can strip that via textformatter. for more control it would make sense to write your own module. maybe you can adjust a copy of fieldtype-concat to your needs good luck and please share your experience with us - i will also need something very similar the next days...
-
yep, i would also NOT trust this special field value because if the marker is moved it could also completely change the address generated by the google maps api! seperate fields would be the safe way but of course it depends how sensitive your data is... @limits: https://developers.google.com/maps/licensing
-
hi jürgen, that's standard behaviour of the google maps api. you can see it's response here: https://maps.googleapis.com/maps/api/geocode/json?address=Plus-Kauf-Stra%C3%9Fe%201,%204061%20Pasching,%20Ober%C3%B6sterreich,%20%C3%96sterreich it uses the "formatted_address" field. you could either try to get more information from the json or create a seperate field for the address that is displayed (unshortened). not sure what you mean exactly by the schema.org array single parts or how your setup is exactly...
-
hi mr-fan, seems that you are using croppableimage - have you tried it with the standard image field? maybe i can try to reproduce it lateron. ps: ads, not adds
-
if you have an options selectfield eg "demo_select" 1=value|title 2=value2|title 2 3=value3|title 3 and want to have a visibility dependency for "show this field only if..." this works: demo_select=1|2 but this doesn't: demo_select=value|value2 i think the labeled version is better because it's better readable and labels don't change if you change the order of your options (if you create new ones or delete old ones the ids are newly created and therefore changed...)
-
No more create new page from page field after upgrade 2.6.13
bernhard replied to BFD Calendar's topic in General Support
sorry for suggesting... -
jep unselect would be great - i tried it but i failed still have to learn a lot custom php code would be the most flexible solution! it would even make the page select unnecessary ( return $page->get(/somepage); ) - but of course the page select you implemented now is much more user friendly, especially for non-coders
-
No more create new page from page field after upgrade 2.6.13
bernhard replied to BFD Calendar's topic in General Support
you can use this module instead https://processwire.com/talk/topic/9857-module-page-field-edit-links/?p=100732 -
Awesome!! It's already installed and working great on my personal invoicing system thank you, that's a great addition to PW and i think i will need this quite often! One question: What do you think about an even more flexible way of defining the parent like i stated in my posting above. For example when i have a site for a sports club with different sections (soccer, tennis etc) and all of them manage their own chunk of persons. tennis/data/john-doe soccer/data/max-muster now if i had a template "team" and wanted a pagefield to select the coach from the /data-children it should choose the corresponding page (/tennis or /soccer, depending on where the "team" page lives under). would a textarea like the "Custom PHP code to find selectable pages" be hard to implement? oh, one more: as you seem to be a pagefield expert now, what would you think about an additional "unselect" button for the pagefield? https://processwire.com/talk/topic/9677-unselectclear-button-for-pagelistselect/ i think that would also be a great addition and would not harm anybody if you did it the same way like you are doing it with the view and add buttons (having to check the checkbox). thank's for your great work!
-
discussed or not, i think lance's point is valid and i also think it would not be a mistake to have such a list either under about or under "download" where i would have looked for it. maybe with a little hint that updates are only necessary if you want to get the newest features and NOT because of security issues and everybody should be happy
-
sounds good i've not even thought about updating the pagefield automatically when one has added a new item, but that would definitely make sense. good luck with ryans code
-
hi, this feature would fit perfectly in a project i'm developing right now on 2.6.13 with a autocomplete pagefield. unfortunately it does not work with the new condensed format of single page selects! https://processwire.com/blog/posts/new-ajax-driven-inputs-conditional-hooks-template-family-settings-and-more/#improvements-to-the-page-autocomplete-input on multiple selects it works as expected and it's really helpful!! thanks for the module and i hope there's an easy fix for that edit: what do you think about a link to a modal to ADD a new page to a defined parent. i know one can define "allow adding of pages" but i think there are situations where that is not really user friendly or even not possible because you have some required fields that you can't populate in one line of a pagefield. at least in my scenario (invoicing app) it would be great to have the possibility to create a new invoice, select the receipient and if it's a new client have the possibility to click on "create new" and it opens a modal where you can fill in all the necessary data. in this scenario it would just need an additional field for storing the parent of the newly created pages. but maybe a more flexible solution would be to define the parent dynamically (like "return $page->siblings('title=clients');" or the like) what do you think? dreaming of something like "page field enhanced"
-
ok it works now - you were both right (as expected) it was important to use the PATH to the file (thanks tpr, $config->paths->templates) $filename = $config->paths->templates . $page->parent->invoice_type . '_' . $page->invoice_num . '_' . $page->invoice_to->client_company . '_' . $page->invoice_to->client_forename . '_' . $page->invoice_to->client_surname . '.pdf'; $mpdf->Output($filename, 'F'); $page->of(false); $page->invoice_pdfs->add($filename); $page->save(); unlink($filename); $session->redirect($page->invoice_pdfs->last()->url); one more question: i was not able to save the pdf to the assets folder, so i guess this is because of some security issues? how would i create files in a different folder above the current working directory? just curious
-
thank you tpr and adrian, @adrian - that was what i wanted to achieve but there is some strange behaviour $filename = "invoice.pdf"; $mpdf->Output($filename, 'F'); // creates file /site/templates/invoice.pdf correctly $mpdf->Output($filename, 'I'); // shows the file in the browser ChromePhp::log(file_exists($filename)); // returns true $page->of(false); $page->invoice_pdfs->add($filename); // creates a 0 byte file entry in the field, but no file in the page's files folder $page->invoice_pdfs->add("invoice.pdf"); // same as above $page->invoice_pdfs->add("/site/templates/" . $filename); // does nothing and seems to break (no "added file..." log) $page->save(); ChromePhp::log('added file ' . $filename); error when editing the page with the 0-byte file in the file-field: Warning: filemtime(): stat failed for /var/www/html/billing.dev/site/assets/files/1567/invoice.pdf in /var/www/html/billing.dev/wire/core/Pagefile.php on line 324 thanks for your help!!
-
hi guys, i'm playing around with mpdf library (of course i know pages2pdf module) $mpdf = new mPDF(); $mpdf->WriteHTML('<style>' . wireRenderFile('styles/invoice.css') . '</style>'); $mpdf->WriteHTML(wireRenderFile('markup/invoice.php')); $mpdf->Output('invoice.pdf', 'F'); exit; this creates "invoice.pdf" at /site/templates i want it to be saved at /site/assets/files/pageid so i tried $mpdf->Output('../assets/invoice.pdf', 'F'); wich worked, but $mpdf->Output($config->urls->assets . 'invoice.pdf', 'F'); didn't! Warning: fopen(/site/assets/invoice.pdf): failed to open stream: No such file or directory in /var/www/html/billing.dev/site/modules/mpdf60/mpdf.php on line 8335 mPDF error: Unable to create output file: /site/assets/invoice.pdf why does the first work and the second does not? thanks for your time!
-
hi dev_panther, whenever you have a strange behaviour you can make use of debugging: https://processwire.com/talk/topic/4550-debugging-tips/
-
i wonder why there is still no answer... this is definitely possible. i'm not a pro, but i would approach it like this: use a file field to upload and store the zip-file. create an autoload module with a hook into save or saveready (don't know what's better in this case) that unzips your file and saves the content where you define it you could then delete the original zip-file. problems i can think of that may happen (just guessing) php zip support of your host there could be problems with very large zip-files https://www.google.at/search?q=site:processwire.com+unzip&gws_rd=cr&ei=ldrJVe-pOsj6abaUsLAF https://processwire.com/talk/topic/5131-extracting-filenametargz-on-server/ you should take a look at somas grabpw script: https://raw.githubusercontent.com/somatonic/PWOnlineInstaller/master/grabpw.php