Snippets

Snippets

The Frog content management system works with a set of elements:

  • A page: an actual page of content;
  • A plugin: a piece of code which can be optionally installed and/or turned on to provide extra functionality;
  • A layout: this is the structure of a site and can include one or more of the following;
  • A snippet: which is what I'll talk about more here.

These snippets are basically just bits and pieces of HTML and PHP code which can then later be inserted into a Frog page or layout. This allows the developer of the site to re-use bits of HTML and/or PHP in multiple pages and/or layouts.

Apart from the actual snippets, I'll also describe tricks for which you might need multiple elements like a page combined with one or more snippet. An example is how to create a sitemap in xml format.

Enjoy.

Plugins « Previous Next » Frog downloads