【发布时间】:2013-12-10 06:51:25
【问题描述】:
我是 Umbraco 的新手。我在使用 XSLT 文件绑定图像时遇到问题,这里是我的 XSLT 文件。我正在使用 Umbraco 6.1.6
<xsl:output method="xml" omit-xml-declaration="yes"/>
<xsl:param name="currentPage"/>
<xsl:variable name="minLevel" select="2"/>
<xsl:template match="/">
<xsl:for-each select="$currentPage">
<div class="divHouseEmployeeList">
<img src="{concat('..', ./employeePhoto)}" />
<!--<img src="{./employeePhoto}" alt="{./employeeName}" />
<img src="{concat('..',./employeePhoto)}" alt="{./employeeName}" />-->
<xsl:value-of select="concat('..', ./employeePhoto)"/>
<xsl:for-each select="$currentPage/ancestor::* [@level > $minLevel]">
<xsl:if test="./houseSymbol != '' ">
<img src="{concat('..',substring-before(./houseSymbol,'.'), '_thumb.jpg')}" alt="" class="staticImageStyle" />
</xsl:if>
</xsl:for-each>
</div>
</xsl:for-each>
</xsl:template>
在这里,我绑定了当前页面的详细信息及其上一页的详细信息之一。 XSLT 文件已成功保存,但当我配置 IIS 图像时未显示 Check out snap 下面显示 Firebug 中的错误
URL : http://localhost/WebPortalUmb/houses/trident/csah.aspx
正如您在 Snap 中看到的,在 IIS 中,房屋是模板名称,WebPortalUmb 是应用程序名称。
您还可以在加载主页时看到应用程序名称丢失,这是我从 Firebug 中注意到的。查看主页下方的 Snap。
URL : http://localhost/WebPortalUmb/home.aspx
我是 umbraco 的新手,所以请帮忙。我还绑定了 URL,以便您了解问题。如果您对问题有任何问题,请发表评论。
【问题讨论】:
-
感谢您的回复,但这些都不适合我...