Jump to content

Roberts R

Members
  • Content Count

    38
  • Joined

  • Last visited

Community Reputation

8 Neutral

About Roberts R

  • Rank
    Jr. Member

Recent Profile Visitors

993 profile views
  1. Yea.... not sure. Issue went away without reason that I could tell. And now I can't reproduce it as well. Thanks for response regardless.
  2. if ($page->$field) { // do stuff } else { // skip } should do the trick. if you have some Pagearray fields then check if field is array and it has count() > 0 then do stuff
  3. I have simple page structure: category subcategory simple-product simple-product simple-product simple-product subcategory .... category2 so Im at category page and running $pages->find("template=simple-product, has_parent=$page, limit=8"); and it returns 0 pages but this returns 4 pages $pages->find("template=simple-product, has_parent=$page"); Can someone explain why limit does not work here? EDIT: So I did some tests and it seems that any limit=n where n is >= actual page count that is possible ... selector return 0 results.
  4. Roberts R

    pw.com

    Just to let you know. Link on homepage does not work.
  5. To use this with php7.2 you have to change list($unit, ) = each($units); $unit = key($units) in Number.php line 293. As "each" function is now DEPRECATED
  6. Ah this is what I can use when running Ajax (last part). Thank you as well.
  7. echo WireRenderFile('child', ['page' => $child]); Learnt something new. Thanks. Could not find it in Api reference. Or I don't know how to look for it.
  8. Ok let me try again. My config file : $config->useMarkupRegions = true; $config->prependTemplateFile = '_init.php'; $config->appendTemplateFile = '_main.php'; Child template in ./templates/child.php <div class="child"> <div class="image" style="background-image:url('<?=$page->backgroundImage->url?>')"></div> <div class="description"> <h3><?=$page->title?></h3> <p><?=$page->smallDescription?></p> <div class="price">CHF <?=$page->price?>.-</div> </div> </div> Hanna code : <?php foreach ($page->children('template=child') as $child) { echo $child->render(); } ?> parent template is just : <main pw-replace="main"> <?=$page->body?> </main> And question is how do render child without "_init.php" and "_main.php"?
  9. As im statring to use $config->useMarkupRegions = true; I'm starting to run in things I can't figure out. In body field I have hanna code inserted that renders some of children and children have template. When rendering children they include $config->prependTemplateFile = '_init.php'; $config->appendTemplateFile = '_main.php'; for all rendered children. Is there a way to render without them?
  10. Thanks. List for Latvian language.
  11. Can someone point me to the way how to fix title to name? so "ā" becomes "a" and so on. see attachment
  12. network error is the trigger. And sometimes its easy to trigger. Just got report from client that he have same issue. Opening any part on admin site in new tab fixes it. refreshing/logout does not. Is there a way to perm fix? Talking clients to use PW over WP was struggle ... this does not help as it happens when I present PW
  13. Got this issue again. Disabling uBlock did not help. This is just so random
  14. Firefox. No console output. It not like I put addon and then it stopped - only have addblocker. It just happened when I browsed admin panel at random time. Cleared history/cache. I can login with chrome - and it works fine. EDIT : I managed to fix it for me somehow : Video of issue. https://eroot.tinytake.com/sf/MjI5NTEyMl83MDQ2MzQz
  15. Does anyone have issues when sometimes PW does not load page tree? I have came across with all PW versions I have used. I can't open "Sākums". I try to refresh. There is no dropdowns from Setup/Modules/Access. EDIT: this didn't help : "To fix it i have to logout - but only from mobile version since User menu does not popout" Sadly I can't replicate it.
×
×
  • Create New...