What is symphonyextensions.com?

How do I submit an extension?

Host your extension on Github and make sure the repository has a good README and an extension.meta.xml file. Then sign in to this site using your GitHub profile where you will see a list of your public repositories. Pick one, and add it to the site. When you make changes, just update the XML file in your repository and we do the rest.

What is an extension.meta.xml file?

It is an XML file that you add to your repository to describe your extension. You can include a name and description, developer contact details, version history, changelog, dependencies and more. Please read the documentation for a full list. You can use the lint tool to check your XML against the schema before submitting your extension to the site.

Readme

Custom Page Headers Symphony Extension

Version: 1.2

Author: Henry Singleton

Build Date: 06 06 2012

Requirements: Symphony 2.2.x - Symphony 2.3.x

Overview

This Symphony CMS extension allows you to define headers by page output. This lets you build headers using data from datasources or other page information. Anything that's accessible from a standard page really!

Great for generating redirect urls for 301/302 redirects if you need information from existing Symphony entries, or want to store redirect stats via an event etc.

Installation

Upload the 'page_headers' folder in this archive to your Symphony 'extensions' folder.

Enable it by selecting the "Page Headers" extension, choose Enable from the with-selected menu, then click Apply.

Usage

Create a new page, and give it a page type of 'headers'.

Make the page output plain text that you want for your headers. If you also want to output actual page content in the message body, simply separate your headers by a blank newline (as per the HTTP spec for separating message headers/body).

Notes

If HTML/XML is detected at the start of the page output, the extension will not do anything, even if the 'headers' page type is set.

Example

Create a new page, give it a page type of 'headers' and save the following as the page template content:

Here is an exmpale of custom 404 page, implemented in a different way. Note that you'll need to ensure there are two empty lines
between your headers and any page content you want to output (as per the HTTP spec).