dev-master
9999999-devGoogle Docs content node type for the Neos CMS
MIT MIT License
The Requires
v1.0.0
1.0.0.0Google Docs content node type for the Neos CMS
MIT
The Requires
Wallogit.com
2017 © Pedro Peláez
Google Docs content node type for the Neos CMS
Google Docs content node type for the Neos CMS., (*1)
This is a proof-of-concept implementation and therefore not yet perfect to be used for normal editors. To add content from Google Docs the editor needs to add the Google Docs FileID ( http://prntscr.com/hjdu82 ) manually in the backend. That file will render as HTML format., (*2)
You can install the plugin via composer., (*3)
composer require codeq/googledocs
Adopt this settings into your site package's Settings.yaml, (*4)
CodeQ:
GoogleDocs:
authentication:
# Google OAuth 2.0 client secret file
# Place this JSON file in safe location and provide respective path here.
# Path should be respective to the DOCUMENT_ROOT\Web folder
clientSecretFilePath: ~
# This file will be generate automatically for storing the access token temporary
# Please provide safe location with file name
# Path should be respective to the DOCUMENT_ROOT\Web folder
accessTokenFilePath: ~
# Google OAuth 2.0 App name
appName : ~
# Google OAuth 2.0 Redirect URI
redirectUri: ~
Create Credentials Button and select OAuth Client ID from the dropdown.Web application from given options.appName).<DOMAIN>/neos/administration/googleDocs into Authorized redirect URIs (replace redirectUri option.Authorized JavaScript origins can be null as it is not used.Download JSON button on the top (https://prnt.sc/hmvc2q). Click and download that file.clientSecretFile used in our settings. Put that file into the secure place and give the respective path in the settings.Backend module is specially used for Authorizing the Google account for accessing the Google Docs File.
You will find the Backend Module Google Drive Authentication.
- Go the module and Click on the Authorize button.
- You will redirect to the Google Consent Screen. Complete the authorization process and it will redirect you back to the module (if redirectUri setting is not properly set, it may give you error when trying to authorize account).
- Once you complete Authorization completely, you will find the Sign out button. Click it if you want to de-authorize your account. De-authorizing will stop the file showing in the frontend., (*5)
Once all above things are setup successfully, You will find the new CE Google Docs in your content collection (if it is allowed from the yaml configuration of the Document NodeType) https://prnt.sc/hmvgd2., (*6)
Add that CE into content collection, you will find the Google File ID property. https://prnt.sc/hmvgsq You can find the Google File ID from its URL, here is the reference about how to find ID https://productforums.google.com/forum/#!category-topic/docs/no/3STOEukh1pU., (*7)
Add the Google Docs File ID into the field. Page will automatically reload and you will find the content of Google Docs as HTML format., (*8)
Google Docs content node type for the Neos CMS
MIT MIT License
Google Docs content node type for the Neos CMS
MIT