Import Types Documentation


Overview

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

  1. Users
  2. Listings
  3. Reviews
  4. 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>
            

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>