Plugin

EE 1
EE 2
BMS Page Type

Developer

Ben Martin

3rd Party (Free)

Creative Commons Attribution Share Alike Download v0.1

Compatibility

Requirements

  • jQuery for the Control Panel

Tags

This plugin allows you to change the template type on the fly. Useful if you use a single template with logic to either display entries or rss feeds.

Allows you to change the template type/page type of a template on the fly. Originally built to allow template logic to control whether the page is a normal web page or an rss feed.
Include the single tag (no closing tag) in a template when it’s template type should change.

If you have logic inside a template that can show either a web page or an rss feed, the {exp:rss:feed} tag will output

at the top of the page. This plugin allows you to change the template type (for instance, to RSS) on the fly, and output the correct headers, etc.

{exp:page_type:rss} changes the template type to RSS feed ({exp:page_type:feed} is an alias).

{exp:page_type:html} changes the template type to Web page ({exp:page_type:web} is an alias).

{exp:page_type:css} changes the template type to CSS.

{exp:page_type:js} changes the template type to JavaScript.

{exp:page_type:xml} changes the template type to XML.

Download BMS Page Type

EE Version Downloads Add-On Version Release Date
2.+ Download 0.1 2012-01-07 11:45 AM

BMS Page Type Links

This entry was last updated January 12, 2012, 7:13 am.

Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. Devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!

There are no reviews for this add-on yet.

What are you waiting for? Rate it and review it!