プラグイン > バグ報告・利用に関する質問 > Impossible to access an attribute ("name01") on a string variable ("anon.").について |
バグ報告・利用に関する質問
フラット表示 | 前のトピック | 次のトピック |
投稿者 | スレッド |
---|---|
shige0309 |
投稿日時: 2019/3/24 1:40
対応状況: −−−
|
半人前 登録日: 2018/2/27 居住地: 投稿: 28 |
Re: Impossible to access an attribute ("name01") on a string variable ("anon.").について umebius様
ご返信ありがとうございます! 新着情報画像 for EC-CUBE3ですが、 {% if NewsImages[News.id] %} <img src='{{ app.config.image_save_urlpath }}/{{ NewsImages[News.id] }}' /> {% endif %} 「新着情報ブロック編集ページの「{% for News in NewsList %}{% endfor %}」内に上記タグを追加して下さい。」とのことです。 とりあえず確認した所、新着情報ブロックに埋め込んでありました。 「新着情報ブロック」 <li class="col-xl-4 col-lg-4 col-md-4 mt-3 col-sm-4 col-6"> {% if News.url %} <a href="{{ News.url }}" {% if News.link_method=='1' %}target="_blank" {% endif %}>{% endif %} {% if NewsImages[News.id] %} <img src="{{ app.config.image_save_urlpath }}/{{ NewsImages[News.id] }}"/> {% else %} <img src="{{ app.config.front_urlpath }}/img/common/no_image.gif" alt="NO IMAGE"/> {% endif %} <br> <p class="topics-cat_time mt-2"><time datetime="{{ News.date|date('Y/m/d') }}">{{ News.date|date('Y/m/d') }}</time></p> <p class="font-weight-bold mt-2">{{ News.title }}</p> {% if News.comment or News.url %} <span class="mt-2 mb-5 d-inline-block">{{ News.comment|raw|nl2br }}</span> {% endif %} {% if News.url %}</a>{% endif %} </li> 申し訳ございませんが、ご教示頂けますと幸いです。 |
フラット表示 | 前のトピック | 次のトピック |