Hi Everyone,
I have been working to solve an interesting product display arrangement that my client wants. I have found some work-arounds using just structure default tags. I hope that someone may provide a solution for the wall I’ve hit.
The goal of the client is to have tables for each product sub-category, with the products of that subcategory listed. The client wants to able to change two of the table column labels, and then be able to enter these features for each product. Please look at the screenshots to see what I mean.
My solution was to have two fields in the Subcategory page to create the table column labels. Each individual product entry for that category contains corresponding features to the labels .
The problem I am having is for the page to automatically generate all this information. So far I am able to have it generate each sub-categories lname and two column labels. I am having trouble getting it to display jthe children/individual products for each of these categories. Right now I am using the entry id #’s but this isn’t dynamic.
{exp:weblog:entries entry_id="{exp:structure:child_ids entry_id='{segment_3}'}" limit="1" fixed_order="{exp:structure:child_ids entry_id='{segment_3}'}" parse="inward"}
<h5>{title}</h5>
<table class="tiger-stripe">
<thead>
<tr>
<th>Model</th>
<th class="description">Description</th>
{feature_titles}
<th>{feature1_title}</th>
<th>{feature2_title}</th>
{/feature_titles}
<th>Price</th>
</tr>
</thead>
<tr>
{/exp:weblog:entries}
{exp:weblog:entries entry_id="{exp:structure:child_ids entry_id='26'}" fixed_order="{exp:structure:child_ids entry_id='26'}" parse="inward"}
{table_info}
<td>{cell_1}</td>
<td class="description">{cell_2}</td>
<td>{cell_3}</td>
<td>{cell_4}</td>
<td>Table Cell</td>
{/table_info}
</tr>
{/exp:weblog:entries}
</table>
{exp:weblog:entries entry_id="{exp:structure:child_ids entry_id='{segment_3}'}" limit="1" offset="1" fixed_order="{exp:structure:child_ids entry_id='{segment_3}'}" parse="inward"}
<h5>{title}</h5>
<table class="tiger-stripe">
<thead>
<tr>
<th>Model</th>
<th class="description">Description</th>
{feature_titles}
<th>{feature1_title}</th>
<th>{feature2_title}</th>
{/feature_titles}
<th>Price</th>
</tr>
</thead> {/exp:weblog:entries}
<tr>
{exp:weblog:entries entry_id="{exp:structure:child_ids entry_id='26'}" fixed_order="{exp:structure:child_ids entry_id='26'}" parse="inward"}
{table_info}
<td>{cell_1}</td>
<td class="description">{cell_2}</td>
<td>{cell_3}</td>
<td>{cell_4}</td>
<td>Table Cell</td>
{/table_info}
</tr>
{/exp:weblog:entries}
</table>I am not much of a developer, and am open to any better solutions offered. I would also appreciate some sort of quick solution for getting it to work as is.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.