DNN +表单和列表模块 + xslt +皮肤路径..?
我使用 DotNetNuke 的“表单和列表”模块来生成块。在这些块中,我有一个图像位于皮肤目录的“图像”文件夹中。但我不知道如何从 xslt 文件获取链接。
我想要这样的链接:
<%= SkinPath %>images/foo.jpg
(在 aspx 页面中)
如果有人有任何想法......
谢谢。 :) 弗洛朗
I use the "Form and list" module for DotNetNuke to generate blocks. In those blocks I have an image that is located in a "image" folder in the skin directory. But I don't know how to get the link from the xslt file.
I would like this kind of link :
<%= SkinPath %>images/foo.jpg
(in an aspx page)
If someone has any idea...
Thanks. :)
Florent
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我最近这样做了,但必须包含整个路径 /Portals/0/.... 等。
我不知道 XSLT 级别有任何可用的动态标记。这有点难看,但您可以将动态数据传递到表单和表单中的查询。列表。所以 tabid 或 Portalid 等。然后在您的查询中,您可以查询门户表或选项卡,并获取使用的皮肤...并将其拼凑到您的 XSLT 中。可能会工作并且充满活力,但丑陋。
I recently did this but had to include the entire path /Portals/0/.... etc.
I don't know of any dynamic tokens available at the XSLT level. It would be kind of ugly but you can pass dynamic data to your query in your forms & list. So tabid, or portalid etc. Then in your query you could query the portals table or tab, and get the skin used... and piece that together in your XSLT. Would probably work and be dynamic, but ugly.