Jump to content

Christian

Members
  • Posts

    55
  • Joined

  • Last visited

Everything posted by Christian

  1. Did you already disabled the Admin Theme on the core? I think you must need to disable it to take effect
  2. 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.
  3. 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); } }
  4. 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");
  5. 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(); }
  6. Hi, is page-publish permission still working on current version? I already do what on the instruction but the permission to edit not working.
  7. We currently setting a multi site function on our website. Everything went fine except on saving a page with multi language page. The error state that the max excutuion time exceeds. It's a dev repo by the way We plan to use the stable one after testing.
  8. I'm currently on the process of developing multi langage support when I enabled MultiLanguageField module the an error occured (see the screenshot).
  9. Is PW capable of uploading already uploaded image on image field? Just like like a feature that editor using.
  10. 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.
  11. 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?
  12. 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?
  13. Ok, I already found it! I didn't check the show new module that's why it's not appearing. Lesson learned
  14. 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!
  15. Hi! This is weird. I already using the latest dev release but I don't see any column tab on users.
  16. Yup I already do what Horst (Thanks) instructed on my custom template but I can't do this on the user list.
  17. Christian

    Lister

    Do I need to downgrade to version 2.4.4 to do achieve the same behavior like on the video?
  18. 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?
  19. Hi! Any ideas how to display image on user listing? It only display filename of the image.
  20. 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
  21. I still don't find it there. I already posted a question on the module's area. Waiting for the reply
  22. Christian

    Lister

    Is Lister available on 2.4.6? I can't find this module there.
  23. That module is awesome! One problem, I used ProcessWire 2.4.6 but I can't find it.
  24. 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.
×
×
  • Create New...