Tutorials
What do I need?
What do I do?
<tal:VIDEO_STATIC content="structure TEMPLATES/ptVideo_Anastas" />
What should I see?
In this example, ptVideo_Anastas is a static video template in our "templates" folder.
What do I need?
What do I do?
<tal:VIDEOS_MANUAL define="BLOCK python: MASTER.pyCFD('https://engineering.purdue.edu/Engr/AboutUs/News/Events/DistinguishedLectures/2018/anastas-lecture')[0];" content="structure python: MASTER.ptVideo().format(**BLOCK)" />
What should I see?
In this example, a URL of 'https://engineering.purdue.edu/Engr/AboutUs/News/Spotlights/2021/me-team-cool-fabric' has been manually entered.
What do I need?
What do I do?
<tal:VIDEOS_CURATED define="BLOCK python: MASTER.pyCFD(LISTS.plCurated_Videos(), False)[0];" content="structure python: MASTER.ptVideo().format(**BLOCK)" />
What should I see?
In this example, the URL at the top of our plCurated_Videos Persistent list is 'https://engineering.purdue.edu/Engr/AboutUs/News/Spotlights/2021/me-team-cool-fabric'.
What do I need?
What do I do?
<tal:VIDEOS_DYNAMIC define="DATA python: REQUEST.set('DATA', { 'AMOUNT' : 1, 'HAS_VIDEO' : True, 'PUBLISHED' : True, 'SORTS' : [ 'show_date' ], 'SOURCE' : container.getRoot().Engr.AboutUs.News.Spotlights['2018'](), 'TEMPLATE' : MASTER.ptVideo});" content="structure MASTER/ptWrap_Clear" />
What should I see?
In this example, the most recently published event document with a "video" property in container.getRoot().Engr.AboutUs.News.Spotlights['2018'] is displayed.
What do I need?
What do I do?
<tal:VIDEOS_TAGGED define="DATA python: REQUEST.set('DATA', { 'AMOUNT' : 1, 'HAS_VIDEO' : True, 'PUBLISHED' : True, 'SORTS' : [ 'show_date' ], 'SOURCE' : MASTER.pyTagSearch('Research'), 'TEMPLATE' : MASTER.ptVideo});" content="structure MASTER/ptWrap_Clear" />
What should I see?
In this example, the most recently published event document tagged as "Research" and with a "video" property.