Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Templates contain , containers which contain publishing rules which in turn contain content content items! Of course, a flowchart always helps...


FarCry has a special sub-system for managing dynamic content within the presentation layer.  Specific regions of any template can be designated as a "container" and have dynamic content scheduled into them by non-technical authors.  This behaviour in other systems is sometimes called, These features can also be known as portlets, page behaviours, pods or a variety of other names, etc.

The This concept is important to understand because it represents some of the most powerful aspects of the FarCry framework.  Containers are regions of a page where some sort of programmatic behaviour can be placed.  For example, a list of the latest news items, an event calendar, content to be syndicated via XML from another website, a randomly picked fact and so on.  These programmatic behaviours in FarCry are called Publishing Rules.

...

  • Make sure you are logged into the FarCry webtop
  • Click on the View site link in the top right hand corner of the webtop; this should open up a browser with a view of the main website
  • When you are logged into FarCry as a contributor you should see the floating menu widget (or "floater") in the top left hand corner of the screen

...

Publishing rules are special content types that are set up to dynamically display content based on some predefined behaviour.  FarCry ships with a library of publishing rules for contributors to choose from.  Developers can customise these rules or build their own.
For example

...

:

  • The news rule allows a contributor to select a type of display, categories for filtering and the number of news items.  When a visitor accesses the page with the this rule, the predefined behaviours goes off and rule grabs the very latest news items matching the specified categorisation and displays them with the right selected template.  When news content is added to the system, this rule will automatically update the page without any further intervention.

...

  • The "child links" rule will display teasers from all a pages underlying child pages.  This sort of behaviour is used to populate a summary or landing page dynamically based on the underlying pages of that section of the website.  Add, update or remove a page and the landing page is automatically updated.

...

  • The "random fact rule" will randomly pick and display a predefined number of fact content objects.  This rule would update and refresh its content every page request.  This is often used as a great way to show off testimonials or other snippets of information.

Walkthrough: Publishing News Content

...