Posted by ellegonzalez on August 6, 2016 at 8:01am
Last updated by ellegonzalez on Mon, 2016-08-08 09:33
Last updated by ellegonzalez on Mon, 2016-08-08 09:33
Drupal is already well prepared for structured content.
All of the principles that are being used when reviewing code that is being proposed for Drupal core inclusion, are a superset of the principles applied to structured content. Drupal demands full separation of concerns at every level. Everything must be overridable/alterable. Separation of concerns for CSS files, to ensure clean overriding of styling without having to duplicate all CSS. Content may never contain CSS nor depend on CSS. And so on.
Five features in particular stand out with regards to structured content and content reuse:
- Structured content: Field API.
It allows content to be modeled as granularly as desired. - Clean content: Filter system.
Ensures fancy mark-up is only added on output, and the stored content is as clean as possible. e.g. the fancy typographic features in this very piece of text is automatically added by Typogrify. - Different presentations of the same content: view modes.
A view mode defines the order of the fields and the field formatter & label of each field. - Internal reuse of content (within the website): Views module.
To create lists, grids, tables, galleries etc. of content, while showing related content. A listing can be configured to use a specific view mode. - External reuse of content (outside the website): REST module.
To provide JSON, XML, HAL, JSON-LD, YourCustomMarkupLanguage output.
Comments
How to fetch basic page content to display in block region
Hi everyone I am a new bee to Drupal 8. I have created some basic page contents and would like to display in block region but after created a custom view block and place it in the block region and the content of the block doesn't show. Any suggestions or advise appreciated. I am totally lost.