TemplatePHP

Developer

Andy Hebrank

3rd Party (Free)

MIT License

EE Version Support

  • ExpressionEngine 2

Compatibility

If an item is crossed out, it might be untested, not applicable or incompatible. Contact the developer to be sure.

  • Updater
  • Multi Site Manager
  • Stand Alone Entry Form
  • Low Variables
  • Content Elements
  • Better Workflow
  • Matrix
  • Grid
  • Webservice
  • Publisher

Requirements

  • jQuery for the Control Panel

Add-On Type(s)

Extension

Tags

This extension is designed for staged deployments with PHP in some templates. Its goal is to keep you from interacting with the template manager to enable PHP parsing for particular templates.

The extension hooks the template_fetch_template call and modifies template settings in exp_templates.  You’ll need to reload a particular page twice for a configuration change to take effect since that hook doesn’t allow pre-parsing modificiation to the template settings.

How to use it

     
  1. Install the extension in system/expressionengine/third_party/templatephp
  2.  
  3. Add the config[‘template_php’] item to your config.php to specify which template settings to modify.  The item should contain one or more subarrays: ‘input’ (early PHP processing), ‘output’ (late PHP processing), and ‘disable’ (no PHP processing).  Templates should be specified as ‘group/name’.  For example:
$config['template_php'] = array(
  'input' => array('events/view',
                    'helpers/get-events',
                    'helpers/get-mini-calendar',
                    'helpers/_get-video',
                    'helpers/_get-soundcloud',
                    'helpers/get-news',
                    'helpers/get-blog',
                    'helpers/get-events-featured'),
  'output' => array('site/index',
                    'site/redirect',
                    'helpers/date-calc'),
  'disable' => array()
);

 

TemplatePHP Links

Hooks Used

If the add-on is an extension, and ties into ExpressionEngine's core files, it will use ExpressionEngine hooks. We are listing any hooks the add-on uses for developers to have an easier time locating other add-ons that they can reference for their own work.

  1. template_fetch_template

This entry was created November 5, 2014, 10:29 am.
This entry was last updated November 5, 2014, 10:30 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!

Returns: devot:ee has a 30-day return policy on all commercial add-ons sold through devot-ee.com. If you need to return an add-on, do not go to the developer or the developer's site, but rather visit our returns page at https://devot-ee.com/returns to initiate your return. If you have questions, email support@devot-ee.com.

There are no reviews for this add-on yet.

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