-
Posts
292 -
Joined
-
Last visited
Posts posted by Manol
-
-
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);
-
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
-
I created a new field and you're right it works, I'll check it thoroughly, many thanks.
- 1
-
Thanks flydev, is not the case, but give this module a try it opens up a new world.
-
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.
-
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.
-
22 minutes ago, Autofahrn said:
Try this:
$test = $page->protabla->makeBlankItem(); // getNew(); is wrong, allocation done by makeBlankItem() $page->of(false); // always a good idea $test->name = date('D, d M Y H:i:s'); $test->notes = 'my note'; // $test->save(); // not required $page->protabla->add($test); $page->save('protabla'); // only save that field $page->of(true);
functional test code (with delayed output) here:
<?php namespace ProcessWire; $test = $page->protabla->makeBlankItem(); $page->of(false); // always a good idea $test->name = date('D, d M Y H:i:s'); $test->notes = 'my note'; $page->protabla->add($test); $page->save('protabla'); // only save that field $page->of(true); $content = "<h4>{$page->title}</h4>"; $content .= "<table>"; foreach($page->protabla as $pt) { $content .= "<tr><td>{$pt->name}</td><td>{$pt->notes}</td></tr>"; } $content .= "</table>";
Edit: Maybe this should be moved to the ProFields Table support forum.
Awesome!!
-
$test->save();
-
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
-
done thanks!
-
$p->of(false);
-
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?
-
Solved, it happened after moving to a new server with PHP 7.0
apt-get install php7.0-gd
- 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
-
-
4 hours ago, bernhard said:
you could do that quite easily using jquery datatables: https://datatables.net/extensions/scroller/examples/initialisation/large_js_source.html
in the example they have 50.000 records without a problem. i'm working on a new datatables fieldtype right now. do you need it for the front or backend?
maybe you can get some inspiration here, but be advised that i'm working on a new version (fieldtype similar to my handsontable fieldtype) and this module will change completely
edit: of course server-side would be better and client-side depends on the clients machine. so if you have special requirements that could or could not be a good way to go...
That look very promising I'll give it a try
- 1
-
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.
Profields Table DateTime
in General Support
Posted
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.