-
Posts
292 -
Joined
-
Last visited
Everything posted by Manol
-
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.
-
Same result with time() 2018-05-31 00:00
-
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.
-
Is a form with several fields that is populated via vuejs, and just need a submit button to show up.
-
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);
-
Module Module: RuntimeMarkup Fieldtype & Inputfield
Manol replied to kongondo's topic in Modules/Plugins
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 -
Module Module: RuntimeMarkup Fieldtype & Inputfield
Manol replied to kongondo's topic in Modules/Plugins
I created a new field and you're right it works, I'll check it thoroughly, many thanks. -
Module Module: RuntimeMarkup Fieldtype & Inputfield
Manol replied to kongondo's topic in Modules/Plugins
Thanks flydev, is not the case, but give this module a try it opens up a new world. -
Module Module: RuntimeMarkup Fieldtype & Inputfield
Manol replied to kongondo's topic in Modules/Plugins
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. -
Module Module: RuntimeMarkup Fieldtype & Inputfield
Manol replied to kongondo's topic in Modules/Plugins
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. -
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)
-
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
-
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.
-
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
-
Solved, it happened after moving to a new server with PHP 7.0 apt-get install php7.0-gd
- 1 reply
-
- 1
-
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
-
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.
-
<?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
-
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.
-
That look very promising I'll give it a try
-
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.