动易内置切图函数

2019-07-07  本文已影响0人  吴加明

动易标签内容使用切图函数。

第一种用法:

  <xsl:element name="img">
                                <xsl:attribute name="src">
                                    <xsl:choose>
                                        <xsl:when test="DefaultPicUrl != ''">
                                            <xsl:value-of select="pe:ConvertAbsolutePath(pe:GetAnySizePic(DefaultPicUrl,230,173))"/>
                                        </xsl:when>
                                        <xsl:otherwise>
                                            <xsl:value-of select="pe:UpLoadDir()"/>nopic.gif
                                        </xsl:otherwise>
                                    </xsl:choose>
                                </xsl:attribute>
                                <xsl:attribute name="alt">
                                    <xsl:value-of select="Title" />
                                </xsl:attribute>
                            </xsl:element>

第二种用法:

<img src="{pe:GetSiteConfigInfo('uploaddir')}{pe:GetAnySizePic(DefaultPicUrl,$imageWidth,$imageHeight)}" />
上一篇 下一篇

猜你喜欢

热点阅读