Skip to content

Instantly share code, notes, and snippets.

@adrigen
Created November 24, 2014 21:46
Collection template
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:metal="http://xml.zope.org/namespaces/metal"
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
lang="en"
metal:use-macro="here/main_template/macros/master"
i18n:domain="plone">
<body>
<metal:content-core fill-slot="content-core">
<metal:block use-macro="context/standard_view/macros/content-core">context
<metal:entries fill-slot="entries">
<metal:block use-macro="context/standard_view/macros/entries">
<metal:entry fill-slot="entry">
<div class="tileItem visualIEFloatFix"
tal:define="obj item/getObject">
<div class="icon">
<p tal:attributes="class python:resource_type[:4]" /><!--image set in diazo--></div>
<span class="listingEntryTitle" metal:define-macro="listitem">
<a href=
"#"
class="summary url"
tal:attributes="href python:item_type in use_view_action and item_url+'/view' or item_url;"
tal:content="item/Title">
Item Title
</a>
</span>
<div metal:use-macro="context/standard_view/macros/document_byline"></div>
<span class="" tal:condition="item_description">
<span class="listingEntryDescription" tal:content="item_description">
description
</span>
</span>
<input value="0" class="item_Quantity" type="hidden"/>
<span class="item_price" style="display:none;"></span>
<br/><button>Add to cart</button>
<div class="visualClear"><!-- --></div>
</div>
</metal:entry>
</metal:block>
</metal:entries>
</metal:block>
</metal:content-core>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment