We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 43810
    • 62 Posts
    Возможно ли с Gallery в Revolution сделать так, как делается с EvoGallery в Evolution:

    К каждой странице добавляется закладка EvoGallery, так что не надо ходить Модули --> EvoGallery --> [галерея на нужной странице]. А прямо при редактировании ресурса можно тут же зайти на вкладку EvoGallery и добавить или удалить (или еще что-то) картинки.

    Из rtfm.modx.com описание по EvoGallery:

    Since EvoGallery 1.1 in the distribution is an optional widget for the ManagerManager plugin that allows you to create a tab within document editing page

    mm_widget_evogallery($moduleid, $title, $roles, $templates);


    • $moduleid is a custom variable specific to this function. It tells the function what module ID to use. To find out the ID of a module, simply copy the link to the module in the main menu. The ID will be part of the URL itself. E.g.: /manager/index.php?a=112&id=2. In this case, the $moduleid is 2.

    • $title is display name of tab.

    • $roles should be replaced with the IDs of the roles that should be affected or left empty to apply the rule to all roles.

    • $templates contains the IDs of templates to apply the rule to, or can be left empty to apply to all templates.

    http://rtfm.modx.com/extras/evo/evogallery
      • 41633
      • 13 Posts
      Насколько мне известно сделать то, что вы хотите, с помощью Gallery нельзя.
      Посмотрите эту статью https://www.markhamstra.com/modx/2012/04/managing-galleries-with-migx, возможно она вам поможет.
        • 49912
        • 23 Posts
        Если modx выше версии 2.3 то есть компонент msGallery
        Если версия 2.2, то - http://www.freelgraf.in.ua/blog/modx-revo/upravlenie-albomom-galerei-na-stranicze-resursa/
          • 49529
          • 196 Posts
          В Рево такой функционал действительно проще всего сделать через MIGX, как советует eugen.t
            • 49529
            • 196 Posts
            Моя заготовка для галерей на MIGX TV:

            вкладки формы:
            [
            {"caption": "Изображение", "fields": [
            {"field":"image","caption":"Изображение","inputTVtype":"image"}
            ]
            }
            ]
            


            Разметка колонок:
            [
            {"header": "Изображение", "width": "160", "sortable": "true", "dataIndex":"image","renderer": "this.renderImage"}
            ]
            

            Пользуюсь постоянно, в принципе удобно.
              • 49912
              • 23 Posts
              через MIGX по одной картинке выбирать, такое себе удовольствие)
                • 49529
                • 196 Posts