パンくずリストは次のとおりです。パンくずリストの変更フィールド名
ウェブサイト>第1サイト>第2サイト。
は、私が「ウェブサイト」への「ホーム」に変更したい、これが私のコードです:
@if (!Umbraco.AssignedContentItem.DocumentTypeAlias.Equals("Home"))
{
<div class="breadcrumb" itemprop="breadcrumb">
@foreach (var level in Model.Content.Ancestors().Where("Visible").OrderBy("Level"))
{
if (Umbraco.AssignedContentItem.DocumentTypeAlias.Equals("Website"))
{
<p>test</p><a class="breadcrumb" href="@level.Url">Home</a>
}
else
{
<a class="breadcrumb" href="@level.Url">@level.Name</a>
}
<span>></span>
}
@CurrentPage.Name
</div>
}
最初.Equalsは、私のホームページのdocumentaliasは「ホームであるとしてブレッドクラムは、ホームページに隠されているを確認します"
2番目の.Equalは、「Website」を「Home」に変更する必要があります。 「ウェブサイト」も私のDocumentAliasです。
私はこれが動作しない理由を誰もが知っていUmbracoバージョン7.7.2
を使用していますか?
あなたは「ホーム」にラベル「ウェブサイト」を変更しますか?その後、次のhtmlを変更する必要がありますHome – Mark