我最近使用MODx Revolution设置了一个网站。我正在尝试使用相同名称的插件制作一个画廊。我希望它能够点击一个链接,该链接显示原始图片,因为它已上传。这里是我的画廊页面代码:MODx图库无法正确显示图像
<div class="ContentHead">[[*longtitle]]</div>
<p>This page contains galleries of various images I have taken or made. Each has a description, so feel free to browse. Clicking thumbnails will reload the page, and may take some time to load a larger version of the image - but it will get there!</p>
<p>[[!Gallery? &toPlaceholder=`gallery`]] [[!GalleryItem? &imageWidth=`900` &imageHeight=`900`]] [[!GalleryAlbums? &prominentOnly=`0` &limit=`0` &rowTpl=`galAlbumRowTplCustom` &toPlaceholder=`galleries`]]</p>
<div align="center">| [[+galleries]]</div>
<hr />
<p><a name="largeImage"></a></p>
<p> </p>
<p>[[!+galitem.image:notempty=`</p><div class="image"><img class="[[+galitem.imgCls]]" src="[[+galitem.image]]" alt="[[+galitem.name]]" /><br/>[[+galitem.description]]<br />Albums: [[+galitem.albums]] <br />Tags: [[+galitem.tags]]<br/><a href="[[!+galitem.image]]">View original image</a><hr /></div> <p>`]]
[[!+gallery:notempty=`</p><div ><h1 style="font-size: 20px; font-weight: bold; font-family: Calibri;">[[+gallery.name]]</h1><h2 style="font-size: 18px; font-weight: normal; font-family: Calibri;">[[+gallery.description]]</h2><p> </p><h2 style="font-size: 18px; font-weight: normal; font-family: Calibri;">[[+gallery]]</h2> </div>`]]
<div style="height:600px"><!--This ensures that when a thumb is clicked, the gallery isn't pushed below the footer.--></div>
导致该问题的代码:
<a href="[[!+galitem.image]]">View original image</a>
产生以下(例子)网址:
http://www.reflectric.com/assets/components/gallery/connector.php?action=web/phpthumb&w=900&h=900&zc=0&far=&q=90&src=http%3A%2F%2Fwww.reflectric.com%2Fassets%2Fcomponents%2Fgallery%2Ffiles%2F3%2F28.bmp
如果您按照它(继续,尝试它!)在Internet Explorer上(在6和9测试),它显示图像就好了。然而,在我测试过的每一个浏览器中,它都会提供与在记事本++或另一个文本编辑器中加载图像相同的结果。
在图像上执行“右键另存为”会导致保存php重定向,而不是图像,而“右键单击视图图像”与上面的链接相同。
因此,我要求要么 a)是有办法解决这个问题, 或b)是有办法直接链接,而不是通过PHP页面将图像,?
感谢您的帮助,您可以给,
西蒙
关于splittingreds Gallery github-repo报告了类似的问题。然而,图像然后没有使用 ...服务。问题在几天后关闭。见:https://github.com/splittingred/Gallery/issues/104 – Wolff 2011-07-18 09:42:02
这个评论是正确的答案 - 基本上这是一个问题,与图书馆的版本,它已经在下一次更新中解决 – simonalexander2005 2011-07-19 15:47:07