Module for creating a blog using Contentful
- HeaderMenuComponent
- FooterMenuComponent
- BreadcrumbsService
- BreadcrumbsComponent
- RoutesManagerService
- RoutesGatewayComponent
- RoutesGatewayGuard
- ContenfulContent
- ContentfulImageDirective
- EmbeddedEntryComponent
- VizabiEntryComponent
- HtmlEntryComponent
- EntriesViewComponent
- VideoEntryComponent
- TagsComponent
- TagComponent
- MarkdownPipe
- ToDatePipe
- ContentfulService
- ContributorsComponent
- ProfileComponent
-
title(Short text)Settings:
- Check:
This field represents the Entry title - Validations:
This field is required - Appearance:
Single line
- Check:
-
submenus(References, many)Settings:
- Validations => Specify allowed entry type:
Submenu - Appearance:
Entry links list
- Validations => Specify allowed entry type:
-
entryPoint(Reference)Settings:
- Validations => Specify allowed entry type:
Article - Appearance:
Entry link
- Validations => Specify allowed entry type:
-
title(Short text)Settings:
- Check:
This field represents the Entry title - Validations:
This field is required - Appearance:
Single line
- Check:
-
entryPoint(Reference)Settings:
- Validations => Specify allowed entry type:
Article - Appearance:
Entry link
- Validations => Specify allowed entry type:
-
thumbnail(Media)
-
title(Short text)Settings:
- Check:
This field represents the Entry title - Validations:
This field is required - Appearance:
Single line
- Check:
-
entries(References, many)Settings:
- Validations => Specify allowed entry type:
Menu - Appearance:
Entry links list
- Validations => Specify allowed entry type:
-
title(Short text)Settings:
- Check:
This field represents the Entry title - Validations:
This field is required - Appearance:
Single line
- Check:
-
entries(References, many)Settings:
- Validations => Specify allowed entry type:
Menu - Appearance:
Entry links list
- Validations => Specify allowed entry type:
-
title(Short text)Settings:
- Check:
This field represents the Entry title - Validations:
This field is required - Appearance:
Slug
- Check:
-
slug(Short text)Settings:
- Appearance:
Slug
- Appearance:
-
title(Short text)Settings:
- Check:
This field represents the Entry title - Appearance:
Single line
- Check:
-
content(Long text)Settings:
- Appearance:
Markdown
- Appearance:
-
title(Short text)Settings:
- Check:
This field represents the Entry title - Appearance:
Single line
- Check:
-
description(Long text)Settings:
- Appearance:
Markdown
- Appearance:
-
youtube(Short text) -
vimeo(Short text)
-
title(Short text)Settings:
- Check:
This field represents the Entry title - Appearance:
Single line
- Check:
-
link(Long text)Settings:
- Validations:
This field is required - Appearance:
Single line
- Validations:
-
title(Short text)Settings:
- Check:
This field represents the Entry title - Appearance:
Single line
- Check:
-
state(Long text)Settings:
- Validations:
This field is required - Appearance:
Single line
- Validations:
-
title(Short text)Settings:
- Check:
This field represents the Entry title - Validations:
This field is required - Appearance:
single line
- Check:
-
slug(Short text)Settings:
- Appearance:
slug
- Appearance:
-
thumbnail(Media) -
description(Long text)Settings:
- Appearance:
Markdown
- Appearance:
-
entries(References, many)Settings:
- Validations => Specify allowed entry type:
Html,Video,Embedded,Vizabi - Appearance:
Entry links list
- Validations => Specify allowed entry type:
-
related(References, many)Settings:
- Validations => Specify allowed entry type:
Article - Appearance:
Entry links list
- Validations => Specify allowed entry type:
-
created at(Date & time)Settings:
- Validations:
This field is required
- Validations:
-
show in main page slider(Boolean) -
parent(Reference)Settings:
- Validations => Specify allowed entry type:
Article - Appearance:
Entry link
- Validations => Specify allowed entry type:
-
tags(References, many)Settings:
- Validations => Specify allowed entry type:
Tag - Appearance:
Entry links list
- Validations => Specify allowed entry type:
-
description(Long text)Settings:
- Appearance:
Markdown
- Appearance:
-
article(Reference)Settings:
- Validations => Specify allowed entry type:
Article - Appearance:
Entry card
- Validations => Specify allowed entry type:
-
user name(Short text)Settings:
- Check:
This field represents the Entry title - Validations:
This field is required - Appearance:
single line
- Check:
-
first name(Short text)Settings:
- Validations:
This field is required - Appearance:
Single line
- Validations:
-
last name(Short text)Settings:
- Validations:
This field is required - Appearance:
Single line
- Validations:
-
avatar(Media) -
title(Short text)Settings:
- Appearance:
Single line
- Appearance:
-
location(Short text)Settings:
- Appearance:
Single line
- Appearance:
-
email(Short text)Settings:
- Validations:
Match a specific pattern->E-Mail - Appearance:
Single line
- Validations:
-
facebook(Short text)Settings:
- Appearance:
Single line
- Appearance:
-
google+(Short text)Settings:
- Appearance:
Single line
- Appearance:
-
linkedin(Short text)Settings:
- Appearance:
Single line
- Appearance:
-
twitter(Short text)Settings:
- Appearance:
Single line
- Appearance:
-
aboute me(Long text)Settings:
- Appearance:
Markdown
- Appearance:
-
contributions(References, many)Settings:
- Validations => Specify allowed entry type:
Contribution - Appearance:
Entry links list
- Validations => Specify allowed entry type:
-
my links(References, many)Settings:
- Validations => Specify allowed entry type:
Embedded,Html,Video,Vizabi - Appearance:
Entry links list
- Validations => Specify allowed entry type:
Go to contentful choose content then choose Add entry and fill in Article, for example:
title: Page testslug: page-testdescription: first pageentries- create newhtml
title: Sub pageslug: sub-pagedescription: Sub page testentries- create newhtmlrelated:Page testparent:Page testtags: blog
Go to contentful choose content then choose Add entry and fill in Menu, for example:
title: Menu itemsubmenus: select or createSubMenu
OR
entryPoint: select or createArticle
Note: priority will be submenus
title: HeaderMenuentries:Menu item(your menu item)
git clone git@github.com:VS-work/ng2-contentful-blog.git- in folder
ng2-contentful-blog/demo- open and edit next files:
-
contentful.cfg.json- add your accessToken and spaceNg2ContentfulConfig.config = { accessToken: CONTENTFUL_ACCESS_TOKEN, space: CONTENTFUL_SPACE_ID, host: CONTENTFUL_HOST };
-
contentTypeIds.jsonupdate all id (keys) according to yourcontent model=>JSON preview, for example
Get value from
sys.idwhich is***YOUR ID***and put intocontentTypeIds.json:{ "NODE_PAGE_TYPE_ID": "***YOUR ID***", "TAG_TYPE_ID": "***YOUR ID***", "VIDEO_TYPE_ID": "***YOUR ID***", "HTML_TYPE_ID": "***YOUR ID***", "EMBEDDED_TYPE_ID": "***YOUR ID***", "PROFILE_TYPE_ID": "***YOUR ID***", "CONTRIBUTION_TYPE_ID": "***YOUR ID***", "HEADER_TYPE_ID": "***YOUR ID***", "FOOTER_TYPE_ID": "***YOUR ID***", "VIZABI_TYPE_ID": "***YOUR ID***" }
npm i && npm run devlocalhost:8080/#/*your menu item*for examplelocalhost:8080/#/page-test



