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

Plugin: URI Prettify

Development and Programming

Jack McDade's avatar
Jack McDade
425 posts
16 years ago
Jack McDade's avatar Jack McDade

Hey EE gang, i just whipped up a little plugin for a situation i was in and decided to release it in case someone could use it. In essence, it takes filename/uri segment strings and makes them “pretty”. For example, monkeys_are_really_delicious would be formatted “Monkeys Are Really Delicious.” I used this to get a single subcategory name without getting stomped on in the event of events being in multiple categories.

You could use it to make pretty titles from filenames too. Sky’s the limit, if it has “-” or “_” delimited words. There are also some parameters and settings to “uncap” words that shouldn’t be capitalized, like “and”, “the” and “to”. Give it a shot!

URI Prettify v1.0

       
Jonathan Schofield's avatar
Jonathan Schofield
175 posts
16 years ago
Jonathan Schofield's avatar Jonathan Schofield

This is so timely! Thanks, Jack. Could be just what I’m after.

       

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.