Import Types Documentation


Overview

This documentation provides guidance on how to use different import types for integrating data into your application. It covers five primary import types:

  1. Users
  2. Listings
  3. Transactions
  4. Reviews
  5. Custom Structures

Each import type allows you to incorporate specific data fields and structures that are crucial for your application's functionality.


Users Import Type

You can include any custom field ID from the pushed fields menu in the pages tab in place of {custom field id}.


<div tg-import-type="user">
    <div tg-attribute="id"></div>
    <div tg-attribute="display_name"></div>
    <div tg-attribute="photos_1"></div>
    <div tg-attribute="photos_2"></div>
    <div tg-attribute="photos_3"></div>
    <div tg-attribute="photos_4"></div>
    <div tg-attribute="photos_5"></div>
    <div tg-attribute="photos_6"></div>
    <div tg-attribute="photos_7"></div>
    <div tg-attribute="photos_8"></div>
    <div tg-attribute="photos_9"></div>
    <div tg-attribute="photos_10"></div>
    <div tg-attribute="city"></div>
    <div tg-attribute="state"></div>
    <div tg-attribute="review_count"></div>
    <div tg-attribute="{custom field id}"></div>
</div>
            

Listings Import Type

You can include any custom field ID from the pushed fields menu in the pages tab in place of {custom field id}.


<div tg-import-type="listing">
    <div tg-attribute="id"></div>
    <div tg-attribute="title"></div>
    <div tg-attribute="photos_1"></div>
    <div tg-attribute="photos_2"></div>
    <div tg-attribute="photos_3"></div>
    <div tg-attribute="photos_4"></div>
    <div tg-attribute="photos_5"></div>
    <div tg-attribute="photos_6"></div>
    <div tg-attribute="user_id"></div>
    <div tg-attribute="{custom field id}"></div>
</div>
            

Transactions Import Type

Transaction templates must be nested inside a tg-import-type="user" template. The profile or directory user determines whose transactions are returned.

Example: four newest confirmed or completed purchases


<div tg-import-type="user">
    <div
        tg-import-type="transaction"
        tg-transaction-status="confirmed,completed"
        tg-order="start_time-desc"
        tg-limit="4"
        style="display: none;">
        <a tg-transaction-value="link" href="/tx_instances/%7Btransaction_id%7D">
            <img tg-transaction-value="listing_photo_url" alt="">
            <span tg-transaction-value="listing_title"></span>
            <img tg-transaction-value="seller_photo_url" alt="">
            <span tg-transaction-value="seller_name"></span>
            <span tg-transaction-value="status"></span>
        </a>
        <a tg-transaction-value="listing_link">View listing</a>
    </div>
</div>
            

Reviews Import Type

Note: Reviews must be nested within a user import type.


<div tg-import-type="review">
    <div tg-review-value="id"></div>
    <div tg-review-value="label"></div>
    <div tg-review-value="rating"></div>
    <div tg-review-value="date"></div>
    <div tg-review-value="content"></div>
</div>
            

Custom Structures Import Type

You can include any custom field ID from the pushed fields menu in the pages tab in place of {custom field id}. For structures, you must use the non-friendly ID, that is, the URL from your browser when you're editing the page.

Note: TG Structure import types must be nested within a user or listing import type.


<div tg-import-type="{structure_id}">
    <div tg-structure-value="{field_id}"></div>
</div>