https://github.com/codeandwander/webflow-cms-element
https://github.com/codeandwander/webflow-cms-element
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/codeandwander/webflow-cms-element
- Owner: codeandwander
- License: mit
- Created: 2022-11-11T11:32:43.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-11T11:53:21.000Z (over 2 years ago)
- Last Synced: 2025-01-24T12:45:40.590Z (4 months ago)
- Language: HTML
- Size: 199 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# CMS element
inject content into collections
## Install
Add the following script the the bottom of the body tag:
``
## Attributes
The element to be injected:
`data-cw-cms-element="element"`
The list the element will be injected into:
`data-cw-cms-element="list"`
The position the element will be inject in at:
`data-cw-cms-element-position="4"`
## Example markup
```html
A CTA
Click me
![]()
Test
Test Title
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ut erat
ex. Mauris euismod placerat metus, at pretium dui fringilla quis.
Suspendisse molestie maximus turpis at viverra.
...
```