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

Developer hooks to process pages before they are returned to the user?

Development and Programming

eduqate's avatar
eduqate
53 posts
15 years ago
eduqate's avatar eduqate

I am thinking of updating the Typogrify http://code.google.com/p/typogrify/ system for EE2.

Unlike Jens Bjerrehuss’ earlier version http://bjerrehuus.dk/blog/jens/article/improve-the-typographic-style-of-your-expression-engine-websites/ I would like to avoid introducing extra EE tags, which might confuse end users who are maintaining the site. Instead I envisage a plugin which processes the outgoing html before it is sent to the user’s browser, doing all necessary substitutions to prettify ampersands, smarten quotes etc. As a fall back I could transform the text when the user saves it to the database (though I’d rather not).

Is there a hook which lets me intercept the html en-route to the user? Alternatively is there a hook which lets me intercept channels when the user presses save (as a fall back if I do need to update the code in the database).

Is this even a good way to proceed? Please could you point me at the appropriate part of the developers manual?

EDIT: my thought is to write a plugin which lets the user enable/disable this feature and parameterise some choices (e.g. choice of font for ampersands)

       

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.