私はCraft Shortlist
Pluginで解決できない小さな問題に悩まされてきました。私が何をしていても、{{item.title}}はリストにデフォルトリストが追加されたエントリータイトルを表示しません。
すべての機能は問題なく動作しているようですが、アイテムタイトルを表示することはできません。
コード私のリストを表示するために使用
{% set lists = craft.shortlist.lists %}
{% if lists is empty %}
You have no lists at the moment.
{% else %}
{% for list in lists %}
{{ list.title }}
{% if list.items is empty %}
This list is empty {% else %}
- {% for item in list.items %}
remove {{
item.id }} {{ item.title }}
{{ item.title }}
{% endfor %}
{% endif %} {% endfor %} {% endif %}
私のエントリにボタンを追加したり削除したりするコード
{% for entry in craft.entries.section('locations') %}
{% set item = craft.shortlist.item(entry.id) %}
{{ entry.title }}
{% if item.inList %} Remove from Favourites {% else %} Add to Favourites {% endif %} {% endfor %}
本当にこの1つのヘルプをappreaciateだろうので、詳細が必要な場合は私に知らせてください。
ベストアンサー
申し訳ありませんが、適切な答えはありません