I am having issues using the new grid fieldtype introduced in 2.7
Here is my code:
{exp:channel:entries channel="slabs" dynamic="no" entry_id="{segment_3}"}
<div class="grid_3 portfolio_widget">
<a href="http://{slab_image}%22class=%22zoomoff" class="zoomoff overlay">" ]_ {if slab_sale == 'Yes'}_ <div class="flag_sale_x"></div>_ {/if}_ {if slab_new == 'Yes'}_ <div class="flag_new_x"></div>_ {/if}_ <div class="portfolio_widget_image_x">_ {slab_image:small}_ </div>_ </a>
<div class="portfolio_image_underline"></div>
<div class="portfolio_widget_caption"> </div>
</div>
{!-- loop thru all additional images --}
{slab_grid}
<div class="grid_3 portfolio_widget">
{slab_grid:count}
<a href="http://{slab_grid:slab_grid_image}%22class=%22zoomoff" class="zoomoff overlay">" ]__ <div class="portfolio_widget_image_x">_ {slab_grid:slab_grid_image:small}_ </div>_ </a>
<div class="portfolio_image_underline"></div>
<div class="portfolio_widget_caption">**{slab_grid:slab_grid_gallery}**</div>
</div>
{/slab_grid}
{/exp:channel:entries}I am having trouble accessing the grid items in the bottom loop (contained in {slab_grid} {/slab_grid}.
The {slab_grid:count} correctly returns the looping count, so I know I’m in the loop the correct number of times. I need to access the {slab_grid:slab_grid_image} and also the {slab_grid:slab_grid_gallery}.
The “slab_grid_image” points to an uploaded file and the “slab_grid_gallery” is a drop down list so we can determine what gallery (if any) the additional image should be related too.
Any help would be appreciated…