Jump to content

Manol

Members
  • Posts

    292
  • Joined

  • Last visited

Everything posted by Manol

  1. I've changed the type to Date and back to DateTime and now is working as it should. Thanks, hope I can help you in the future.
  2. Same result with time() 2018-05-31 00:00
  3. I got a field called entrega and defined as DateTime (Profields Table) with the following parameters dateInputFormat=Y-m-d timeInputFormat=H:i dateOutputFormat=Y-m-d timeOutputFormat=H:i datepicker=3 defaultToday=0 yearRange=-10:+10 placeholder= textformatters=TextformatterEntities default= when I try to save same data with $newRow->entrega = date("Y-m-d H:i"); I get 2018-05-30 00:00 if I do echo date("Y-m-d H:i"); I get the right date and time. Thanks.
  4. Manol

    hide field

    Is a form with several fields that is populated via vuejs, and just need a submit button to show up.
  5. I'm trying to hide an inputfield but label still appears: $field = $modules->get("InputfieldText"); $field->attr('id+name','name'); $field->attr('v-model','usuario'); $field->attr('style','display: none'); $field->required = 1; $form->append($field);
  6. Is any way to get the value of a field (Runtimemarkup) from a template : $out .= strtoupper(dechex(strtotime(date("Y-m-d H:i:s", $page->created)))); return $out; I'm getting the following error: Field 'code_codigo' is runtime and not queryable
  7. I created a new field and you're right it works, I'll check it thoroughly, many thanks.
  8. Thanks flydev, is not the case, but give this module a try it opens up a new world.
  9. Using Runtimemarkup I've tried to change the title of the page and it works $page->set('title', 'New title'); $page->save(); return ""; but when I try to change an inputfield of type text it doesn't $page->my_field = '22223333'; // $page->my_field->attr('value', '22223333'); neither works $page->save(); return ""; any advice, thanks.
  10. I've tried to change the title of the page and it works $page->set('title', 'New title'); $page->save(); return ""; but when I try to change an inputfield of type text it doesn't $page->my_field = '22223333'; // $page->my_field->attr('value', '22223333'); neither works $page->save(); return ""; any advice, thanks.
  11. It gives the following error: Error: Uncaught Error: Call to a member function save() on array in /......php:180 Stack trace: #0 /wire/core/TemplateFile.php(287): require() #1 //wire/core/Wire.php(380): ProcessWire\TemplateFile->___render() #2 /wire/core/WireHooks.php(723): ProcessWire\Wire->_callMethod('___render', Array) #3 //wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\TemplateFile), 'render', Array) #4 //wire/modules/PageRender.module(514): ProcessWire\Wire->__call('render', Array) #5 //wire/core/Wire.php(383): ProcessWire\PageRender->___renderPage(Object(ProcessWire\HookEvent)) #6 //wire/core/WireHooks.php(723): ProcessWire\Wire->_callMethod('___renderPage', Array) #7 //wire/core/Wire.php(442): ProcessWire\WireHoo (línea 180 de ....n.php)
  12. Hello. I've a protable with fields: name(text) notes(textarea) How can I add a new row and populate the fields?. $test = $page->protabla->getNew(); $test->name = 'my name'; $test->notes = 'my note'; $test->save(); Thanks
  13. I've this piece of code $p = wire('pages')->get(1024); echo $p->resp; // OK $p->resp = "33"; // not working $p->of(false); $p->save(); I can read the output of $p->resp, but when I try to save a new value $p->resp="33" is not working, any ideas. Thanks.
  14. Hello. Maybe somebody has had the same problem: I've a webpage that gives a cooking recipe for every day, on a computer it show the right data but in mobile doesn't, is like in mobile phones keep the web in cache for many days, any hints? https://www.su-sana.com
  15. Solved, it happened after moving to a new server with PHP 7.0 apt-get install php7.0-gd
  16. I get the following error trying to upload images, any idea, thanks. 2018-04-19 08:49:34 manol ... Error: Uncaught Error: Call to a member function getConfigData() on null in /home.../wire/core/Pageimage.php:486 Stack trace: #0
  17. Hello. I'm developing a cooking recipes website, people subscribe to it to get daily recipes. What would be the best way to send emails to them using fields and images from a template and most important that those email can be opened from a mobile device and most email clients and see it correctly. Thanks.
  18. <?php $pdf = $modules->get('WirePDF'); $pdf->pageFormat = 'A4'; $pdf->bottomMargin = 10; $mpdf = $pdf->mpdf; $mpdf->AddPageByArray(array( 'orientation' => 'L', 'mgl' => '50', 'mgr' => '50', 'mgt' => '50', 'mgb' => '50', 'mgh' => '10', 'mgf' => '10', )); ?> Still not getting the margin within header and body, not sure if I've defined it the right way
  19. Does anybody know how to solve with Pages2Pdf second page content top margin?, I attach an image so you can see that the paragraph hasn't got any padding or margin although is set.
  20. That look very promising I'll give it a try
  21. Hello forum. I've about 10000 vehicles to filter in a table in the frontend with about 10 fields, c3, title, image, km, date, axes, url ... in the past I did something similar with angular but probably there are to many items to filter with this technology. It will be a kind of excel table with filters. What do you think? is it better to filter them in php with pw api or angular would be better, any other ideas? Thanks.
×
×
  • Create New...