ImpulseSync™ User Manual
HomePricingContact Us
  • Introduction
    • What is Impulse?
  • Crash Course of ImpulseSync
    • Overview Of ImpulseSync
    • Step 1: Endpoints
      • Endpoint Configuration
    • Step 2: Jobs
      • Job Configuration
      • Step 2a: Content manipulators
      • Step 2b: Content mapper
    • Step 3: Syncing
  • Getting Started
    • Core Concepts
    • Creating Endpoints
    • Creating Jobs
    • Starting a Transaction
    • Transaction Reports
    • Automating Jobs with Pipelines
    • Scripting Post Sync
    • Scheduling Jobs and Pipelines
    • Dashboard
    • Managing Jobs/Pipelines
    • Content Mapper
      • Aligning Mismatched Content
      • Connector Matrix
      • Locked Fields
      • Content Aligner
      • Aligning Content Challenges
  • Reports
    • Reports Screen
    • Debug Report
    • Messages
  • Connectors
    • Common Job Options
    • All Connectors List
    • Source Connectors
      • Contentful
      • Contentstack
      • dotCMS
      • Drupal v7
      • Drupal v9
      • GitHub
      • GraphQL
      • MS Teams
      • SCP
      • Snapshot
      • Strapi v3
      • Strapi v4
    • Destination Connectors
      • Contentful
      • Contentstack
      • dotCMS
      • SCP
      • Strapi v3
      • Strapi v4
  • Content Manipulators
    • Common Manipulator Options
    • Add Replace Field
    • AI(Artificial intelligence)
    • Change ID Manipulator
    • CSV Store Manipulator
    • Dynamic Job Store Manipulator
    • File to Text
    • Folder Manipulator
    • Get and Set Field
    • Language
    • Liquid Field
      • Liquid On the Quick
      • Basics
        • Impulse Values
        • Impulse Variables
        • Operators
        • Truthy and falsy
        • Types
        • Whitespace control
      • Tags
        • Control flow
        • Impulse Content Objects
        • Iteration
        • Utility
        • Variable
      • Filters
        • abs
        • append
        • capitalize
        • ceil
        • compact
        • concat
        • date
        • date_str
        • default
        • divided_by
        • downcase
        • escape
        • escape_once
        • first
        • floor
        • getStoredValue
        • htmlQuery
        • htmlReplace
        • idMap
        • join
        • jq
        • json
        • last
        • lstrip
        • map
        • minus
        • modulo
        • newline_to_br
        • plus
        • prepend
        • remove
        • remove_first
        • replace
        • replace_first
        • reverse
        • round
        • rstrip
        • section
        • sections
        • size
        • slice
        • sort
        • sort_natural
        • split
        • str_to_date
        • strip
        • strip_html
        • strip_newlines
        • times
        • truncate
        • truncatewords
        • type
        • uniq
        • upcase
        • utl_decode
        • url_encode
      • Liquid Playground
    • Markdown
    • Regex
    • Relationship
    • Store Field
    • Tidy
  • Time Machine
    • Snapshot
    • Viewing Snapshots
    • Delivery from Snapshots
  • Cookbook Recipes
    • Adding Fields
    • Aligning Content between Endpoints
    • Avoid overriding Fields
    • Avoid syncing Content Types
    • Combing Fields
    • Default Field Value
    • File (.doc) to Structured Content
    • File (.docx) to Structured Content - Expanded
    • HTML to Structured Content
    • Language (Locale) mismatch between endpoints
    • Paths/IDs Changed
    • Reference to Value
    • Single Content Type to Multiple
    • Splitting Content with Reference
    • Syncing Content with Languages
    • Text Select to Boolean
    • Text to Reference
    • Text to Reference - liquid
    • Two Sources to One Destination
    • Changing a folder path
    • Combining data between content types
    • Converting HTML Sections
    • JSON object to reference
    • Use CSV to convert values
    • Storing fields with Store field motator
  • Troubleshooting
    • What to do if I run into a Job Problem
    • Troubleshooting via UI
    • Submitting a ticket
  • Using Impulse Headlessly
    • Getting Started with cURL
      • Creating Endpoints
      • Creating Jobs
      • Starting a Transaction
      • Transaction Reports
      • Automating Jobs with Pipelines
      • Scheduling Jobs and Pipelines
      • Aligning Mismatched Content
      • Scripting Post Sync
  • Organization Tier Restrictions
  • Content Storage Options
Powered by GitBook
On this page
  • Specifics
  • Endpoint Config
  • Additional Plugins
  • Unsupported
  • Database support
  • Adapter Properties
  • Job Options
  • path and contentType Job Options
  • Locations:
  • Presentation Layer
  • Motation Object Support
  • Content Mapper
  • Troubleshooting
  1. Connectors
  2. Destination Connectors

dotCMS

The destination dotCMS connector allows content to transformed from motation and be synced to dotCMS versions 5.2.7 to 5.3.3

