how get article title by pid ?Code:$GLOBALS['TL_DCA']['tl_content']['list']['sorting']['mode'] = 2; $GLOBALS['TL_DCA']['tl_content']['list']['sorting']['fields'] = array('pid');
and insert it in sorting field
thanks
how get article title by pid ?Code:$GLOBALS['TL_DCA']['tl_content']['list']['sorting']['mode'] = 2; $GLOBALS['TL_DCA']['tl_content']['list']['sorting']['fields'] = array('pid');
and insert it in sorting field
thanks
sorry for my english
this not work...Code:$GLOBALS['TL_DCA']['tl_content']['list']['sorting']['fields'] = array('(SELECT title FROM tl_article WHERE tl_article.id=tl.content.pid)');
because full query
Code:SELECT * FROM tl_content ORDER BY (SELECT title FROM tl_article WHERE tl_article.id=tl.content.pid) LIMIT 0,150)
sorry for my english
or DESC for descending...Code:SELECT * FROM table ORDER BY expression ASC
You also forgot one ")"
Bookmarks