Skip to content

Instantly share code, notes, and snippets.

@thisisjamessmith
Created October 15, 2013 20:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thisisjamessmith/6a1b4446d2097958939c to your computer and use it in GitHub Desktop.
Save thisisjamessmith/6a1b4446d2097958939c to your computer and use it in GitHub Desktop.
{!-- ====================================
This set_list tag takes a list of all the
programme-ids present in the full XXXX feed
(as set in the XXXX-feed Stash template) and
fetches all the corresponding film entries
and their field data from EE.
Add any custom fields you need as Stash vars here.
========================================= --}
{exp:stash:set_list name="films"
parse_tags="yes"
save="yes"
replace="no"
scope="site"
}
{exp:channel:entries
channel="films"
disable="categories|member_data|pagination"
dynamic="no"
parse="inward"
search:film-XXXX-id="dummy-{stash:prog-ids}"
}
{stash:film-link}{url_title_path=film}{/stash:film-link}
{stash:title}{title}{/stash:title}
{stash:film-rating}{film-rating}{/stash:film-rating}
{stash:film-still-1}{film-still-1}{/stash:film-still-1}
{stash:film-still-2}{film-still-2}{/stash:film-still-2}
{stash:film-poster}{film-poster}{/stash:film-poster}
{/exp:channel:entries}
{/exp:stash:set_list}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment