Articles tagged with v211

How to Display Static Content Within the Symphony CMS

There have been several inquiries in the Symphony Forum about displaying static content within the Symphony content management system. I will attempt to describe three basic approaches to accomplishing this. There are many more variations on these approaches than I cover here, but hopefully this will be enough to get Symphony beginners started. The three basic approaches are:

  1. Use a conventional section, data source and page to define, store and display the static content.
  2. Use a static XML data source to define and store the content and a conventional page to display it.
  3. Use only a page to define, store and display the static content, placing all the content in the page's XSL file as HTML.

Read the full article.

How to Register and Use Custom PHP Functions Inside XSL

This article is not about justifying the use of PHP inside XSL. It is about how to do so if you need to or just want to. The case that I use as an example can be done easily in XSL without the use of a PHP function.

The title stresses custom PHP functions but you can also use this approach to enable the use of built-in PHP functions. A custom PHP function must be defined and registered before it is called by an XSL page template. A built-in function only has to be registered.

Read the full article.