Having a strange issue with grid, categories and relationships. On my site i have a channel with products and services. On the services pages i need my client to be able to select related products to be shown, so i used a grid field with relationships to products. The products are categorised, so i want to see the category_url_title in the url.
I checked this thread and followed that approach however i'm not getting this to output anything. (http://www.site.com/producten//systeemoefeningen/ for what should be http://www.site.com/producten/oefenen/systeemoefeningen/)
{services_grid_products}
<li><a href="/producten/category/
{services_grid_products:product}
{services_grid_products:product:categories}
{services_grid_products:product:categories:category_url_title}
{/services_grid_products:product:categories}
{/services_grid_products:product}/{url_title}/"
title="
{services_grid_products:product}
{services_grid_products:product:title}
{/services_grid_products:product}">
{services_grid_products:product}
{services_grid_products:product:title}
{/services_grid_products:product}</a></li>
{/services_grid_products}
I know i can do this with an embed too, however i'm trying to avoid them as much as possible.