We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Invoking the rendering of a template from an extension

Development and Programming

Donch's avatar
Donch
1 posts
16 years ago
Donch's avatar Donch

Hi,

is it possible to invoke the rendering of a template from within an extension? The idea is to add a button to the edit and publish control panel tabs which will save a specified template’s output into a row in the database which can be later be used for mailshot purposes. I know Django has a clear MVC separation and allows this through the Template class:

http://docs.djangoproject.com/en/dev/ref/templates/api/#rendering-a-context/

A roundabout way of doing this could be to invoke something like:

http://scripts.incutio.com/httpclient/

to download the response from the blog’s “live look” url, but I don’t know how well a third party library would work from within an Expression Engine extension.

Does anyone have any experience of this type of thing?

Cheers, Donny.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.