This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"pageID": 2, | |
"name": "home", | |
"path": null, | |
"title": "Home", | |
"menuText": "Home", | |
"pageType": "static", | |
"templateName": "One Column Template", | |
"redirectUrl": "", | |
"securePage": false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import './Jumbotron.css' | |
class Jumbotron extends Component { | |
render() { | |
return ( | |
<section className="jumbotron"> | |
<h1>{this.props.item.fields.title}</h1> | |
<h2>{this.props.item.fields.subTitle}</h2> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Our Agility Modules | |
import RichTextArea from './modules/RichTextArea' | |
import PostsListing from './modules/PostsListing' | |
import PostDetails from './modules/PostDetails' | |
import Jumbotron from './modules/Jumbotron' | |
//Our Agility PageTemplates | |
import OneColumnTemplate from './pageTemplates/OneColumnTemplate' | |
export default { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Our Agility Modules | |
import RichTextArea from './modules/RichTextArea' | |
import PostsListing from './modules/PostsListing' | |
import PostDetails from './modules/PostDetails' | |
import Jumbotron from './modules/Jumbotron' | |
//Our Agility PageTemplates | |
import OneColumnTemplate from './pageTemplates/OneColumnTemplate' | |
export default { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"items": [ | |
{ | |
"contentID": 15, | |
"properties": { | |
"state": 2, | |
"modified": "2019-07-18T13:16:41.033", | |
"versionID": 105, | |
"referenceName": "posts", | |
"definitionName": "Post", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl https://046a1a87-api.agilitycms.cloud/fetch/en-us/list/posts | |
--header "APIKey: defaultlive.2b7f3a91559d794bedb688358be5e13af2b1e3ae8cd39e8ed2433bbef5d8d6ac" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import agility from '@agility/content-fetch' | |
const api = agility.getApi({ | |
guid: '046a1a87', | |
apiKey: 'defaultlive.2b7f3a91559d794bedb688358be5e13af2b1e3ae8cd39e8ed2433bbef5d8d6ac', | |
isPreview: false | |
}); | |
//use async to write cleaner code | |
let contentListResult = await api.getContentList({ referenceName: 'posts', languageCode: 'en-us' }); |
OlderNewer