0

Magento 中是否有自动将博客文章标识符设置为博客文章标题?

谢谢

4

1 回答 1

0

在您的 Block_prepareLayout()方法中,编写下面的代码行以使用您的博客文章 ID 设置页面的标题。

$this->getLayout()->getBlock('head')->setTitle($id);
于 2013-02-21T13:41:52.973 回答