gpt4 book ai didi

c# - Orchard CMS : RemoteRss from Vandelay Industries

转载 作者:太空宇宙 更新时间:2023-11-03 13:48:36 35 4
gpt4 key购买 nike

我在 Orchard CMS 上跌跌撞撞,想覆盖 Vandelay Industries 的 RemoteRSS 小部件的默认模板。当前模板位于:

~/Modules/Vandelay.Industries/Views/Parts/RemoteRss.cshtml

所以,

  • 是否可以覆盖此模板
  • 如果是这样,我应该将新模板放在哪里,以免“损坏”原始模板

我试过将其另存为:

C:\inetpub\wwwroot\cc_orchard_live_2012\Themes\FlexoPurchased\Views\RemoteRss.cshtml

C:\inetpub\wwwroot\cc_orchard_live_2012\Themes\FlexoPurchased\Views\Parts.RemoteRss.cshtml

C:\inetpub\wwwroot\cc_orchard_live_2012\Themes\FlexoPurchased\Views\Parts\RemoteRss.cshtml

但是这些要么好像不生效,要么报错。


附加信息

C:\inetpub\wwwroot\cc_orchard_live_2012\Themes\FlexoPurchased\Views\RemoteRss.cs‌​html

似乎没有任何影响。

~/Modules/Vandelay.Industries/Views/Parts/RemoteRss.cshtml 

但是这里的相同代码工作正常。

C:\inetpub\wwwroot\cc_orchard_live_2012\Themes\FlexoPurchased\Views\Parts.Remote‌​‌​Rss.cshtml

导致运行时错误:

Compiler Error Message: CS0012: The type 'System.Xml.IXmlLineInfo' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

C:\inetpub\wwwroot\cc_orchard_live_2012\Themes\FlexoPurchased\Views\Parts\Remote‌​‌​Rss.cshtml

抛出运行时错误:

Compiler Error Message: CS0012: The type 'System.Xml.IXmlLineInfo' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

最佳答案

您需要从您的主题项目中引用 System.Xml,以便能够覆盖该模板。

关于c# - Orchard CMS : RemoteRss from Vandelay Industries,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14416225/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com