Specifics

The destination dotCMS connector is able to sync both content and files.

Endpoint Config

When saving an endpoint for a dotCMS repository via REST instead of the UI you must use the following key:value pairs in the payload.

  • contentRepo:dotcms

  • contentRepoVersion:5.2.7

Additional Plugins

Cache Buster

With the way that the dotCMS cache and reindexer works, occasionally when updating a piece of content, the reindexer is unable to complete its job because the cache is not up to date. The solution is to clear the appropriate caches so that the reindexer is able to index the content. The cache buster plugin works in tandem with the destination dotCMS connector to clear the identifier and contentlet caches.

The destination dotCMS connector creates files in the dotCMS assets folder at the paths

motiv-adapter/buster/identifiercache and motiv-adapter/buster/contentletcache

The cache buster scans for those files along those paths and removes the content from the appropriate cache. This allows the reindex process to finish and reindex the updated content.

Unsupported

ONLY Content and Files are currently implemented. No other types are implemented yet.

Permission will not sync.

If a structure is being synced and saved to a host that does not exist prior to the sync transaction the structure will not be synced. This can be solved by manually creating the site/host record in the identifier with the problematic ID. In addition setting the defaultHostStructure property should help avoid this situation.

Database support

Postgres and MS-SQL

Adapter Properties

Property
Purpose
Required

dbUser

The username used to connect to the dotCMS database

true

dbPassword

The password used to connect to the dotCMS database.

true

dbConnectionURL

The URL to connect to the dotCMS database. The URL must complain the following format: Postgres example:

MS-SQL example:

true

assetsPath

The full assets path to the assets folder in dotCMS.

true

defaultLanguageCode

The default language code to use when no language code is found.

true

defaultCountryCode

The default country code to use when no country code is found.

true

defaultHostStructure

The id of the default host content type to sync content to when the host does not exist.

true

Job Options

Name
Description
Data Type
Required
Default Value

path

Array

No

No Default Value

contentType

Array

No

No Default Value

location.site

Overwrite the site to save files to.

Text

No

No Default Value

location.path

Overwrite the path to save files to.

Text

No

No Default Value

path and contentType Job Options

The path and contentType Job Options are used to search for contents that match the options criteria, the returned contents are used to compare against the source endpoint contents to define what needs to be synced to this destination connector.

Requesting specific contentlets:

Example1: Specifying the host name

Example2: Without a host name

Where content.ef67af58-c36b-4127-afb6-03928ad41673 is the asset name of the contentlet to sync in the identifier table and it lives in the root folder (parent path == /)

  • If no hostname is provided the adapter will use the default host.

  • The provided hostname needs to exist otherwise the adapter will fail (we need to fix this).

Using a folder to sync files under it

Example1: Specifying the host name

Example2: Without a host name

Using a content type to sync contentlets of the given Content Type type

Note: only one content type is supported for syncing per job.

Example: webPageContent

Locations:

The Adapter Write supports the concept of locations, locations allow you to override the location of the synced content and support two properties: location.site and location.path, both properties are optional.

Examples: "endpoints": [ { "id": "2e96da36-60a6-4937-9457-7b682aa546dc", "type": "destination", "detail": "location.site:demo.dotcms.com,location.path:/new/path/" } ]

The location properties will only work on the destination instance.

Presentation Layer

The Presentation Layer objects are specific to the dotCMS system. They represent elements that are unique to the dotCMS system and cannot be synced to a different type of system. For example, it will work from dotCMS to dotCMS, does not make sense to try to sync Presentation Layer objects from dotCMS to Strapi as those elements are unique in dotCMS.

Elements deliver when the Presentation Layer is active in dotCMS are:

  • Languages

  • Containers

  • Templates

To sync the data of these type of elements you will need to enable the systemObjects job option from a source dotCMS endpoint.

Note: It is recommended to use the systemObjects option always together with the dependenciesDepth option as most of the time, Presentation Layer elements depend on other contents, for example, a Template related to a dotCMS Page (that is sent when the Presentation Layer is active) needs of the Theme files associated to that Template, and those theme files will be sent as part of the content Dependencies. It is the same for the Containers, Containers are sent when the Presentation Layer is active but when sending Containers related to a dotCMS Page you will also like to have the Contents associated to that page using that Container.

Motation Object Support

Object
Supported

Category

Yes

Definition

Yes

Domain

Yes

Folder

Yes

Language

Yes

Relationship

Yes

Tag

Yes

Content Mapper

Below are details on how to find the appropriate values to use in the content mapper.

  • mapping.uniqueId

    • Content type's velocity variable name

  • fields.mapping.uniqueId

    • Field velocity variable name

Troubleshooting

PreviousContentstackNextSCP

Last updated 2 years ago

postgres://source-dotcms-db:5432/dotcms
sqlserver://source-dotcms-db:1433/dotcms