We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 52700
    • 15 Posts
    Hi,
    I'm working in MODX for first time. I am changing a wordpress site completely to MODX cms. Clients condition is to get the perfect design as they had in wordpress site. So when working i found a problem with "latest news" section of sidebar. I done with getResources package inside the sidebar chunk and displayed widget correctly in latest news page. But not displaying widget in other pages with sidebar.
    Should I make sidebar a template!!! or any other methods..

    <div class="panel-body">
    
            <div class="row">
    
              <div class="col-xs-12">
    
                <ul class="demo1">
    
    
    		[[!getResources? &tpl=`latestNewsWidgetTpl` &includeContent=`1` &includeTVs=`1` &processTVs=`1`]]
    
                  
                </ul>
    
              </div>
    
            </div>
    
          </div>
    


    What is the good way of doing this.
    Pls help...

    This question has been answered by ferx77. See the first response.

    • discuss.answer
      • 52064
      • 120 Posts
      you have to indicate to which parent refers,
      if missing gets id of the current page

      [[!getResources? &tpl=`latestNewsWidgetTpl` &includeContent=`1` &includeTVs=`1` &processTVs=`1` &parents=`1`]]
      


      more info can be found here: https://rtfm.modx.com/extras/revo/getresources

        FerX - Developer at Eracom s.r.l.
        • 52700
        • 15 Posts
        Quote from: ferx77 at Sep 01, 2016, 02:30 AM
        you have to indicate to which parent refers,
        if missing gets id of the current page

        [[!getResources? &tpl=`latestNewsWidgetTpl` &includeContent=`1` &includeTVs=`1` &processTVs=`1` &parents=`1`]]
        


        more info can be found here: https://rtfm.modx.com/extras/revo/getresources


        Thanks ferx77 really saved from this prob...