Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SilverStripe 4 upgrade #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 14 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,42 +7,39 @@

## Requirements

* SilverStripe 3.1
* SilverStripe 4.4

## Documentation

This module provides integration with Typeform.com and SilverStripe in a way
This module provides integration with Typeform.com and SilverStripe in a way
that SilverStripe `Page` objects can have a linked Typeform Form and submissions
made through Typeform are brought into SilverStripe to be managed through a
`ModelAdmin` interface.

## Installation

composer require "dnadesign/silverstripe-typeform"
composer require "dnadesign/silverstripe-typeform"

## Usage

Add the `TypeformExtension` extension to your formable page type. For
example, in mysite/_config/extensions.yml
Add the `TypeformExtension` extension to your formable page type. For
example, in `app/_config/extensions.yml`

Page:
extensions:
- TypeformExtension
Page:
extensions:
- DNADesign\Typeform\Extensions\TypeformExtension

Rebuild the database and complete the new Typeform tab in the CMS.

To sync submissions call `dev/tasks/SyncTypeformSubmissions`. You can also sync
individual forms (say on submission callback) by creating an action and manually
invoking the `SyncTypeformSubmissions_Single` class
invoking the `SyncTypeformSubmissionsSingle` class

$sync = new SyncTypeformSubmissions_Single($this->TypeformKey);
$results = $sync->syncComments($this);
$sync = new SyncTypeformSubmissionsSingle($this->TypeformKey);
$results = $sync->syncComments($this);

## Features

* Imports questions, forms and submissions into SilverStripe Data Models
* Attach Typeform pages to any SilverStripe Object
* CMS Admin interface for viewing and managing Typeform data



* Imports questions, forms and submissions into SilverStripe Data Models
* Attach Typeform pages to any SilverStripe Object
* CMS Admin interface for viewing and managing Typeform data
1 change: 0 additions & 1 deletion _config.php
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
<?php

6 changes: 6 additions & 0 deletions _config/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
Name: typeform
---
SilverStripe\SiteConfig\SiteConfig:
extensions:
- DNADesign\Typeform\Extensions\TypeformSiteConfigExtension
3 changes: 0 additions & 3 deletions _config/extensions.yml

This file was deleted.

9 changes: 9 additions & 0 deletions _config/legacy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
Name: eventslegacy
---
SilverStripe\ORM\DatabaseAdmin:
classname_value_remapping:
TypeformQuestion: DNADesign\Typeform\Model\TypeformQuestion
TypeformSubmission: DNADesign\Typeform\Model\TypeformSubmission
TypeformSubmission_Answer: DNADesign\Typeform\Model\TypeformSubmissionAnswer
TypeformSubmission_Deleted: DNADesign\Typeform\Model\TypeformSubmissionDeleted
20 changes: 0 additions & 20 deletions code/controllers/TypeformSubmissionAdmin.php

This file was deleted.

42 changes: 0 additions & 42 deletions code/extensions/TypeformExtension.php

This file was deleted.

22 changes: 0 additions & 22 deletions code/extensions/TypeformSiteConfigExtension.php

This file was deleted.

33 changes: 0 additions & 33 deletions code/model/TypeformQuestion.php

This file was deleted.

108 changes: 0 additions & 108 deletions code/model/TypeformSubmission.php

This file was deleted.

Loading