链接到表达式引擎模板中的文件(路径名问题)

发布于 2024-09-14 20:19:34 字数 485 浏览 5 评论 0原文

嘿,表达引擎新手 - 喜欢它,但在链接到外部文件时遇到困难。我知道这因服务器而异,但目前我认为这些问题没有结束,并且希望能在正确的方向上推动。任何程度的服务器问题都会让我惊慌失措。他们是我的氪石。

1) Expression Engine 2.1 安装在我们网站的子文件夹中 (www.website.com/client)

2) 我制作了一个模板组并将其设置为另存为文件,并在子文件夹 (system/expressingengine) 中上传了徽标/templates/default_site/site.group/images/logo.jpg)

链接到任一(www.website.com/client/images/logo.jpg)链接都无效。像 (www.website.com/client/system/expressionengine/templates/default_site/site.group/images/logo.jpg) 这样的较长变体也不会

停止。

Hey, new to expression engine - loving it, but having difficulties with linking to external files. I know this differs from server to server, but at present I see no end to these woes and would appreciate a nudge in the right direction. Server issues of any shade tend to give me panic attacks. They are my kryptonite.

1) Expression Engine 2.1 is installed in a subfolder of our site (www.website.com/client)

2) I have made a template group and set it up to save as files, and uploaded a logo within a subfolder (system/expressionengine/templates/default_site/site.group/images/logo.jpg)

Linking to either (www.website.com/client/images/logo.jpg) links to naught. Neither do longer variations like (www.website.com/client/system/expressionengine/templates/default_site/site.group/images/logo.jpg)

Halp.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

撕心裂肺的伤痛 2024-09-21 20:19:34

模板组并不意味着保存这种静态内容,/templates 不是公开的(在我们的安装中,它甚至超出了 www)。

您需要将上传文件夹更改为 /client/themes/uploads 或类似的文件夹,然后您可以通过 {path=themes/uploads}/image_name.jpg 访问您的上传内容

Template groups are not meant to hold that kind of static content, /templates is not public (at our install it is even outisde of www).

You need to change your upload folder to /client/themes/uploads or something similar, then you can access your uploads as {path=themes/uploads}/image_name.jpg

丑丑阿 2024-09-21 20:19:34

尝试使用路径: /images/logo.jpg 或 /client/images/logo.jpg

另外,请将这些问题定向到 http://expressionengine.com/forums/viewforum/113/

您将从更多知识渊博的用户那里获得帮助。

try using the path: /images/logo.jpg or /client/images/logo.jpg

Also, direct those questions to http://expressionengine.com/forums/viewforum/113/

you'll receive help from a larger pool of knowledgeable users.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文