Autoroute pattern from a contentitem via a contentitempicker

Topics: General, Writing modules
Jun 24, 2013 at 4:40 PM
Hi All,

A little help would be appreciated.
I have a content item, and on the autoroute part I would like the pattern to include the shop name. I have a field (contentItemPicker) that will link this.
When i create a pattern like;

shop/{Content.Fields.ProductGroupPart.Shop}/{Content.Slug}

It returns only the number of the contentitem shop, I understand why, but what I can't figure out is how to take that and return the title (or the slug) of the shop.

I have looked at token fields but it always returns emtpy.

Any ideas?

Thanks
Roland
Coordinator
Jun 24, 2013 at 7:23 PM
Can you try with this :

shop/{Content.Fields.ProductGroupPart.Shop.Slug}/{Content.Slug}

As I read the source code for this field's tokens, it's returning the first Id by default (what you experience successfully) then it's chained as a Content token, which lets you access every sub token defined for Conten, so here you should be able to use .Slug
Jun 25, 2013 at 10:17 AM
No it didn't work, just returns an empty value.
Jun 26, 2013 at 10:01 AM
Any other ideas?