Struggling Reusing Code from Perch 2 Site

  • I have a portfolio page using Categories, it uses a template for the item and a template for the listing. Something is going wrong. What should happen is the category assigned when adding an item in admin, should get added as a class to the div to display that item. Its also not cropping. Below is code.

    Am I using incorrect tags that changed in v3?

    For Item:

    1. <perch:categories id="media" label="Category" set="media" display-as="checkboxes"><perch:category id="catTitle" /></perch:categories>
    2. <perch:content id="slug" for="title" type="slug" suppress="true" />
    3. <perch:category id="catSlug" for="catTitle" type="slug" suppress="true" />
    4. <perch:content type="text" id="video-link" label="YouTube Link" help="Use For You Tube URLs Only" />
    5. <img src="<perch:content type="image" id="media" label="Image" />" title="<perch:content id="title" type="text" label="Media Title" title="true" />" />

    For Listing (FYI the data-filter javascript reuses the catClass):