【发布时间】:2011-05-31 16:00:51
【问题描述】:
如何在 ExpressionEngine 中输出条目的标题并将其显示在浏览器的标题栏中?
这是我页面标题的内容:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Test Site</title>
<link rel="stylesheet" href="{stylesheet=site/site_css}" type="text/css" media="screen" />
</head>
我需要让每个页面在浏览器的标题栏中显示条目的标题——我该如何实现?
部分更新代码:
这是我的做法:
{exp:channel:entries channel="news_articles" status="open|Featured Top Story|Top Story" limit="1" disable="member_data|trackbacks|pagination"}
{embed="includes/document_header" page_title=" | {title}"}
<body class="home">
<div id="layoutWrapper">
{embed="includes/masthead_navigation"}
<div id="content">
<div id="article">
<img src="{article_image}" alt="News Article Image" />
<h4>{title}</h4>
<h5><span class="by">By</span> {article_author}</h5>
<p>{entry_date format="%M %d, %Y"} -- Updated {gmt_edit_date format="%M %d, %Y"}</p>
{article_body}
{/exp:channel:entries}
</div>
你怎么看?
【问题讨论】:
标签: expressionengine