Hi @wanze,
Slow in the admin to add a new field to a template, to move from one sector to anotherbetween templates, fields and other internal sections because I'm still in development and creating fields, assigning them to the templates.
I am on a local development server, with processwire 2.6.1
So I ask if any special configuration recommended for php, mysql or apache.
Thanks
I am developing a site of some 200 pages and I notice very slow, I wonder if there are any recommended especially for mysql configuration, guess who comes out there, because they are pages that have many fields.
The server is Intel Core Duo, 2GHz, 4GB RAM, and I've tested both on Windows and Linux, since it has dualboot.
Any recommendation?
Thanks
I am using the following code:
$new_pt = new Page();
$new_pt->parent = "/opt/";
$new_pt->template = "pt_template";
$new_pt->name = uniqid('pt-', true);
$new_pt->title = "Title ".time();
if ( $new_pt->save()) {
$page->of(false);
$page->pt_field->add($new_pt);
$page->save();
}
and it turns out I inserted 2 pages, and I can not know where the problem.
I'm using 2.6.1 PW
Could give me a help, where my error.
thanks
Hello,
I am wanting to hide the tree admin certain pages with a specific template, I tried to make a module, but I do not quite understand how to apply the hook
This is my code
public function init() {
$this->addHookAfter("ProcessPageListRender::getPageActions", $this, 'hookPageList1');
$this->addHookAfter("ProcessPageListRender::Execute", $this, 'hookPageList2');
}
public function hookPageList1(HookEvent $event) {
$page = $event->arguments[0];
if ( $page->template == "familiares" ) {
$actions = null;
$event->return = $actions;
}
}
public function hookPageList2(HookEvent $event) {
$page = $event->arguments[0];
if ( $page->template == "familiares" ) {
$event->return = false;
}
}
As I apply the hook?
Hello vxda,
Could you share how I stay with your facebook login module without changing the password?
I'm going through the same problem and I could not find resolve
thank you very much
Hi all,
I am listing a gallery of products and each product, there is the possibility of seeing a rapid or enter the product and see it in detail view.
I have the following structure
/products/product-a
and would like to pass on to the product in a segment to display quick view
/products/product-a/quick-view
There any way to use another template in runtime?
Thanks
Thank you for your prompt response,
The field allows a single value, I tried, with ID and the page "standard" and no, I need to filter by NULL or page ID