-
Posts
55 -
Joined
-
Last visited
Everything posted by Christian
-
Did you already disabled the Admin Theme on the core? I think you must need to disable it to take effect
-
Fixed. I just have to add curly braces. foreach( $page->fields as $field ) { if( ! in_array($field->type, $ignore_field_type) ) { $field_name = $field->name; $revise_page->{$field_name} = $page->get($field->name); } } I just changed the field name to dynamic so you might just enclosed static field name to curly braces.
-
Fixed. Just have to add curly braces. foreach( $page->fields as $field ) { if( ! in_array($field->type, $ignore_field_type) ) { $field_name = $field->name; $revise_page->{$field_name} = $page->get($field->name); } }
- 1 reply
-
- 1
-
Hi! I have a problem dealing with dynamic saving of content on API. I never encounter any problem when I save a page when static so there is no problem on fetching a new data. Dynamic field name that is not working. foreach( $page->fields as $field ) { if( ! in_array($field->type, $ignore_field_type) ) { $field_name = $field->name; $revise_page->$field_name = $page->get($field->name); } } Static field name that is working. $revise_page->site_metadata = $page->get("site_metadata"); $revise_page->body = $page->get("body");
-
I'm in a process of saving a multi lingual site. The problem is, it only save on the default language of the user. And not the other language. Code: public function hookSave(HookEvent $event) { // GET PAGE DATA $page = $event->arguments[0]; // CHECK IF PAGE USE PAGE REVISIONS TEMPLATE $children = $page->children("template=pending-revisions"); if( count($children) != 0 ) { $p = new Page(); $p->template = 'home'; $p->parent = wire('pages')->get($children[0]->path()); $p->title = 'Sample Revise'; $p->name = 'Sample Revise'; $p->site_meta_description = 'Sample Revise'; $p->site_headline = 'Sample Revise'; $p->site_sub_headline = 'Sample Revise'; $p->body = 'Sample Revise'; $p->save(); } // die(); }
-
Hi, is page-publish permission still working on current version? I already do what on the instruction but the permission to edit not working.
-
Thanks Fixed!
-
I'm currently on the process of developing multi langage support when I enabled MultiLanguageField module the an error occured (see the screenshot).
-
Is PW capable of uploading already uploaded image on image field? Just like like a feature that editor using.
-
Thanks! It works This is just the structure that our architect want to attain. They want the logic to be in Phalcon framework and some CMF will handle the content.
-
Our web application is restructuring that will seperate content (PW CMF) and logic (PHP Framework), PW will use to manage content easily. Is it possible to get the page data and put it on other PHP Framework?
-
Correct Question, Does the current lister only capable of filtering template? And not content of my modified changes? I put ProcessPageLister on the process and admin on the template. Is this the correct settings?
-
Ok, I already found it! I didn't check the show new module that's why it's not appearing. Lesson learned
-
Image successfully shown! My problem is I didn't check the module so it's not shown on the module list. Such a dumb mistake Thanks Adrian!
-
Hi! This is weird. I already using the latest dev release but I don't see any column tab on users.
-
Yup I already do what Horst (Thanks) instructed on my custom template but I can't do this on the user list.
-
Do I need to downgrade to version 2.4.4 to do achieve the same behavior like on the video?
-
Hi Arian, I'm not trying to put any custom template with this. I just defined picture field on my user and add some field on my table and it only display image name on /access/users/. Do I need to define or override a processwire template to do this?
-
Hi! Any ideas how to display image on user listing? It only display filename of the image.
-
Thank's for your reply I already found a theme that can be a base that can use as a core. I will discuss this matter on the one who will design the admin theme if they still want to start it from scratch
-
I still don't find it there. I already posted a question on the module's area. Waiting for the reply
-
Is Lister available on 2.4.6? I can't find this module there.
-
That module is awesome! One problem, I used ProcessWire 2.4.6 but I can't find it.
-
Hi! On Drupal there is module called View to generate table like result on a page. Is there any module on processwire that has same functionality. What I want to do is, to have a new menu item on admin module where all item are viewable there and the can also add, edit delete.