6
如何根據當前節點的作者在Drupal中獲取用戶的配置文件路徑?如何在Drupal中獲取用戶的個人資料路徑?
<?php print t('Posted on !date by !username', array('!username' => theme('username', $node), '!date' => format_date($node->created,'custom','m.d.y'))); ?>
上面得到我正確的網址,但這就是我想要的... url。
此外,我認爲在您的主題模板中$ author可以直接使用。 – 2010-09-24 20:38:19
我無法獲得作者var,但get_path_alias恰恰是我在尋找的謝謝! – 2010-09-24 20:48:42
真棒,很高興它幫助:) – 2010-09-24 20:59:37