We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 2603
    • 104 Posts
    How to make 2 calls in one page? For example Ditto and Maxigallery.
    I tried so:
    [[Ditto? &startID=`7` &tpl=`radio` &sortBy=`pub_date` &sortDir=`DESC` &hiddenFields=`tvauthor` &summarize=`7` &paginate=`1` &paginateAlwaysShowLinks=`1`]]

    [!MaxiGallery? &display=`embedded` &smoothgallery_width=`748` &smoothgallery_height=`228` &max_pic_size=`748` &pic_use_watermark=`1` &pic_watermark_valign=`bottom` &pic_watermark_img=`assets/galleries/news.png` &pic_watermark_type=`image` &pic_use_imagemask=`1` &pic_mask_img=`assets/snippets/maxigallery/imagemask/mask.png` &pic_mask_bgcolor=`000000` &embedtype=`smoothgallery` &smoothgallery_timed=`true` &smoothgallery_embedLinks=`false` &smoothgallery_showArrows=`false` &smoothgallery_showCarousel=`false` &smoothgallery_showInfopane=`false` &smoothgallery_delay=`9000`!]

    And in template: [*content*]

    How to make this correct?

    Thank you
      Getting higher! | www.djabuzz.com
      • 7231
      • 4,205 Posts
      2 calls on a single page is no problem, specially for unrelated snippets like Ditto and MaxiG. What is the problem you are having? I notices that your Ditto call is using old (-2.0) parameters. If you are using Ditto 2.+ you should change startID=`7` to parents=`7` and you no longer need to add the tv prefix to TVs (unless your TV is actually named tvauthor): Here are a few mods to the Ditto call to bring it up to date:
      [[Ditto? &parents=`7` &tpl=`radio` &orderBy=`pub_date DESC` &hiddenFields=`author` &display=`7` &paginate=`1` &paginateAlwaysShowLinks=`1` extenders=`summary`]]

      To use the summary function you need to load the summary extender and you can use the new orderBy rather than using sortBy and sortDir.

      Make sure you have the Ditto support site bookmarked for reference: http://ditto.modxcms.com/
        [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

        Something is happening here, but you don't know what it is.
        Do you, Mr. Jones? - [bob dylan]
        • 2603
        • 104 Posts
        Thank you for your answer. I tried your new code. Works fine, but I dont understand the difference ... smiley



        Quote from: dev_cw at Feb 04, 2009, 06:30 PM

        2 calls on a single page is no problem, specially for unrelated snippets like Ditto and MaxiG. What is the problem you are having?

        I dont know how to make this smiley What should I write in content and what should I write in template?
        Also dont know how to make Ajax search. Do you know some good tutorial or example?
          Getting higher! | www.djabuzz.com
          • 7231
          • 4,205 Posts
          AJAX Search has a demo site with loads of good information: http://www.modx.wangba.fr/index.php?id=51 and the wiki has some god documentation: http://wiki.modxcms.com/index.php/AjaxSearch

          What should I write in content and what should I write in template?
          That really depends on your requirements. I use the content, and will either place code directly in te template, or indirectly in the form of chunks. There is a cool method in the wiki for using TVs to define which chunks show on a page. http://wiki.modxcms.com/index.php/Create_TV-Based_Chunks
            [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

            Something is happening here, but you don't know what it is.
            Do you, Mr. Jones? - [bob dylan]
            • 2603
            • 104 Posts
            Quote from: dev_cw at Feb 06, 2009, 05:53 AM

            I use the content, and will either place code directly in te template, or indirectly in the form of chunks. There is a cool method in the wiki for using TVs to define which chunks show on a page. http://wiki.modxcms.com/index.php/Create_TV-Based_Chunks

            Thank you! smiley Sometimes things are simpler than you imagine. But now I have another problem with content sad
            When I insert maxigallery call dirrectly into template, "manage" button is inactive.

            <tr height="228px">
            <td width="1000px" colspan="2">
            <!--radio & flashbanner table-->
            <table border="0" cellpadding="0" cellspacing="0" width="1000px">
            <tr height="228px">
            <td width="252px">
            <script type="text/javascript">
            AC_FL_RunContent( ’codebase’,’http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0’,’width’,’252’,’height’,’228’,’id’,’radio’,’align’,’middle’,’src’,’radio’,’quality’,’high’,’bgcolor’,’#000000’,’name’,’radio’,’allowscriptaccess’,’sameDomain’,’allowfullscreen’,’false’,’pluginspage’,’http://www.macromedia.com/go/getflashplayer’,’movie’,’radio’ ); //end AC code
            </script><noscript><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="252" height="228" id="radio" align="middle">
            <param name="allowScriptAccess" value="sameDomain" />
            <param name="allowFullScreen" value="false" />
            <param name="movie" value="radio.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /> <embed src="radio.swf" quality="high" bgcolor="#000000" width="252" height="228" name="radio" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
            </object></noscript>
            </td>
            <td width="748px">
            [!MaxiGallery? &display=`embedded` &smoothgallery_width=`748` &smoothgallery_height=`228` &max_pic_size=`748` &pic_use_watermark=`1` &pic_watermark_valign=`bottom` &pic_watermark_img=`assets/galleries/news.png` &pic_watermark_type=`image` &pic_use_imagemask=`1` &pic_mask_img=`assets/snippets/maxigallery/imagemask/mask.png` &pic_mask_bgcolor=`000000` &embedtype=`smoothgallery` &smoothgallery_timed=`true` &smoothgallery_embedLinks=`false` &smoothgallery_showArrows=`false` &smoothgallery_showCarousel=`false` &smoothgallery_showInfopane=`false` &smoothgallery_delay=`9000`!]
            </td>
            </tr>
            </table>
            <!--end radio & flashbanner table-->
            </td>
            </tr>
            </table>
            <!--end header table-->


            dont know what to do
              Getting higher! | www.djabuzz.com