Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Templates contain, containers which contain publishing rules which in turn content content items!


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, portlets, page behaviours, pods or a variety of other names.

The 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.

Containers

Containers are placed in a template by a website developer.  They should already be in place before you come to adding content on your site.

Containers can be unique to a specific page, shared across a specific section of the website or shared globally throughout the website.  They are populated by contributors selecting from a predefined set of publishing rules.

Walkthrough: Design Mode

To access containers we need to turn on "design mode".

  • 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 floating menu widget in the top left hand corner of the screen

     

  • Right mouse click to activate the menu
  • Select "design mode"
  • You'll notice the page reload and container widgets should be visible on the page

 

Publishing Rules

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 rule, the predefined behaviours goes off and grabs the very latest news items matching the specified categorisation and displays them with the right template.  When news content is added to the system, this rule will automatically update the page without any further intervention.

For example, 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.

For example, 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

Open the container editor for a page and schedule a News rule onto the page.

  1. Browse to a page within your section of the web site
  2. Change the view to design mode
  3. Click on the container widget to open the container management area
  4. Select the News Rule from the list and click "Move to Active Rules"
  5. Click on the button, "Commit Changes" to commit the changes
     
  6. Change the display teaser and restrict the output by category to highlight news rule features.
  • No labels