Друзья, подскажите, как лучше сделать вывод города в модуле последних статей, если есть следующий код?
<div> {$article.author} (город) - <a href="{$article.url}">{$article.title}</a> </div> {/foreach}
<div> {$article.author} (город) - <a href="{$article.url}">{$article.title}</a> </div> {/foreach}
$sql = "SELECT con.*, con.pubdate as fpubdate, cat.title as cat_title, cat.seolink as catseolink, cat.showdesc, u.nickname as author, u.login as user_login FROM cms_content con
$sql = "SELECT con.*, con.pubdate as fpubdate, cat.title as cat_title, cat.seolink as catseolink, cat.showdesc, u.nickname as author, u.login as user_login, u.city FROM cms_content con
<div> {$article.author} {$article.city} - <a href="{$article.url}">{$article.title}</a> </div> {/foreach}