链接到表达式引擎模板中的文件(路径名问题)
嘿,表达引擎新手 - 喜欢它,但在链接到外部文件时遇到困难。我知道这因服务器而异,但目前我认为这些问题没有结束,并且希望能在正确的方向上推动。任何程度的服务器问题都会让我惊慌失措。他们是我的氪石。
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
模板组并不意味着保存这种静态内容,
/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 ofwww
).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
尝试使用路径: /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.