Jump to content

matjazp

Members
  • Posts

    621
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by matjazp

  1. Those hover dropdowns bothers me too. I use desktop browser and sometimes my hand shakes and can't move my mouse with enough precision. When you hover over top level menu, the second level menu is opened and if you happen to move your mouse outside of the menu area, the menu closes. So I usually just click on Pages, Setup, Modules.
  2. I worked on this too. Attached is my modified admin theme I posted somewhere on the forum, but this version is bit modified, I tried to fix some focus issues... admin.less
  3. I don't remember if I fixed that or not, but the module will perform update when you edit a page that has CI field.
  4. "data-phc" attribute is missing on body tag. Are you sure you have body at all?
  5. More fun (can't upload animated gif) with style switcher... style-switcher.mp4
  6. And perhaps an option for each user to select it's own skin/style/theme (whatever it's named) in his profile...
  7. I had some fun too. Created another theme/style based on default reno style but tried to add more contrast (WCAG AA). It's also more in blue tones (but I kept PW pinky color) to match our website color theme. There are also some other tweaks. admin.less
  8. Note that rename() will not rename variations... you should track changes on basename: $p->singleImage->trackChange("basename"); $image->removeVariations(); $image->rename($newFilename); $p->save("singleImage"); https://processwire.com/talk/topic/4299-how-to-rename-a-file-properly/?do=findComment&comment=42213
  9. Thank you (and Ryan) for your work on AdminThemeUikit. What I'm missing is an option to select between styles quickly. I was expecting something like this: I create a folder /site/modules/AdminThemUikit/styles/ and copy many different less files. The core AdminThemeUikit would then scan for this folder and allow me to choose between them in the module settings, similar to what we have in AdminThemeDefault, where we can select different Color Sets (classic, Warm, Modern, Futura).
  10. The problem is in your system, it's missing utf8 locale. 'locale -a' in the terminal window will tell you what are available locales. If the problem would be benign, as you think, then PW would not warn you about it.
  11. $items = $pages->find("id>1"); $home = $pages->get("id=1"); $customPaginatedArray = new PaginatedArray; foreach ($items as $item) : if ($item->parent == $home) : $customPaginatedArray->add($item); endif; endforeach; // should return an array of pages that are direct children of the homepage $limit = 10; $start = ($input->pageNum-1)*$limit; $total = $customPaginatedArray->count(); foreach ($customPaginatedArray->filter("limit=$limit, start=$start") as $c) : echo $c->title . '<br>'; endforeach; $customPaginatedArray->setStart($start); $customPaginatedArray->setLimit($limit); $customPaginatedArray->setTotal($total); echo $customPaginatedArray->renderPager();
  12. $limit = 6; $items = $pages->find("template=basic-page, limit=$limit, body!=''"); //alternative /* $decider = "body"; $items = $pages->find("template=basic-page, limit=5); foreach($items as $item) { if($item->$decider != '') $items->remove($item); } */ $start = $items->getStart() + 1; $end = $start + count($items) - 1; $total = $items->getTotal(); if($total) echo sprintf(__('%1$s %2$d to %3$d out of %4$d'), "Showing items ", $start, $end, $total)."<br><br>"; foreach($items as $item) echo $item->title . "<br>"; echo "<br>"; if ($items->getLimit() < $total) echo $items->renderPager();
  13. //$page->imge is PageImages with the total of 38 files $object = $page->imge; //total number of items, in this case total number of files in Images field $totalItems = count($object); //number of items to display per page $itemsPerPage = 5; //current page number, starting with 1, if no page specified, it defaults to 1 $pageNum = $input->pageNum; //start item, depending on the current page number $startItem = ($pageNum - 1) * $itemsPerPage; //current items $items = $object->slice($startItem, $itemsPerPage); //debug info echo "totalItems=" . $totalItems . "<br>"; echo "itemsPerPage=" . $itemsPerPage . "<br>"; echo "pageNum=" . $pageNum . "<br>"; echo "startItem=" . $startItem . "<br>"; echo "<br>"; //show info $start = $startItem + 1; $end = $start + count($items) - 1; $total = $totalItems; echo sprintf(__('%1$s %2$d to %3$d out of %4$d'), "Showing items ", $start, $end, $total); echo "<br><br>"; //render items foreach($items as $item) { echo $item->name . "<br>"; } echo "<br>"; //create a new pageArray to give MarkupPagerNav what it needs $a = new PageArray(); //tell the PageArray details it needs for pagination $a->setTotal($totalItems); $a->setLimit($itemsPerPage); $a->setStart($startItem); //show pager echo $a->renderPager(array('nextItemLabel' => ">",'previousItemLabel' => "<"));
  14. I use pagearray not paginatedarray
  15. I'm stil curious what is the output of 'locale -a' in the terminal window.
  16. Not tested, written in browser... $allcasts = $pages->find("template=cast, has_parent=$page, sort=$sort"); $casts = sortOutEmpty($allcasts, $decider); $limit = 6; $start = $limit * ($input->pageNum() - 1); $total = count($casts); $casts->setTotal($total); $casts->setLimit($limit); $casts->setStart($start); echo $casts->renderPager(); function sortOutEmpty($items, $decider) { $out = new PageArray(); foreach ($items as $item) : if ($item->$decider != '') : $out->add($item); endif; endforeach; return $out; }
  17. https://processwire.com/talk/topic/15691-warning-about-server-locale-after-update-from-3052-3053-help/?do=findComment&comment=141242
  18. Can you comment $(adminIframe).css('visibility', 'hidden'); so that popup is visible immediately, maybe there will be some clue? Any JavaScript errors in the console? Can you test on some other page, perhaps with just title field and with default options?
  19. Then you'll have to debug the javascript and figure why there is no form. Use Chrome dev tools and set a breakpoint at line 185, and examine iframeContent and editForm. FEEL is looking for a form element with the name of ProcessPageEdit or ProcessTemplateEdit. If there is no form or no iframeContent, the modal won't load. I just tried on latest PW dev and FEEL works, iframeContent.length is 1 and editForm.length is 1.
  20. I think tpr is not following this forum anymore and I forgot why we have this check... Try commenting the hook in .module file or adjust .js
  21. Thanks Pete. Is it somehow possible to try this app?
  22. Hey, the forum looks great! I love some fresh colours. However, it's one tiny thing that bothers me. I was used to browse the forum with javascript disabled, especially on the mobile. This has some drawbacks, but the page is loaded faster and, most importantly (for me), was that I could see the complete lists of last posts, without any text cut off, at a glance. In the previous forum version, text cut off was made with javascript, and now it's done on the server-side.
  23. What about $this->wire('apivar') in regards to hops?
  24. I think it's safe but check on dev installation first. I'm still using the old version on my few websites, with just a few fixes (although not sure which ones) - don't fix if ain't broken mantra :-). A colleague is running the new version, but he isn't using minimizing js/css functions; he uses just caching operations, no problems in last 2 months. But he just informed me that when he access the module settings in admin, it takes a long time to see the settings - I never had any problems, will report back if he finds what could be the problem.
  25. @MilenKo you should report this to the proper module support thread: https://processwire.com/talk/topic/25339-processfilemanager/
×
×
  • Create New...