Jump to content

Entil`zha

Members
  • Posts

    29
  • Joined

  • Last visited

Everything posted by Entil`zha

  1. Hi, And thx for a quick reply. I've manage to accomplish what I wanted with following code: <?php namespace ProcessWire; if( $pagegrid->isBackend() ) { // render things only for the backend $content = ""; $content .= $pagegrid->styles($page); } else { // render things only for the frontend $content = ""; } $content .= "Example content"; if( $pagegrid->isBackend() ) { // render things only for the backend $content .= $pagegrid->scripts($page); echo $content; die; } Thank @jploch for pointing me to right direction :)
  2. Hi, First of all, great work @jploch! I'm testing pagegrid to integrate it to site with custom theme. By custom theme I mean that the site's appearance is already built manually. So I would like to use PAGEGRID to give users an easy way to handle content in the page. I've now installed PAGEGRID and configured it. But the problem is that when I edit the page with PAGEGRID it also load the manually built appearance. The page is built using append and prepend files. Any ideas how to do this correctly?
  3. Thank you @bernhard for the quick reply, and solving the problem. I was so into reading those instructions that I forgot to use my own brains for thinking :D Maybe you can add requirements-section in case there's another like me :)
  4. Hi, I've now tried couple times to do fresh installation and I'm having problems to get RockPageBuilder working. I'm using PHP 8.1 and running test enviroment in Ubuntu 22 under WSL. I'm using .local website address. I've tried to follow the instructions from https://www.baumrock.com/en/processwire/modules/rockpagebuilder/docs/setup/ but after the installations, rockpagebuilder profile install and uikit download I got following: This wouldn't be a problem but when click the +-button it doesn't open modal, instead it open admin page: So it's pretty hard to use. Also I noticed that after installing profile rockpagebuilder it didn't replace home.php and basic-page.php so I added manually <?= $rockpagebuilder->render(true) ?>. But what differences from the instructions I didn't have to add those required fields to template because they were already in there. Any ideas how to get modal working?
  5. You can probably find the executable file from /home/<username>/.config/composer/vendor/bin -folder so running /home/<username>/.config/composer/vendor/bin/wirecli should work. If you want to use it without the path you should add that path to your shell $PATH-variable.
  6. I've managed to resolve this with $session->removeAllFor('message') but I think that this should be done already with 'clear'.
  7. Hi, For some reason when I try to read and clear messages or errors in template I'll get the messages but they won't clear and will show after next page load. I following code in my head.inc which is included in every template. $messages = $wire->messages('clear all'); foreach ($messages as $m) { echo '<div class="alert alert-success alert-dismissible" role="alert">'; echo '<p class="badge badge-pill badge-success">OK</p> ' . $m->text; echo '<button type="button" class="close" data-dismiss="alert" aria-label="Close">'; echo '<span aria-hidden="true">&times;</span>'; echo '</button>'; echo '</div>'; } I'll get all the messages but they don't get cleared. Only way to clear messages is to load page from admin area.
  8. Hi, A bit delayed answer and maybe you have already solved this but for others. There's always Azure AD behind Office 365 tenant and if you have global administrator privilege you can log in to https://portal.azure.com. I'm only tested integration to Azure with custom PHP code but I don't remember did I have to create app or did I manage to use MS REST API without that. I was just playing around Exchange Online then.
  9. Hi @kongondo, When are you planning to launch this to public? We have a small web shop project coming so I would like to think this as one option but it must be done in July.
  10. Hi Jennifer, If you're are referring to Redirects-module(from apeisa) you should post to this thread. That way the maintainer can see your request and comment it.
  11. Hi, Could someone help me InputfieldPage. I'm creating a custom admin module and I want to create form that has one Page reference field. I've managed to create the field but when loading the page it gives me error that this field hasn't been configured. Basically it's a ghost field that doesn't exist but I also tested to create and configure field with same name but no help. So if someone could help me how to specify necessary information for field and also how to show selected pages. Here's code: $form = $this->modules->get('InputfieldForm'); $form->action = "{$this->page->url}savegroup?id={$g->id}"; $form->method = "post"; $field = $this->modules->get("InputfieldText"); $field->name = "groupname"; $field->label = __("Ryhmän nimi"); if ($g->groupname) { $field->value = $g->groupname; } $form->add($field); $field = $this->modules->get("InputfieldPage"); $field->name = "members"; $field->label = __("Members"); $form->add($field);
  12. Hi HMCB, Lates pre-release is from 4/2017. i think this thread is quit because all the talking regarding to this module is done inside module support group where you can get access after purchasing the module. Ofc apeisa could put some updates here also for advertising purposes. As for my own experience the module works fine, we have use it for our shop and it offers everything we need.
  13. Actually both methods will run automatically, there's already another module for executing cron via webvisitors (Lazycron or something like that). So both methods will run automatically depending how task is defined at crontab (etc. /etc/crontab), the lazy option is targeted for users who just need to run some basic tasks and the pro option is targeted for users who want to do more. I'm gonna write a better instructions but it's still on todo
  14. Yes, we just forget to put tap in place.
  15. Hi, We made a little help tool for implementing cron to processwire. Basically the module has two options to run module methods under cron: Lazy method: Just add simple config line to configuration field where you specify module, method and time delay Pro method: Just hook to our method and do everything you want Getting started should be relative easy, just install module and add line to configuration field (MyModule;MyMethdo;+10 minute). Delay accepts strtotime formats. http://modules.processwire.com/modules/pwcron/
  16. Can someone point me to the right direction with taxes. I've created tax classes but I can't find a way to print prices with taxes? Should I just count them by myself or is there allready a way to do that?
  17. Ok, good to know. It would be nice to have feature to submit new site there, and also somekind of finnish documentation could be useful.
  18. Hi, Does anyone know what has happened processwire.fi domain? It's owned by Avoine Oy so apeisa might know? It would be create to see it up and running for showcase to finnish customers, and maybe others too. If there's a hosting problem with that our company can sponsor platform. I can also help develop the site, just let me know.
  19. Hi, I've just started to test my dev site with php 5.6. When trying to download new modules via modules manager I got error: PHP message: PHP Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in /usr/local/www/wwwroot/mysite/site/modules/ModulesManager/ModulesManager.module on line 736 PHP message: PHP Warning: file_get_contents(): Failed to enable crypto in /usr/local/www/wwwroot/mysite/site/modules/ModulesManager/ModulesManager.module on line 736 PHP message: PHP Warning: file_get_contents(https://github.com/apeisa/Thumbnails/zipball/master): failed to open stream: operation failed in /usr/local/www/wwwroot/mysite/site/modules/ModulesManager/ModulesManager.module on line 736 So I changed: $context = stream_context_create(array('http' => $options)); to $context = stream_context_create(array( 'http' => $options, "ssl" => array( "verify_peer"=>false, "verify_peer_name"=>false, ), )); and now it works. I didn't have time to see is openssl changed in php 5.6.
  20. Maybe you could check if there's something in MySQL logs. Also if you don't have slow query log enabled it could help you identify problem. I use Zend Server's Z-ray for debuging and development because there's a great feature that tracks every query made on page, in dev server ofc. So that might also help you to identify the problem.
  21. Hi Alan, What does that URL do? MySQL has join limit set to 61 tables, at least from version 4, so sounds like you page is trying to do some greater join.
  22. I've just tested these with 2.5 and everything is running nice and smooth.
  23. Hi, I'm doing admin module where I use ajax and I have big problems rendering messages.. I've tried $this->message('message') but it only return me json. So is there a way to manually render error/notice messages?
  24. Hi Steve, I'm currently working that part so at this point it's not working yet but probably after this weekend I'll add functionally to add/delete pages.
  25. Hi, I've started to build module for managing pages like mindmap style. The idea come from project that had lots of static pages and after the first 50 I was frustrated . At this point module is on pre-pre-pre-alpha state but because it's my first admin module I though it would be wise to let you all see the progress so you can correct me if I'm starting to going the wrong way. Features in todo: Mindmap style presentation of pages Ajax driven page adding so that maps is synced with pages Somekind of toolbar for changing page properties trough ajax, what it holds inside I don't know yet Any recommendations you give me EDIT: thx kongondo -> link https://github.com/jkolkka/PagesMapManager
×
×
  • Create New...