Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2014
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. {exp:channel:entries
  2. channel="places"
  3. status="open"
  4. {global:channel_disable_basic}
  5. }
  6. {exp:stash:set name="place_id"}{entry_id}{/exp:stash:set}
  7. {/exp:channel:entries}
  8.  
  9. {exp:stash:set_list
  10. name="venue-events"
  11. parse_tags="yes"
  12. parse_conditionals="yes"
  13. parse_depth="3"
  14. save="yes"
  15. scope="site"
  16. }
  17. {exp:calendar:cal
  18. calendar_id="4871"
  19. first_day_of_week="1"
  20. enable="custom_fields"
  21. date_range_start="today"
  22. date_range_end="+ 12 months"
  23. pad_short_weeks="n"
  24. dynamic="yes"
  25. }
  26. {stash:venue_event_title}{title}{/stash:venue_event_title}
  27. {stash:venue_event_venue}{cf_event_venue}{entry_id}{/cf_event_venue}{/stash:venue_event_venue}
  28. {/exp:calendar:cal}
  29. {/exp:stash:set_list}
  30.  
  31. {exp:stash:get_list
  32. name="venue-events"
  33. require_prefix="no"
  34. parse_tags="yes"
  35. parse_depth="3"
  36. match="#^{exp:stash:get name='place_id'}$#"
  37. against="venue_event_venue"
  38. }
  39. <pre>{venue_event_title}, {venue_event_date}, {venue_event_venue}</pre>
  40. {/exp:stash:get_list}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement