2 回答
I believe that in EE 1.x, the title for the weblog can be accessed via the EE variable {blog_title}, which is different than the {title} variable used to access the entry title.
Try this code, without any conditionals. By the inclusion of the "require entry=yes" parameter, hopefully this code will only show your expanded blog and page titles when the result of your {exp:weblog:entries} call actually returns an entry - i.e., when there's dynamic data to present via the URI. Otherwise, it shouldn't display anything.
Hopefully I'm not missing your intent!
<title>{site_name}{exp:weblog:entries weblog=“features|reviews|tutorials|catchreports|news|species|rigs|videos” limit=“1” disable=“categories|custom_fields|member_data|pagination|trackbacks” require_entry="yes"
} | {blog_title} | {title}{/exp:weblog:entries}</title>
您是否使用一个模板来提供站点索引、博客列表和博客条目?如果是这样,您可以尝试像这样嵌套条件:
{if segment_3}
<title>{site_name} | {exp:weblog:entries weblog="features|reviews|tutorials|catchreports|news|species|rigs|videos" limit="1" disable="categories|custom_fields|member_data|pagination|trackbacks"
}{weblog} | {title}{/exp:weblog:entries}</title>
{if:else}
{if segment_2}
<title>{site_name} | {exp:weblog:entries weblog="features|reviews|tutorials|catchreports|news|species|rigs|videos" limit="1" disable="categories|custom_fields|member_data|pagination|trackbacks"}{weblog}{/exp:weblog:entries}</title>
{if:else}
<title>{site_name}</title>
{/if}
{/if}
我不太了解你的结构。根据您的网址,“评论”看起来既是一个模板组,也是一个博客。每个博客都有自己的模板组吗?