0

我上传了一张图片;通过管理员使用PyroCMS的 random.png 并将其放入名为“Portfolio Images”的文件夹中(url slug 是“portfolio-images”)

在我的页面中,我希望能够使用标签引用此图像。url slug 是如何工作的?我试过http://mysite.com/portfolio-images/random.png - 但它不起作用。

有没有办法通过 {{asset:image }} 标签引用它?

谢谢!

4

1 回答 1

0

要显示您的图像,您可以执行以下操作:

有一个用于制作文件列表的插件 文档尚不可用,但您在 system/cms/modules/files/plugin.php 的代码中有对该插件的描述

/**
 * Files listing
 *
 * Creates a list of files
 *
 * Usage:
 *
 * {{ files:listing folder="home-slider" type="i" fetch="subfolder|root" }}
 *  // your html logic
 * {{ /files:listing }}
 *
 * The tags that are available to use from this method are listed below
 *
 * {id}
 * {folder_id}
 * {user_id}
 * {type}
 * {name}
 * {filename}
 * {description}
 * {extension}
 * {mimetype}
 * {width}
 * {height}
 * {filesize}
 * {date_added}
 *
 * @return  array
 */
于 2012-01-12T22:25:22.410 回答