このコンテキストは、Azureデータベースを備えたAzure Webサイト(クラウドサービスではない)で実行されているOrchard1.8.1です。
管理UIを介してContentTypeを定義しました。'Class'タイプは作成可能であり、ドラフト可能ではなく、Autoroute、Body、およびTitleパーツと、NumericおよびTaxonomyフィールドが含まれています。分類法は、その用語で定義されます。
アイテムは、管理ページの[新規]メニューまたは[コンテンツ定義]リストの[新しいクラスの作成]から作成できます。タイプ「クラス」のすべてのアイテムを表示するクエリとプロジェクションを作成しました。これにより、すべてのアイテムがフロントエンドページに正しく表示されます。
問題は、管理ページの「コンテンツ」セクションにあります。[新規]メニューからアイテムを作成すると、コンテンツリストに表示されません。[コンテンツ定義]リストの[新しいクラスの作成]を使用して作成すると、コンテンツリストに表示されます。しかし、それらはすべてクエリに表示されます。
アイテムをエクスポートしてXMLを確認しました...違いはありません。以下は、コンテンツリストに表示されるアイテムです。
<Class Id="/alias=american-history" Status="Published">
<NumericField.Credits Value="1" />
<TaxonomyField.Dicipline Terms="/alias=subjects\/social-studies" />
<BodyPart Text="<p>This American History course will integrate both Social Science skills with historical content of America and the United States from the early 1600s to the present, as well as education in government and economics. There is a strong emphasis on college preparation, civic participation, and integration with research and technology. Students use will a variety of resources and activities to explore major themes, including the changing face of American society and the United States&rsquo; changing role in the world.</p>" />
<AutoroutePart Alias="american-history" UseCustomPattern="false" />
<TitlePart Title="American History" />
</Class>
そして、これは表示されないものの例です:
<Class Id="/alias=economics" Status="Published">
<NumericField.Credits Value="1" />
<TaxonomyField.Dicipline Terms="/alias=subjects\/social-studies" />
<BodyPart Text="<p>The introductory economics course has a strong emphasis on personal finance. Students learn the importance of budgeting and how, through a variety of financial instruments, to make money work for them. Students also learn how the stock market operates by participating in a virtual stock game. In this context, students are introduced to the concepts of stock ownership, the commodities market, supply and demand and the different types of business structures. Students learn how to complete various tax forms and the how's and why's of the American tax system. Students will read the book, Freakonomics, and gain insight on how to look at problems from an economic standpoint. Finally students learn about the different types of economic systems, the circular flow of money through the economy, and government intervention in our economy.</p>" />
<AutoroutePart Alias="economics" UseCustomPattern="false" />
<TitlePart Title="Economics" />
</Class>
私はデータベースを調べて問題を見つけることができるかどうかを調べ始めましたが、すぐに迷子になりました。
問題を探し始める可能性のあるアイデアはありますか?もしこれがバグだったら、見つける前に現れて色合いと泣き声を上げていたのではないかと思っているので、どこかの設定にあると思います。
私がこれに乗ることができるどんな助けにも感謝します。
-マイケル
コンテンツリストに表示するための共通部分を追加する必要があります。日付順に並べ替える必要があるためです。おそらく、コンテンツの所有者に関連するセキュリティ関連の要素が必要ですが、それについてはよくわかりません:)
Bertrandからの更新:コンテンツタイプ定義でコンテンツタイプをリスト可能としてマークする必要もあります。
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加