We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9995
    • 1,613 Posts
    I need a gallery where I can add title and description on the image in 2 different languages.
    Is this possible with evogallery or can I use multiTV or is there anything else possible ?

      Evolution user, I like the back-end speed and simplicity smiley
      • 3109 ☆ A M B ☆
      • 894 Posts
      I was going to say MIGX but then saw this was Evo, sorry can't help there :-/
        Benjamin Marte
        Interactive Media Developer
        Follow Me on Twitter | Visit my site | Learn MODX
        • 9995
        • 1,613 Posts
        I think its doable with multiTV, testing it atm.
          Evolution user, I like the back-end speed and simplicity smiley
          • 13428 ☆ A M B ☆
          • 1,031 Posts
          It is doable with multiTV.

          Example (without image)
          <?php
          $settings['display'] = 'vertical';
          $settings['fields'] = array(
          
          	'line_de' => array(
          		'caption' => 'Zeile Deutsch',
          		'type' => 'text'
          	),
          	'line_en' => array(
          		'caption' => 'Zeile Englisch',
          		'type' => 'text'
          	),
              'line_fr' => array(
          		'caption' => 'Zeile Französisch',
          		'type' => 'text'
          	)
          );
          $settings['templates-de'] = array(
          	'outerTpl' => '[+wrapper+]',
          	'rowTpl' => '<p><span>[+line_de+]</span></p>'
          );
          $settings['templates-en'] = array(
          	'outerTpl' => '[+wrapper+]',
          	'rowTpl' => '<p><span>[+line_en+]</span></p>'
          );
          $settings['templates-fr'] = array(
          	'outerTpl' => '[+wrapper+]',
          	'rowTpl' => '<p><span>[+line_fr+]</span></p'
          );
          $settings['configuration'] = array(
          	'enablePaste' => TRUE,
          	'enableClear' => TRUE,
          	'csvseparator' => ','
          );
          ?>


          You have to call it like this:
          [[multiTV? &tvName=`teaser` &display=`all` &tplConfig=`-(yams_id)`]]
            • 9995
            • 1,613 Posts
            Thanks for the example!
              Evolution user, I like the back-end speed and simplicity smiley
              • 9995
              • 1,613 Posts
              Took some time to test but I give up. I tried allot of ways to do it.
              Back-end there are some errors, I really don't know whats going on.

              (yams-select:0)(lang:0:en)

              I just can't imagine nobody did a YAMS site with multiTV?
              I'll find a other way to do it lipsrsealed
                Evolution user, I like the back-end speed and simplicity smiley
                • 13428 ☆ A M B ☆
                • 1,031 Posts
                https://github.com/Jako/multiTV#installation

                (5. If you want to use multiTV with YAMS you have to patch yams.plugin.inc.php according to the instructions on https://github.com/Jako/multiTV/issues/9#issuecomment-6992127)
                  • 9995
                  • 1,613 Posts
                  ok will try again
                    Evolution user, I like the back-end speed and simplicity smiley
                    • 9995
                    • 1,613 Posts
                    Thanks that works for the error indeed.

                    I don't want to upload all images 2x, so I used a config with: image, subtitle-nl and subtitle-en.
                    Now I need to find out a way to show only the EN subtitle when i'm on the EN page, and show the NL subtitle when i'm on the NL page.

                    There is a way to use CSS and hide the "wrong" language subtitle so it's ok but it's not that clean sad
                    <body class="lang-[[YAMS? &get=`text` &from=`en::en||nl::nl`]]">

                    CSS:
                    body.lang-nl .subtitle-en{display:none;}
                      Evolution user, I like the back-end speed and simplicity smiley
                      • 9995
                      • 1,613 Posts
                      Just a notice:

                      I usually hide TV's with the mm_rules, its not possible for multiTV

                      if($id == 1){
                      mm_hideFields('my-TV-here');
                      }
                        Evolution user, I like the back-end speed and simplicity smiley