We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4172
    • 5,888 Posts
    well, you should at least add

    &includeContent=`1` - if you are using the content-placeholder in your chunk

    and

    &includeTVs=`1` - to get your TVs

    then either

    &tvPrefix = ``

    or prefix your TV with the default TV-prefix of tv. ->
    [[+tv.social_icon]]
    [ed. note: Bruno17 last edited this post 11 years, 3 months ago.]
      -------------------------------

      you can buy me a beer, if you like MIGX

      http://webcmsolutions.de/migx.html

      Thanks!
      • 42503
      • 120 Posts
      I have tried all the suggestions you asked but non of them work basically.
      Quote from: Bruno17 at Jan 14, 2013, 08:20 PM
      well, you should at least add

      &includeContent=`1` - if you are using the content-placeholder in your chunk

      and

      &includeTVs=`1` - to get your TVs

      then either

      &tvPrefix = ``

      or prefix your TV with the default TV-prefix of tv. ->
      [[+tv.]social_icon]
        • 3749
        • 24,544 Posts
        Are you maybe trying to use the Evolution version of Ditto or Wayfinder in Revolution? If so, uninstall them and get the Revolution versions through Package Manager.
          Did I help you? Buy me a beer
          Get my Book: MODX:The Official Guide
          MODX info for everyone: http://bobsguides.com/modx.html
          My MODX Extras
          Bob's Guides is now hosted at A2 MODX Hosting
          • 42503
          • 120 Posts
          Thanks for response.

          Yes, I first migrate from evo to revo then I remove ditto and wayfinder of evo version and installed again getResources and wayfinder through package manager. Then replaced ditto tag with getResources. Basically the problem is it is not getting the image paths.

          Please help.


          Quote from: BobRay at Jan 15, 2013, 03:01 AM
          Are you maybe trying to use the Evolution version of Ditto or Wayfinder in Revolution? If so, uninstall them and get the Revolution versions through Package Manager.
            • 42503
            • 120 Posts
            As you all know I have migrate a site from modx evo to revo. The below code is not working, as per the

            requirement it need to populated a footer menu. But it is populating a banch of menu which are not desired.

            Please look into code and guide me where the wrong in the code. I have only replaced the ditto with getResources

            in this code.The development url is http://precisionairtz.com/devrev/


            I have a snippet like this, (snippet name: FooterNavColumn).

            <?php
            $tpl = 'footer_nav_column_tpl';
            $tplLast = 'footer_nav_column_last_tpl';
            $params = array(
            'tpl' => $tpl,
            'documents' => $documents,
            'sortDir' => 'ASC',
            'tplLast' => $tplLast,
            'level' => 1,
            );
            return $modx->runSnippet('getResources', $params);

            ------------------------------------------------------------------------------

            Chunk -- (Chunk Name:footer_nav) which I am calling in main template.


            <div class="nav-column">[[FooterNavColumn? &documents=`1,2`]]</div>
            <div class="nav-column">[[FooterNavColumn? &documents=`3`]]</div>
            <div class="nav-column">[[FooterNavColumn? &documents=`4,41,42`]]</div>
            <div class="nav-column">[[FooterNavColumn? &documents=`5,6`]]</div>
            <div class="nav-column">[[FooterNavColumn? &documents=`31,43,67`]]</div>



            Chunk -- (Chunk Name:footer_nav_column)


            [[getResources? &documents=`1,2` &includeTVs=`1` &processTVs=`1` &tpl=`footer_nav_column_tpl`]]


            --------------------------------------------------------------------------------

            Chunk -- (Chunk Name:footer_nav_column_tpl)


            <span class="nav-group underlined">
            <ul>
            <li><a href="[[~[[+id]]]]">[[+pagetitle]]</a>
            [[Wayfinder? &startId=`[[+id]]` &level=`1`]]
            </li>

            </ul>
            </span>

            --------------------------------------------------------------------------------

            Chunk -- (Chunk Name:footer_nav_column_last_tpl)


            <span class="nav-group">
            <ul>
            <li><a href="[[~[[+id]]]]">[[+pagetitle]]</a>
            [[Wayfinder? &startId=`[[+id]]` &level=`1`]]
            </li>

            </ul>
            </span>

            -------------------------------------------------------------------------------


            Need some help urgently.

            Thanks.
              • 4172
              • 5,888 Posts
              again, study the getResources - properties. You are still using some Ditto - properties.
              For example &documents -> &resources ,
              in your snippet:

              $params = array(
              'tpl' => $tpl,
              'resources' => $documents,
              'sortDir' => 'ASC',
              'tplLast' => $tplLast,
              'depth' => 1,
              );
                -------------------------------

                you can buy me a beer, if you like MIGX

                http://webcmsolutions.de/migx.html

                Thanks!