最近、MODxRevolutionを使用してWebサイトを開設しました。同じ名前のプラグインを使用してギャラリーを作成しようとしています。アップロードされた元の画像が表示されているリンクをクリックしてください。これが私のギャラリーページのコードです:
<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>
これにより、次の(例)URLが生成されます。
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でテスト済み)でフォローすると(6と9でテスト済み)、画像は問題なく表示されます。ただし、私がテストした他のすべてのブラウザーでは、notepad++または別のテキストエディターで画像をロードした場合と同じように表示されます。
画像に対して「名前を付けて保存」を右クリックすると、画像ではなくphpリダイレクトが保存され、「画像を右クリック」すると上記のリンクと同じになります。
したがって、私はa)これを修正する方法があるか、b)phpページを経由せずに画像に直接リンクする方法があるかどうかを尋ねています。
あなたが与えることができるどんな助けにも感謝します、
サイモン