完成了关于显示日历的果园教程,但是什么也没显示? [英] completed an orchard tutorial on displaying a calendar but nothing displays?
问题描述
我试图在果园中显示某种预订系统,我发现了一组教程,可让您设置查询以在不同日期显示...
I was trying to display some sort of booking system in orchard and I found a set of tutorials that allow you to set queries to display on different dates...
因此,我遍历了果园CMS 1.6的所有18个教程,在屏幕上显示日历
So ive went through all the 18 tutorials for orchard CMS 1.6 displaying a calendar on screen
http://www.youtube.com/watch?v=Iv7rA-viyTw
我的日历没有出现在屏幕上?香港专业教育学院尝试更改它的窗口小部件(在日历上选择日期),但没有显示任何内容,我以真实用户身份登录(由于在创建窗口小部件时将其设置为显示)
and my calendar doesnt appear on screen? ive tried changing the widget of it (which selects dates on the calendar) and nothing appears, im logged in as authentic user, (as it is set to show-when creating the widget)
我唯一能想到的(这不应该是一个问题,但值得一提-在教程13中编辑模板.当我尝试从下拉列表中不选择查询时,我创建了一个查询,如下所示这些教程,但仍然没有出现在内容页面上.)-在尝试创建日历小部件"时抛出了错误,因此我在calendarWidgetDriver.cshtml中注释了导致此问题的代码.
The only thing I can think of (which shouldnt be a problem but worth mentioning - in tutorial 13 where you edit template. when I tried to select a query none where appearing from the drop down list, I created a query as in the tutorials but still none appeared on the content page.) - this threw an error when trying to create a 'calendar widget' so I commented the code causing this in calendarWidgetDriver.cshtml.
//if (part.QueryId <= 0)
//{
// updater.AddModelError("QueryId", T("You must select a query."));
//}
但这仅在您要显示日期查询时才重要.当然,显示整个日历不重要.我意识到这对于一个较大的Q来说有点跳跃.但是我希望有人遇到相同问题的机会不大.
But this only matters when you want to display a query on a date. surely it shouldnt matter for displaying the entire calendar. I realise this is a bit of a jump for a large Q. but im hoping on the off chance someone has encountered the same problem.
如果是这样,我很高兴知道. 谢谢大家
If so I would be glad to know. thank you all
我已经尝试过与所有者联系,但到目前为止还没有任何消息,以为我会在这里尝试....
I have tried contacting the owner but as of yet no word so thought I would try here....
编辑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
编辑2
按照罗恩在此视频7.40中给出的建议: http://www.youtube.com/watch?v=jOSxGj2gOpY 使用来源"从F12起,他能够从本地主机中查看calendarWidget,但我没有这个视图.我可能会缺少什么?
following the advice Ron gives at 7.40 of this video: http://www.youtube.com/watch?v=jOSxGj2gOpY using 'Sources' from F12, he is able to view calendarWidget from inside localhost, i do not have this view able for me. What could i be missing?
推荐答案
加载程序错误表示Orchard无法找到FoodPodBootstrapTheme.dll
.
The loader error means that Orchard cannot find the FoodPodBootstrapTheme.dll
.
当我阅读...
未找到扩展名"FoodPodBootstrapTheme"的合适加载器
No suitable loader found for extension "FoodPodBootstrapTheme"
...我认为这是一个位于...的项目.
... i assume it is a project located in ...
src\Orchard.Web\Themes\FoodPodBootstrapTheme
您很可能已手动将此项目添加到Visual Studio中的src\Orchard.sln
文件中,因此该项目未配置为正确构建.
You have most likely added this project to your src\Orchard.sln
file in Visual Studio manually and therefore the project is not configured for building correctly.
我多次遇到相同的错误,这帮助我摆脱了错误:
I had the same error multiple times and this is what helped me to get rid of the error:
-
修复主题构建依赖项
- 在Visual Studio中打开
src\Orchard.sln
- 右键单击
FoodPodBootstrapTheme
节点,然后选择Build Dependencies
>Project Dependencies
- 现在确保
Depends on
复选框Themes (Themes\Themes)
中包含一个对勾
- Open
src\Orchard.sln
in Visual Studio - Right click on the
FoodPodBootstrapTheme
node and selectBuild Dependencies
>Project Dependencies
- now make sure
Depends on
contains a tick in checkboxThemes (Themes\Themes)
修复Orchard.Web构建依赖项
- 在Visual Studio中打开
src\Orchard.sln
- 右键单击
Orchard.Web
节点,然后选择Build Dependencies
>Project Dependencies
- 现在确保
Depends on
复选框FoodPodBootstrapTheme
中包含一个对勾
- Open
src\Orchard.sln
in Visual Studio - Right click on the
Orchard.Web
node and selectBuild Dependencies
>Project Dependencies
- now make sure
Depends on
contains a tick in checkboxFoodPodBootstrapTheme
这篇关于完成了关于显示日历的果园教程,但是什么也没显示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!