Tutorials
What do I need?
What do I do?
<tal:BANNER_STATIC content="structure TEMPLATES/ptBanner_Gilbreth" />
What should I see?
In this example, ptBanner_Gilbreth is a static banner template in our "templates" folder.
First Lillian Gilbreth Postdoctoral Fellows Honored
Five of the world’s most promising young engineering scholars have been honored by Purdue Engineering as inaugural recipients of the prestigious Lillian Gilbreth Postdoctoral Fellowship in recognition of their outstanding scholarly achievements and proposed innovative interdisciplinary research and its potential for broad impact on industry and society.
What do I need?
What do I do?
<tal:BANNER_MANUAL define="BLOCK python: MASTER.pyCFD('https://engineering.purdue.edu/Engr/AboutUs/News/Spotlights/2018/first-lillian-gilbreth-postdoctoral-fellows-honored')[0];" content="structure python: MASTER.ptBanner().format(**BLOCK)" />
What should I see?
In this example, a URL of 'https://engineering.purdue.edu/Engr/AboutUs/News/Spotlights/2018/first-lillian-gilbreth-postdoctoral-fellows-honored' has been manually entered.
First Lillian Gilbreth Postdoctoral Fellows Honored
What do I need?
What do I do?
<tal:BANNER_CURATED define="BLOCK python: MASTER.pyCFD(LISTS.plCurated_Banners(), False)[0];" content="structure python: MASTER.ptBanner().format(**BLOCK)" />
What should I see?
In this example, the URL at the top of our plCurated_Banners persistent list is 'https://engineering.purdue.edu/Engr/AboutUs/News/Spotlights/2018/first-lillian-gilbreth-postdoctoral-fellows-honored'.
First Lillian Gilbreth Postdoctoral Fellows Honored
What do I need?
What do I do?
<tal:BANNER_DYNAMIC define="DATA python: REQUEST.set('DATA', { 'AMOUNT' : 1, 'BANNER' : True, 'PUBLISHED' : True, 'SORTS' : [ 'show_date' ], 'SOURCE' : container.getRoot().Engr.AboutUs.News.Spotlights['2018'](), 'TEMPLATE' : MASTER.ptBanner});" content="structure MASTER/ptWrap_Clear" />
What should I see?
In this example, the most recently published event document with a "-banner" image in container.getRoot().Engr.AboutUs.News.Spotlights['2018'] is displayed.
Engineering’s Undergraduate Research Office to Open in January
What do I need?
What do I do?
<tal:BANNER_TAGGED define="DATA python: REQUEST.set('DATA', { 'AMOUNT' : 1, 'BANNER' : True, 'PUBLISHED' : True, 'SORTS' : [ 'show_date' ], 'SOURCE' : MASTER.pyTagSearch('Research'), 'TEMPLATE' : MASTER.ptBanner});" content="structure MASTER/ptWrap_Clear" />
What should I see?
In this example, the most recently published event document tagged as "Research" and with a "-banner" image is displayed.
SK hynix announces semiconductor advanced packaging investment in Purdue Research Park
What do I do?
<tal:BANNERLINKS content="structure TEMPLATES/ptBannerLinks" />