代码之家  ›  专栏  ›  技术社区  ›  tariqews

Mura 6.1包含cfm页面错误

  •  1
  • tariqews  · 技术社区  · 12 年前

    我使用此代码在MURA 6.1中显示页面内容

    <div>[mura]$.dspInclude('display_objects/custom/main.cfm')[/mura]</div>
    

    但它给了我以下错误:

    注意:如果您希望使用绝对模板路径(例如, template=“/mypath/index.cfm”),必须创建 使用ColdFusion Administrator映射路径。或者,你可以 使用每个应用程序设置指定特定于此的映射 通过将映射结构指定为THIS.mappings 应用程序.cfc。
    使用相对路径(例如, template=“index.cfm”或template=“../index.cfm”)不需要 创建任何特殊映射。因此,建议您 尽可能使用CFINCLUDE的相对路径。找不到 包含的模板 /muraWRM/default/include/display_objects/custom/main.cfm。

    物理路径为

    [siteid]/default\includes\themes\rescue\display_objects
    

    提前感谢

    1 回复  |  直到 12 年前
        1
  •  0
  •   Gavin Pickin    12 年前

    这应该行得通

    <div>[mura]$.dspInclude('themes/rescue/display_objects/custom/main.cfm')[/mura]</div>
    

    正在从includes文件夹调用include,因此需要包含主题文件夹和救援文件夹才能找到正确的路径。

    为了主题之间的一致性,您可能希望使用Mura的主题名称设置,但我必须查找该设置。 如果你能很好地编码它,这应该可以很好地工作。

    推荐文章