質問 > フロント機能 > サブ画像のサイズ変更 |
フロント機能
スレッド表示 | 新しいものから | 前のトピック | 次のトピック | 下へ |
投稿者 | スレッド |
---|---|
goemon |
投稿日時: 2010/8/2 13:13
対応状況: 開発中
|
半人前 登録日: 2010/7/21 居住地: 投稿: 25 |
サブ画像のサイズ変更 2回目の質問です。
前回はすぐの対応ありがとうございました。 今回は、商品詳細ページのサブ画像のサイズを変更したいのです。 基本的に商品登録の時、500X500画像をアップすれば自動で、200X200画像で通常画像がページに表示されるのですが、その200X200の通常画像のサイズを80X80のサイズで表示されるようにしたいのです。 テキストの方はcssの変更で何とかなりそうなのですが… アドバイスをよろしくお願いします。 |
pineray |
投稿日時: 2010/8/2 13:20
対応状況: −−−
|
長老 登録日: 2006/9/9 居住地: 伊賀 投稿: 292 |
Re: サブ画像のサイズ変更 管理画面の「システム設定 -> パラメータ設定」で「NORMAL_SUBIMAGE_WIDTH」および「NORMAL_SUBIMAGE_HEIGHT」をご希望の値に書き換えて登録すれば、その大きさで表示されると思われます。
|
goemon |
投稿日時: 2010/8/2 15:19
対応状況: 開発中
|
半人前 登録日: 2010/7/21 居住地: 投稿: 25 |
Re: サブ画像のサイズ変更 pinerayさん、ありがとうございます。
出来ました。 追加で質問しても良いでしょうか? 同じサブ画像の所で、サブテキストを入力しないと画像が表示されないのですが、サブテキストを表示しなくてもサブ画像が表示されるように出来ないでしょうか? htmlソースのどこかを削除でも対処出来ますか? 画像を拡大するというアイコンも表示しないようにとも考えているのですが…、まだまだソースの判別に自信がありません。 よろしくお願いします。 <!--▼サブコメントここから--> <!--{section name=cnt loop=$smarty.const.PRODUCTSUB_MAX}--> <!--{assign var=key value="sub_title`$smarty.section.cnt.index+1`"}--> <!--{if $arrProduct[$key] != ""}--> <div class="subarea"> <h3><!--★サブタイトル★--><!--{$arrProduct[$key]|escape}--></h3> <!--{assign var=ckey value="sub_comment`$smarty.section.cnt.index+1`"}--> <!--拡大写真がある場合ここから--> <!--{assign var=key value="sub_image`$smarty.section.cnt.index+1`"}--> <!--{assign var=lkey value="sub_large_image`$smarty.section.cnt.index+1`"}--> <!--{if $arrFile[$key].filepath != ""}--> <div class="subtext"><!--★サブテキスト★--><!--{$arrProduct[$ckey]|nl2br}--></div> <div class="subphotoimg"> <!--{if $arrFile[$lkey].filepath != ""}--> <a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="win01('./detail_image.php?product_id=<!--{$arrProduct.product_id}-->&image=<!--{$lkey}--><!--{if $smarty.get.admin == 'on'}-->&admin=on<!--{/if}-->','detail_image','<!--{$arrFile[$lkey].width+60}-->','<!--{$arrFile[$lkey].height+80}-->'); return false;" target="_blank"> <!--{else}--> <a> <!--{/if}--> <!--サブ画像--> <img src="<!--{$arrFile[$key].filepath}-->" alt="<!--{$arrProduct.name|escape}-->" width="<!--{$smarty.const.NORMAL_SUBIMAGE_WIDTH}-->" height="<!--{$smarty.const.NORMAL_SUBIMAGE_WIDTH}-->" /></a> <!--{if $arrFile[$lkey].filepath != ""}--> <p> <a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="win01('./detail_image.php?product_id=<!--{$arrProduct.product_id}-->&image=<!--{$lkey}--><!--{if $smarty.get.admin == 'on'}-->&admin=on<!--{/if}-->','detail_image','<!--{$arrFile[$lkey].width+60}-->','<!--{$arrFile[$lkey].height+80}-->'); return false;" onmouseover="chgImg('<!--{$TPL_DIR}-->img/products/b_expansion_on.gif','expansion02');" onmouseout="chgImg('<!--{$TPL_DIR}-->img/products/b_expansion.gif','expansion02');" target="_blank"> <img src="<!--{$TPL_DIR}-->img/products/b_expansion.gif" width="85" height="13" alt="画像を拡大する" /> </a> </p> <!--{/if}--> </div> <!--拡大写真がある場合ここまで--> <!--{else}--> <p><!--★サブテキスト★--><!--{$arrProduct[$ckey]|nl2br}--></p> <!--{/if}--> </div> <!--{/if}--> <!--{/section}--> <!--▲サブコメントここまで--> |
AMUAMU |
投稿日時: 2010/8/2 20:34
対応状況: −−−
|
神 登録日: 2009/5/2 居住地: 東京都 投稿: 2712 |
Re: サブ画像のサイズ変更
ここのif文で判断しています。
|
スレッド表示 | 新しいものから | 前のトピック | 次のトピック | トップ |