2014-10-03 49 views
0

此情境是在Azure網站(不是雲服務)上運行Azure數據庫的Orchard 1.8.1。沒有顯示在儀表板中的果園內容項目

我已經通過管理界面定義了一個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="&lt;p&gt;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&amp;rsquo; changing role in the world.&lt;/p&gt;" /> 
    <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="&lt;p&gt;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.&lt;/p&gt;" /> 
    <AutoroutePart Alias="economics" UseCustomPattern="false" /> 
    <TitlePart Title="Economics" /> 
</Class> 

我開始通過數據庫挖掘,看看我能找到這個問題,但很快就迷路了。

任何想法,我可能會開始尋找這個問題?我在想,如果這是一個錯誤,它會在我發現它之前顯現出來,並且會導致一種色調和哭泣,所以我認爲這是在我的設置某處。

感謝您對我的幫助。

邁克爾 -

回答

0

您需要添加公共部分爲它出現在內容列表,因爲它需要的是,以按日期,可能涉及到誰擁有的內容,但我的一些安全的東西不知道那個:)

Bertrand的更新:您還需要在Content Type定義中將內容類型標記爲Listable。

+0

雖然它不顯示在導出中,但查看內容定義顯示CommonPart確實存在。 – 2014-10-03 15:15:10

+2

另外,請確保內容類型定義中已選中「可列表」複選框。 – 2014-10-06 06:23:18

+1

像Bertrand Le Roy提到的那樣,「列出來」就是爲我工作的。 – geniusburger 2016-04-13 05:09:41

相關問題