We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4036
    • 239 Posts
    Здравствуйте!

    Возникла необходимость вызвать галерею два раза на странице.
    Один вызов должен показать одну папку (с интерьерами).
    А второй папку с образцами продукции.
    Как здесь http://www.jaluze.ru/vertikalnye-zhaljuzi/vertikalnyetkanzhaljuzi/

    Воспользовавшись наработкой Andchir’а http://wdevblog.net.ru/raznoe/easy_2_gallery__udobnaya.html сделала 2 выпадающий списка, чтобы было удобно прикреплять галереи.

    В шаблоне прописала
    [+phx:if=`[*gallery*]`:gt=`1`:then=`[!easy2? &gid=`[*gallery*]`!]`+]
    Образцы: <br />
    [+phx:if=`[*gallery*]`:gt=`1`:then=`[!easy2? &gid=`[*gallery*]`!]`+]


    Поступила как тупой юзер, ибо не знаю, как сделать правильно.

    Но это не срабатывает.
    Вернее выводится 2 раза одна и та же папка с фотографиями.

    Помогите пожалуйста, образцов продукции дико много.
    Создавать под каждый образец отдельную страницу и выводить из через Ditto я замучаюсь.
    Ведь к каждому образцу нужно будет и 2 картинки создать, большую и маленькую.

    Помогите, пожалуйста!
      Портфолио - http://wowstudio.pro
      • 29487
      • 385 Posts
      Bredova
      Если два списка, то и TV должно быть два? [*gallery*] и [*gallery2*]
        • 4036
        • 239 Posts
        Quote from: Temus at Oct 28, 2010, 06:05 AM

        Bredova
        Если два списка, то и TV должно быть два? [*gallery*] и [*gallery2*]

        Я же говорю, я тупой юзер... undecided
        Млин, это же элементарно.
        Спасибо!
          Портфолио - http://wowstudio.pro
          • 6348
          • 90 Posts
          Quote from: goldsky at Oct 14, 2010, 06:16 AM

          Quote from: daima at Oct 14, 2010, 05:53 AM

          пишу так: $modx->runSnippet(’easy2:cat_alias’, array(’gid’=>$galery)) - после этого галерея перестает показываться. Так - $modx->runSnippet(’easy2:cat_alias’, array(’gid’=>$galery)) работает
          eh?
          what is wrapper snippet?

          EDIT:
          This is how I use that for my own snippet.
          The variables are provided by another function.
          <?php
          $easy2pictures = $modx->runSnippet("easy2", array(
                      "gid" => $docalbumid[$docid]
                      , "customgetparams" => '&docid=' . $docid . '&type=' . $type
                  ));
          echo $easy2pictures;
          

          Where in this example to add property "cat_alias"?
            • 30038
            • 8 Posts
            Почему то в шаблоне галереи не работает плейсхолдер [+easy2:title+] embarrassed .
              • 7708
              • 9 Posts
              что означают иконки - со знаком восклицания? (при этом нет просмотра..)
                • 11055 ☆ A M B ☆
                • 3,112 Posts
                Quote from: Nagual at Oct 26, 2010, 01:45 PM

                Эта галерея только для Evolution?
                Yes

                Quote from: timophey at Oct 26, 2010, 03:43 PM

                Не подскажите в чем проблема: у меня Previous/Up/Next Navigation работает только для первых трех папок. Когда переходишь на четвертую, она пропадает.
                There is a slightly bug on e2g.snippet.class.php, line 3258
                <?php
                // change this
                for ($i = 0; $i < count($siblings); $i++) {
                // to be like this
                for ($i = 0; $i <= count($siblings); $i++) {
                


                Quote from: Grandex at Oct 27, 2010, 10:20 AM

                Проблемка такая, загружаю фотку 4мб а он пишет что невозможно загрузить такого размера, где убрать это ограничение??? нельзя фото более 1,5 мб загружать подскажите плиз
                Try @grabenfub’s solution.

                Quote from: daima at Oct 28, 2010, 10:14 AM

                Where in this example to add property "cat_alias"?
                What for?
                The parameters (like &gid and others) are all the snippet call parameters that you give.
                "cat_alias" is what you’ll get.
                You can not set it inside that $customgetparams.

                Here is the live example of connecting E2G to my other custom module+snippet. smiley
                I placed it inside a method, which integrate between a document page to its image folder.
                So the implementation is not by calling the E2G, but that custom snippet.
                E2G only runs as a background, not as a snippet call.
                Try to browse, click on the Archive pictures link if it’s available, then you’ll be redirected to a landingpage, and you’ll notice the changing in the address bar.
                Try also the "Next" and "Previous" document, or even the "Jump" text field.

                So, the &docid parameter is NOT the &gid.
                The &gid is stored inside another database (eg: docalbumid field), and is called as "gid" => $docalbumid[$docid]

                Quote from: timophey at Oct 28, 2010, 02:46 PM

                Почему то в шаблоне галереи не работает плейсхолдер [+easy2:title+] embarrassed .
                It uses folder’s Alias or folder’s Name

                $l[’title’] = ( $l[’cat_alias’] != ’’ ? $l[’cat_alias’] : $l[’cat_name’] );

                Quote from: doc555 at Oct 28, 2010, 03:24 PM

                что означают иконки - со знаком восклицания? (при этом нет просмотра..)
                what?
                  Rico
                  Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
                  MODx is great, but knowing how to use it well makes it perfect!

                  www.virtudraft.com

                  Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

                  Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

                  Maintainter/contributor of Babel

                  Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.
                  • 7571
                  • 135 Posts
                  Все здравствуйте.
                  До сих пор не пойму, как в галерею добавить кнопку "Назад"
                  Вставляю на страницу с галереей: [+easy2:back+], нечего не появляется. Добавляю в вызов галереи: &back_class=`e2gback`, тоже нечего не появляется.
                  Как же вывести кнопку "Назад"?
                    • 11055 ☆ A M B ☆
                    • 3,112 Posts
                    That ’back’ link is shown with only 1 condition: not the root gallery (&gid=`1`), and not multiple &gid IDs.

                    • ROOT (1)
                      [list]
                      [li]child (2)
                    • child (3)
                      [list]
                      [li]grandchild (5)
                    • grandchild (6)
                    [/li]
                    [li]child (4)[/li]
                    [/list]
                    [/li]
                    [/list]
                    If your gallery structure like this, try &gid=`3`, and again, only 1 ID.

                    EDIT:

                    Found the bug:
                    Change
                    && (isset($staticTag) ? $staticTag == $tag : NULL)

                    To be
                    && ($staticTag == isset($staticTag) ? $tag : NULL)

                    About your PM, what is your snippet call?
                      Rico
                      Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
                      MODx is great, but knowing how to use it well makes it perfect!

                      www.virtudraft.com

                      Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

                      Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

                      Maintainter/contributor of Babel

                      Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.
                      • 7571
                      • 135 Posts
                      А как вывести описания изображения [+easy2:description+] для такой конструкции: [!easy2?gid=`6` &showonly=`images` &ecm=`0` !]?