在 drupal 6 图像中面临奇怪的问题
我在右侧边栏中插入了一个图像,它在首页工作正常,但在其他页面(我的网站中有一个名为 city 的页面),图像没有显示,包括侧边栏图像。相同的路径,一切都相同,在首页/主页中显示相同图像的情况下,不会显示静态图像。 我的图像路径是sites/default/files/images,我的站点是 http://netelityeasylife.com/drupal
请有人帮助我。建议我应该在哪里进行更改?
I had insert an image in the right sidebar and it is working fine in the front page but in other pages (there is a page called city in my site), images are not getting displayed including sidebar image. Same path and everything is same, still images are not getting displayed where in same images are displayed in front/home page.
my image path is sites/default/files/images and my site is
http://netelityeasylife.com/drupal
Please someone help me in this.Suggest me where i should make changes?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在主页上,
adv1.gif
的 URL 解析为在城市页面上,该
图像 URL 在 HTML 中编码为
sites/default/files/images/adv1.gif
。鉴于您正在查看的页面的实际 URL,这将无法正确解析。解决此问题的一种方法是在节点中对图像 URL 进行硬编码,或者提供一个可以在给定公共 HTML 文件夹基础的情况下正确解析的 URL,例如
On the main page, the URL to
adv1.gif
resolves asOn the cities page, it is
The image URL is encoded in the HTML as
sites/default/files/images/adv1.gif
. Given the actual URL of the page you are looking at, this won't resolve correctly.One way of getting around this problem is to hard-code the image URL in your node, or to provide a URL which would resolve correctly given the base of your public HTML folder, such as
看起来您已经将 drupal 安装在目录 ie drupal 中。
打开settings.php并设置
It looks like you have drupal installed in directory i.e drupal.
Open settings.php and set