1

私はEEに比較的慣れておらず、カテゴリに問題があります...

私はここにこのページを持っています:

http://www.nationallighting.ie/testbed/index.php/products

すべての製品が分類されてボックスに分割されているため、1つのボックスをクリックすると、divスライドがカテゴリを表示します。(これまでのところ、いくつかのアイテムを追加しただけです。たとえば、アウトドアカテゴリには2つあります)

今私の問題は、単一のアイテムをクリックして「単一の製品」テンプレートに移動すると、

http://www.nationallighting.ie/testbed/index.php/products-single

リストされているカテゴリごとに1つのアイテムがありますが、最初にクリックしたアイテムのみを表示したいので、「単一の製品」テンプレートにのみ1つのアイテムがあります。

これが「単一製品」テンプレートのEEコードです。明らかに私は何か間違ったことをしていて、それが何であるかわかりません!!! どんな助けでも大歓迎です!!!

        <!-- content about inside -->
    <div class="inside products">
    <h3>Product details</h3>
    {exp:channel:categories style="linear" channel="products"}
    {exp:channel:entries channel="single_product" category="{category_id}" limit="1"}
    <div class="description">

        <img src="{cat_main_image}" alt="{title}" />
        <div class="descr-inside">
        <h3>Crystal - Sgopera-3ch</h3>
        <p><strong>Description: </strong>3 Light Pendant with glass beads</p>
        <p><strong>Supplier: </strong>Endon</p>
        <p><strong>Width: </strong>455mm</p>
        <p><strong>Height: </strong>695mm</p>
        <p><strong>Lamp Type: </strong>GU10</p>
        <p><strong>Max. Wattage: </strong>3 x 50W</p>
        <p><strong>Energy saving: </strong>yes</p>
        </div>

    </div>
    {/exp:channel:entries}
    {/exp:channel:categories}
    </div> <!-- end of inside -->
4

0 に答える 0