We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15758
    • 7 Posts
    oh, great!
    thank you very much...
    I was just began to be crazy, but it is me, i am not good enough with scripts developement and modx logic...
    but now it looks better...

    Continuez donc ce bon travail... C’est un addons des + important pour l’avenir de MODx... bravo
      • 10152
      • 156 Posts
      Re-hello wink

      I try to localize where does the error come from : for releases after the current RC2 treasurechest cart does not trigger anymore.

      For 1.1.7 alpha RC6, this is checked :

      - OnLoadWebDocument
      - OnParseDocument
      - OnWebPageInit
      - OnWebPagePrerender
      - OnLoadWebPageCache
      - OnPageNotFound
      - OnBeforeDocFormSave

      As soon as I switch from RC2 to RC3 or upper, cart does not trigger anymore, or sometimes even has strange behavior : clicking anywhere in the screen, and it applies the visual effect on the element hovered by mouse.

        • 22851
        • 805 Posts
        Quote from: French at Oct 04, 2009, 03:54 AM

        As soon as I switch from RC2 to RC3 or upper, cart does not trigger anymore, or sometimes even has strange behavior : clicking anywhere in the screen, and it applies the visual effect on the element hovered by mouse.
        Hi French Fries.

        I just installed Treasure Chest for the first time and did a little investigation. I was able to reproduce that weird visual effect whereby things disappear and re-appear when you click on them. The javascript files embedded in the document by Treasure Chest are compressed - so it’s a little difficult to see what’s going on - but it appears that Treasure Chest is trying to do ajax POSTs to the cart document using an URL of the form index.php?id=... However, with the introduction of SEO friendly URLs functionality at or around version 1.1.7 alpha RC2 YAMS started doing permanent redirects from URLs of that form to what should be their unique friendly alias. This redirection appears to be causing the ajax post requests to fail and for the javascript to start displaying weird visual effects.

        There isn’t currently a parameter within YAMS that will allow you to turn this off. I can add one in future - but I haven’t got time to do this now. In the meantime, you can hard-wire YAMS so that it doesn’t do any redirection when a request is made for an URL with an id=... query parameter specified. To do so, edit assets/modules/yams/class/yams.class.inc.php and insert the following at line 4140 (YAMS 1.1.7 alpha RC6):
              if ( isset( $_GET['id'] ) && ctype_digit( $_GET['id'] ) )
              {
                return $this->WeblinkRedirect(
                  $docId
                  , $this->itsCurrentLangId
                  );
              }
        

        just before the $isManagerPreviewPage... line.

        Hopefully that will solve the problems you have been encountering. Please let me know how it goes.
          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.
          • 23950
          • 78 Posts
          I’m using YAMS 1.1.4 alpha, everythings works perfectly... exepted WebLinks :/

          im gonna update to the latest version smiley

          is there a conversion for Breadcrumbs ?
            [b]∴ MES SITES SOUS MODx
            • 10152
            • 156 Posts
            Hi,

            you can do it with wayfinder :
                    <span class="crumbBox">
                        [!Wayfinder? &startId=`0`  &displayStart=`1` &textOfLinks=`menutitle` &level=`6` &titleOfLinks=`longtitle` &hideSubMenus=`true`  &rowIdPrefix=`` &sortBy=`id` &sortOrder=`asc`  &excludeDocs=``  &hereTpl=`@FILE:assets/modules/yams/tpl/wayfinder/doc/breadcrumbs/here.tpl` &activeParentRowTpl=`@FILE:assets/modules/yams/tpl/wayfinder/doc/breadcrumbs/activeparentrow.tpl` &rowTpl=`@FILE:assets/modules/yams/tpl/wayfinder/doc/breadcrumbs/row.tpl` &outerTpl=`@FILE:assets/modules/yams/tpl/wayfinder/doc/breadcrumbs/outer.tpl` !]
                  </span>

            Just create or modify template files then
              • 22851
              • 805 Posts
              Quote from: prouve at Oct 06, 2009, 04:46 AM

              I’m using YAMS 1.1.4 alpha, everythings works perfectly... exepted WebLinks :/
              According to the release notes mono- and multilingual weblinks should work from version 1.1.4 alpha onwards. With multilingual weblinks you have to specify the id of the document you want to redirect to in the multilingual content field for each language. You get lots of improvements and new features if you upgrade to the latest version though, so go ahead and try it out.

              Quote from: prouve at Oct 06, 2009, 04:46 AM

              im gonna update to the latest version smiley

              is there a conversion for Breadcrumbs ?
              Yes. From version 1.1.5 alpha RC3 onwards you can find a YAMS-ified version of Breadcrumbs 101 in the distribution here: assets/modules/yams/snippets/breadcrumbs.101.yams.snippet.php. The approach that @French Fries took should work too. @French Fries - have you implemented this? If so, would you mind sharing your breadcrumb templates? I could include them in the YAMS distribution.

              @French Fries: By the way, have you had any success with the Treasure Chest and the hack I supplied to get index.php?id=... style URLs to be displayed without redirection to the equivalent friendly URL?
                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.
                • 23950
                • 78 Posts
                i just upgraded to 1.1.7 alpha RC5, everything went fine smiley

                the wayfinder conversion by French Fries doesn’t work sad i get this error:
                « MODx Parse Error »
                MODx encountered the following error while attempting to parse the requested resource:
                « PHP Parse Error »
                 
                PHP error debug
                  Error: 	file_get_contents(assets/modules/yams/tpl/wayfinder/doc/breadcrumbs/row.tpl) [function.file-get-contents]: failed to open stream: No such file or directory	 
                  Error type/ Nr.: 	Warning - 2	 
                  File: 	/homez.63/acbsesam/v2/assets/snippets/wayfinder/wayfinder.inc.php	 
                  Line: 	550	 
                  Line 550 source: 	$fcontents = file_get_contents($filename); 	 
                 
                Parser timing
                  MySQL: 	0.0063 s	(5 Requests)
                  PHP: 	0.0655 s	 
                  Total: 	0.0718 s


                i’m gonna try ur solution PMS, it’s really a pleasure to have instant support ^^
                  [b]∴ MES SITES SOUS MODx
                  • 10152
                  • 156 Posts
                  Hi PMS,

                  I did not take the time to implement the solution you gave me yesterday but I will do it within this week, because too much work now. I know that it will probably end by working and I’ll post feedback for sure.

                  Here is the breadcrumb file

                  EDIT: file removed

                  so you have this :
                  /www/assets/modules/yams/tpl/wayfinder/doc/breadcrumbs and it should work.

                  It work in my case, but not sure it will fit exactly your needs, try to customize wink


                    • 22851
                    • 805 Posts
                    Quote from: French at Oct 06, 2009, 05:34 AM

                    Here is the breadcrumb file
                    ...
                    It work in my case, but not sure it will fit exactly your needs, try to customize wink
                    Thank you very much French Fries! I’ll try it out, and if get it to work then I’ll add it as a ’How To?’
                      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
                      By the way, an important note to anyone who might be looking for YAMS support in the next few weeks: I’m going to have minimal internet access between this coming weekend and Thursday 16th October and then I’ll probably have no access at all until the 26 October because I’m off on holiday. So, I wont be able to implement any new features or fix any bugs during that period. In my absence I hope that people who have had some success with YAMS will support any new users trying to get started. Thank you.
                        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.