2013-08-20 50 views
1

我試圖顯示果園某種訂票系統,我發現了一套教程,允許您設置的查詢顯示在不同日期的...已完成果園教程顯示日曆但沒有顯示?

所以香港專業教育學院通過所有18個教程果園CMS去1.6在屏幕上顯示日曆

http://www.youtube.com/watch?v=Iv7rA-viyTw 

和我的日曆不會出現在屏幕上?我試圖改變它的小部件(它選擇日曆上的日期)並沒有出現,即時登錄作爲真實的用戶,(因爲它被設置爲顯示 - 當創建小部件)

我可以想到的唯一的事情(這不應該是一個問題,但值得一提 - 在教程13中編輯模板的時候,當我試圖選擇一個查詢而沒有從下拉列表中出現時,我創建了一個如教程中的查詢,但仍然沒有出現在內容頁面上。) - 這在嘗試創建「日曆小部件」時會引發錯誤,因此我在calendarWidgetDriver.cshtml中評論了導致此問題的代碼。

//if (part.QueryId <= 0) 
//{ 
// updater.AddModelError("QueryId", T("You must select a query.")); 
//} 

但是,這隻有當你想顯示一個日期查詢。當然它顯示整個日曆應該很重要。我意識到這對於一個大Q來說有點跳躍,但是我希望有人遇到同樣的問題。

如果是這樣,我會很高興知道。 謝謝大家

我已經試過所有者聯繫,但截至目前還沒有這樣的字想到我會嘗試在這裏....

編輯1 ...

日誌

2013-08-21 10:06:37,658 [32] Orchard.Environment.Extensions.ExtensionManager - No suitable loader found for extension "FoodPodBootstrapTheme" 
2013-08-21 10:07:06,130 [32] Orchard.ContentManagement.Drivers.Coordinators.ContentPartDriverCoordinator - ArgumentException thrown from IContentPartDriver by UMACS.FoodPod.Drivers.CalendarWidgetDriver 
System.ArgumentException: queryId 
    at Orchard.Projections.Services.ProjectionManager.GetContentItems(Int32 queryId, Int32 skip, Int32 count) 
    at UMACS.FoodPod.Services.CalendarService.GetCalendarEvents(CalendarWidgetPart part) 
    at UMACS.FoodPod.Drivers.CalendarWidgetDriver.<>c__DisplayClass3.<Display>b__2() 
    at Orchard.ContentManagement.Drivers.ContentPartDriver`1.<>c__DisplayClassf.<ContentShape>b__e(BuildShapeContext ctx) in C:\WORK\Orchard1.6.1\Orchard.Source\src\Orchard\ContentManagement\Drivers\ContentPartDriver.cs:line 130 
    at Orchard.ContentManagement.Drivers.ContentPartDriver`1.<>c__DisplayClass15.<ContentShapeImplementation>b__14(BuildShapeContext ctx) in C:\WORK\ Orchard1.6.1\Orchard.Source\src\Orchard\ContentManagement\Drivers\ContentPartDriver.cs:line 139 
    at Orchard.ContentManagement.Drivers.ContentShapeResult.ApplyImplementation(BuildShapeContext context, String displayType) in C:\WORK\ Orchard1.6.1\Orchard.Source\src\Orchard\ContentManagement\Drivers\ContentShapeResult.cs:line 39 
    at Orchard.ContentManagement.Drivers.ContentShapeResult.Apply(BuildDisplayContext context) in C:\WORK\ Orchard1.6.1\Orchard.Source\src\Orchard\ContentManagement\Drivers\ContentShapeResult.cs:line 21 
    at Orchard.ContentManagement.Drivers.Coordinators.ContentPartDriverCoordinator.<>c__DisplayClassa.<BuildDisplay>b__9(IContentPartDriver driver) in C:\WORK \Orchard1.6.1\Orchard.Source\src\Orchard\ContentManagement\Drivers\Coordinators\ContentPartDriverCoordinator.cs:line 49 
    at Orchard.InvokeExtensions.Invoke[TEvents](IEnumerable`1 events, Action`1 dispatch, ILogger logger) in C:\WORK\Orchard1.6.1\Orchard.Source\src\Orchard\InvokeExtensions.cs:line 17 

EDIT 2

以下的建議羅恩給出了這個視頻的7.40: http://www.youtube.com/watch?v=jOSxGj2gOpY使用F12的'Sources',他能夠從localhost中查看calendarWidget,我沒有這個視圖能夠支持我。我可能會錯過什麼?

+1

下載他的樣本代碼,並將其與自己的節拍? – Hazza

回答

0

加載器錯誤意味着Orchard找不到FoodPodBootstrapTheme.dll

,當我讀...

No suitable loader found for extension "FoodPodBootstrapTheme"

...我認爲它是位於項目...

src\Orchard.Web\Themes\FoodPodBootstrapTheme 

你在最有可能加入這個項目,您src\Orchard.sln文件Visual Studio手動,因此該項目未配置爲正確構建。

我有同樣的錯誤多次,這是幫我擺脫錯誤的:

  1. 修復主題編譯依賴

    • 打開src\Orchard.sln在Visual Studio
    • 右鍵點擊FoodPodBootstrapTheme節點並選擇Build Dependencies>Project Dependencies
    • 現在確保Depends on包含複選框勾Themes (Themes\Themes)
  2. 修復Orchard.Web編譯依賴

    • 打開src\Orchard.sln在Visual Studio
    • 右鍵單擊Orchard.Web節點上,選擇Build Dependencies >Project Dependencies
    • 現在確認Depends on中包含複選框FoodPodBootstrapTheme