We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22851
    • 805 Posts
    Quote from: Wild at Sep 05, 2009, 05:19 AM

    - tasted and when I call [[BreadCrumbs]] a get empty output.
    I forgot to say. You need to add &langid=`(yams_id)` so it knows which language to display the crumbs in. Then it should work.

    Quote from: Wild at Sep 05, 2009, 05:19 AM

    - GREAT! It worked just perfect! the only problem left is a placeholder [+as.extract+]. In English search [+as.extract+] display search result in 2 languages:

    ...текст на русском языке... This is first test news , Here is short summery of first news ..., This is full content of first news ...you can add imag...

    - how can I output only in current?
    Perhaps it is displaying extracts from matches in the document variables as well as the language specific template variables requested using &withTvs. For multilingual documents the standard document variables (except the alias field since you are not using multilingual aliases) are redundant, so you don’t need to search in them. So, you could try &whereSearch=`content:alias|tv`

    Quote from: Wild at Sep 05, 2009, 05:19 AM

    P.S.
    And I have on more question about PHx and Ditto pagination (not displaying).
    This is my ditto call:
    [!Ditto? &parents=`10` &display=`10` &tpl=`Content_NewsList_Tpl` &orderBy=`createdon DESC` &dateFormat=`%d.%m.%Y` &extenders=`@FILE assets/modules/yams/yams.extender.inc.php` &id=`(yams_id)` &language=`(yams_mname)` &paginate=`1`!]
    <p class="pages">[+(yams_id)_previous+] [+(yams_id)_pages+] [+(yams_id)_next+]</p>

    Plug-in execution order:
    OnParseDocument
    * YAMS
    * PHx
    OnWebPageComplete
    * YAMS
    OnWebPageInit
    * YAMS
    OnWebPagePrerender
    * YAMS
    * QM+

    When I disable PHx plugin - pagination appears. I tried cacheable and uncacheable call and it didn’t work *(

    I presume that there must be some PHx somewhere? In Content_NewsList_Tpl, or in your document template? If so, can you show us what it is please?
      YAMS: Yet Another Multilingual Solution for MODx
      YAMS Forums | Latest: YAMS 1.1.9 | YAMS Documentation
      Please consider donating if you appreciate the time and effort spent developing and supporting YAMS.
      • 22851
      • 805 Posts
      For info, I recently provided support to @burn, who put together the following great looking site using YAMS. Includes multilingual guestbook (jot), contact form (eForm) and site map (Wayfinder).

      Pink Rose Guesthouse & Spa
        YAMS: Yet Another Multilingual Solution for MODx
        YAMS Forums | Latest: YAMS 1.1.9 | YAMS Documentation
        Please consider donating if you appreciate the time and effort spent developing and supporting YAMS.
        • 32396
        • 56 Posts
        @PMS

        I call [[BreadCrumbs? &langid=`(yams_id)`]] and the output result is is not breadcrumbs with links but text [[BreadCrumbs? &langid=`ru`]]

        I presume that there must be some PHx somewhere? In Content_NewsList_Tpl, or in your document template? If so, can you show us what it is please?

        I wanted to use PHx but because of pagination problem I didn’t. I just installed PHx plugin.

        This is my Content_NewsList_Tpl
        <li><span class="date">[+date+]</span><br />
        <strong><a href="[(base_url)][~[+id+]~]">[+pagetitle+]</a></strong><br />
         [+introtext+] <a href="[(base_url)][~[+id+]~]"><img src="/images/ico_dotes_orange.gif" alt="" width="22" height="7" border="0" /></a></li>
          Using: MODx Evo 1.0.6 / Revo 2.2.5
          • 19149
          • 8 Posts
          @PMS
          question about behavior wayfinder still to be investigated...
          if i get an answer. i post it.

          And another feature.
          then try request domain.com/en/ - result ok.
          then try request domain.com/en - result 404.

          I think.. in "howto" need add rules to avoid this problem...
          either "Rewrite "... or autolink in modx...
            • 22851
            • 805 Posts
            Quote from: Wild at Sep 06, 2009, 08:53 AM

            I call [[BreadCrumbs? &langid=`(yams_id)`]] and the output result is is not breadcrumbs with links but text [[BreadCrumbs? &langid=`ru`]]
            Forgot that you are using the (patched) 1.1.4 alpha version, not my development version. With all versions up to 1.1.4 alpha you cannot use YAMS placeholders inside the parameters of cacheable snippet calls. (In the next version you will be able to.) So, you’ll have to use [[BreadCrumbs? &langid=`ru`]] in the Russian content field, [[BreadCrumbs? &langid=`en`]] in the English etc. If that still doesn’t work, I once encountered a similar problem with the snippet call not being evaluated and it turned out that a RTE was reformatting the snippet call and breaking it (by inserting new lines or something like that). In that case, switch off the RTE and reformat the snippet call, or put the snippet calls in chunks.

            Quote from: Wild at Sep 06, 2009, 08:53 AM

            I presume that there must be some PHx somewhere? In Content_NewsList_Tpl, or in your document template? If so, can you show us what it is please?

            I wanted to use PHx but because of pagination problem I didn’t. I just installed PHx plugin.

            This is my Content_NewsList_Tpl
            <li><span class="date">[+date+]</span><br />
            <strong><a href="[(base_url)][~[+id+]~]">[+pagetitle+]</a></strong><br />
             [+introtext+] <a href="[(base_url)][~[+id+]~]"><img src="/images/ico_dotes_orange.gif" alt="" width="22" height="7" border="0" /></a></li>


            Your Ditto template looks fine. Your plugin execution order looks fine. I know that Ditto uses its own installed version of PHx by default - so perhaps there is some conflict between the Ditto version and your installed version. It could be that the PHxParser class is illegally being defined twice or something like that.

            I recommend taking a look at the Ditto parameters to see if there are any PHx specific configuration parameters.

            I recently encountered a problem with PHP Parse errors due to multiple definition of the PHxParser class. In that case I managed to solve the problem by editing the phx plugin and changing the include line to:
            if ( ! class_exists( 'PHxParser' ) )
            {
             include_once $modx->config['rb_base_dir'] . "plugins/phx/phx.parser.class.inc.php";
            }
            

            I’m not sure if that will help you, but just in case I thought I would post it up.
              YAMS: Yet Another Multilingual Solution for MODx
              YAMS Forums | Latest: YAMS 1.1.9 | YAMS Documentation
              Please consider donating if you appreciate the time and effort spent developing and supporting YAMS.
              • 22851
              • 805 Posts
              Quote from: Mikhail at Sep 06, 2009, 10:39 AM

              And another feature.
              then try request domain.com/en/ - result ok.
              then try request domain.com/en - result 404.

              I think.. in "howto" need add rules to avoid this problem...
              either "Rewrite "... or autolink in modx...
              Yes. The following rewrite rule
              RedirectMatch permanent ^/en$ http://my.domain.com/en/
              

              would probably do the trick.
                YAMS: Yet Another Multilingual Solution for MODx
                YAMS Forums | Latest: YAMS 1.1.9 | YAMS Documentation
                Please consider donating if you appreciate the time and effort spent developing and supporting YAMS.
                • 32396
                • 56 Posts
                @PMS
                Hi,
                I’ve tried everything what you said with BreadCrumbs and PHx plugin it didn’t helped. Also tried Ditto parameter &phx=`0` and it didn’t helped too...

                Thanks for help
                  Using: MODx Evo 1.0.6 / Revo 2.2.5
                  • 22851
                  • 805 Posts
                  Quote from: Wild at Sep 07, 2009, 05:14 PM

                  @PMS
                  Hi,
                  I’ve tried everything what you said with BreadCrumbs and PHx plugin it didn’t helped. Also tried Ditto parameter &phx=`0` and it didn’t helped too...

                  Thanks for help
                  Sorry. This one has got me stumped for the moment. I’m currently working on an update to YAMS which might help, since I have restructured the parsing somewhat (with the aim of making it more efficient and for allowing better support for PHx in future.) @towerofbabel and @jonimant have been testing it for me. There are still some issues to be fixed before I release it to a wider audience - but I’ll let you know as soon as it is ready.
                    YAMS: Yet Another Multilingual Solution for MODx
                    YAMS Forums | Latest: YAMS 1.1.9 | YAMS Documentation
                    Please consider donating if you appreciate the time and effort spent developing and supporting YAMS.
                    • 32396
                    • 56 Posts
                    Thanks a lot! to you and those who are working on the YAMS module.
                      Using: MODx Evo 1.0.6 / Revo 2.2.5
                      • 10608
                      • 36 Posts
                      This error doesn’t go away, even after fixing permissions in /assets/modules/yams/ :

                      Could not add language with lang id "nl"

                      I’m using Evolution 1.0.0 and YAMS 1.05 beta

                      My installation is installed on localhost. http://localhost/modxtestcase/

                      I’m driving nuts on this.
                      Can somebody help me. I have to create 3 multilingual sites this week.