We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26486
    • 63 Posts
    Как реализовать такую конструкцию PHx с помощью PHP (Сниппета)?

    [+phx:mo=`myWebgroup`:then=`{{чанки}}`:else=``+]
      • 26486
      • 63 Posts
      <?php
      $authorizedGroups=array("users");
      if($modx->isMemberOfWebGroup($authorizedGroups)) return $modx->getChunk(’qqq’); else return ’Login’;
      ?>


      Вопрос снят.