I have a Content type called Article, under which I have an article type field, which is a select list/dropdown field. The options of the field is as follows:
0Editorials|Editorial 2Feature|Feature 5Spotlight|Spotlight 6Special|Portraits 3Perspective|Perspective 8Research in Translation|Research in Translation 7Columns|Column 4Interviews|Interview 1PhotoEssay|Photo Essay 0Introduction|Special
The reason I have numbers in the key is so that I can sort the results in a particular view in the order I want to (This view pulls results from multiple article types and I want them custom sorted).
Now, I have another view whose path is
/articles/%, where the view pulls articles from a particular article type based on the contextual filter provided by the URL.
The issue I'm facing is, The contextual filter value is actually the "key" of the article type field.
/articles/2Feature pulls articles having the article type as Feature, but
/articles/Feature doesn't work at all.
I don't want to use the key for both the path and the title. Can I use the label rather than the key for both?
Hope the question is clear. Thanks.