Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zhangyu1818/contentful-experiences-example
https://github.com/zhangyu1818/contentful-experiences-example
Last synced: 23 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/zhangyu1818/contentful-experiences-example
- Owner: zhangyu1818
- Created: 2024-04-14T05:10:47.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-05-09T02:51:22.000Z (8 months ago)
- Last Synced: 2024-05-09T14:52:08.131Z (8 months ago)
- Language: TypeScript
- Homepage: https://contentful-experiences-example.vercel.app
- Size: 98.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# contentful-experiences-example
Basic template examples, including dynamic pages and product template pages.
## Setup
Create a new Experiences Type in Contentful.
It should include three Short Text fields:
- Title
- Slug
- Product (this field is for the product ID used in previews)## Experiences Preview
Add two preview URLs, one for a regular page and one for a product template page:
- http://localhost:3000/{entry.fields.slug}
- http://localhost:3000/product/{entry.fields.product}Use the first URL for pages with a slug.
Use the second URL for pages using the product template.## ENV
```text
CTFL_SPACE_ID=
CTFL_ENV_ID=
CTFL_API_HOST=
CTFL_TOKEN=
CTFL_EXPERIENCE_CONTENT_TYPE_ID=
```