We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 168
    • 15 Posts
    Hi all,

    See this link: http://pastebin.com/uCYMcn3K

    Why doesn’t the first option works, in Revo 2.0.4-pl2?

    TIA
      • 28215
      • 4,149 Posts
      splittingred Reply #2, 16 years ago
      Because it should be:

      $query = $modx->newQuery('modResource');
      $query->leftJoin('modTemplate', 'Template');
      $query->where(array(
          'Template.templatename' => 'Service',
      ));
      $query->sortby('pagetitle', 'ASC');
      


      DB Relationships are case-sensitive.
        shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
        • 168
        • 15 Posts
        Thanks allot, SplittingRed! wink

        Works like a charm :d