Here is a good way to display a grid of external content in an email without repeating a significant amount of AMPscript. It utilizes an XML string and uses XPATH to retrieve content using the BuildRowSetFromXML() function.
Slide deck from my ExactTarget Connections Conference 2014 presentation
Helpful Links/Resources
Double Wide v2 – Responsive Email Pattern
XPATH reference
All AMPscript Functions
LookupOrderedRows() Function
BuildRowsetFromXML() Function
TreatAsContent() Function
ContentAreaByName() Function
Product Data Extension
SKU | ProductImageURL | AvgCustomerRating | ApprovedForEmail |
---|---|---|---|
1234 | http://placehold.it/150x150&text=1234 | 4 | true |
2468 | http://placehold.it/150x150&text=2468 | 3 | true |
1357 | http://placehold.it/150x150&text=1357 | 5 | true |
Email Init Section
Email Body
Content Area Init Section
Content Area Body
Questions? Comments? Feel free to leave a comment below.
(Visited 2,008 times, 1 visits today)