Orchardcms 如何显示文件';列表中的下载链接是什么?

Orchardcms 如何显示文件';列表中的下载链接是什么?,orchardcms,Orchardcms,我正在使用文件字段模块。我创造了: 包含文件字段的内容部分“文档列表项” 内容类型“文件项”,包含“文档列表项”+通用+标题+可包含 包含“文件项”的列表 此外,我还通过添加以下内容更改了放置文件: <Match ContentType="FileItem"> <Match DisplayType="Summary"> <Place Parts_Common_Metadata_Summary="Nowhere"/>

我正在使用文件字段模块。我创造了:

  • 包含文件字段的内容部分“文档列表项”
  • 内容类型“文件项”,包含“文档列表项”+通用+标题+可包含
  • 包含“文件项”的列表
  • 此外,我还通过添加以下内容更改了放置文件:

    <Match ContentType="FileItem">
        <Match DisplayType="Summary">
                <Place  Parts_Common_Metadata_Summary="Nowhere"/>
            </Match>
        </Match>
    
    
    
    现在我看到了标题列表。当我单击标题时,在详细信息页面上有一个要下载的链接。 但如何在摘要中显示下载链接?

    这样问题就解决了:

    我已将字段\u Contrib\u文件添加到放置文件中:

        <Match ContentType="FileItem">
            <Match DisplayType="Summary">
                    <Place  Parts_Common_Metadata_Summary="Nowhere" Fields_Contrib_File="Content" Parts_Title_Summary="Nowhere"/>
                </Match>
            </Match>
    
    
    
    我已从模板文件~/Modules/Contrib.FileField/Views/Fields/Contrib.file.cshtml中删除了显示名称:

    @using Orchard.Utility.Extensions;
    
    @if (!string.IsNullOrWhiteSpace(Model.ContentField.Path)) 
    {
       <p class="file-field">       
          <a href="@Url.Content(Model.ContentField.Path)" target="@Model.Settings.OpenAction">@Model.ContentField.Text</a>
       </p> 
    }
    
    @使用Orchard.Utility.Extensions;
    @if(!string.IsNullOrWhiteSpace(Model.ContentField.Path))
    {
    

    }