Loading...
 
Skip to main content

History: Sample_Articles_include

Source of version: 7 (current)

Copy to clipboard
            {CODE(caption=>YAML)}
preferences: 
 feature_articles: y
objects:
 -
  type: article_type
  ref: type
  data:
   name: New Type
   allow: [ ratings, comments ]
   show: [ author, reads, language ]
 -
  type: topic
  ref: topic
  data:
   name: New Topic
 -
  type: article
  ref: Sample_Articles_include
  data:
   title: Hello World!
   body: This is a sample article
   heading: Thanks for reading this announcement, even if it contains nothing of value.
   type: $type
   topic: $topic
 -
  type: article
  ref: Sample_Articles_include2
  data:
   title: How Articles Work
   body: As you can see, when viewing a full article. The Header and Body are combined together to create the entire article text. 
   heading: This is text that was added in the Header of the Article
   type: $type
   topic: $topic
{CODE}