You are here

article.template.yml in YAML Content 8.2

content/article.template.yml

File

content/article.template.yml
View source
  1. # Article content type template demonstrating sample data
  2. ---
  3. entity: "node"
  4. type: "article"
  5. title:
  6. "#preprocess":
  7. # Generated title
  8. - '#plugin': 'sample_data'
  9. dataset:
  10. # File lookup information
  11. module: 'yaml_content'
  12. path: 'content/data'
  13. file: 'article'
  14. # The key to load data from
  15. lookup: 'title'
  16. body:
  17. format: full_html
  18. value:
  19. #Generated markup
  20. "#preprocess":
  21. - '#plugin': 'sample_data'
  22. data_type: 'rich_text'
  23. #field_tags:
  24. # "#preprocess":
  25. # # Randomized tags
  26. field_image:
  27. "#preprocess":
  28. # Generated image
  29. - '#plugin': 'sample_data'
  30. data_type: 'image'
  31. width: 500
  32. height: 300