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

Extension Request: Auto-add entry ID to URL?

Development and Programming

josephmartin martin's avatar
josephmartin martin
1 posts
5 years ago
josephmartin martin's avatar josephmartin martin

Not sure if this is possible, but is there a way to auto add the entry ID, or maybe just a number increment, to the URL, maybe by extension? Google News requires a four character number in the URL for it to index the entry. This means that I need to manually key it in, which in turn means that blogging tools like MarsEdit and Ecto are of no use ?

Thanks!

       
Robin Sowell's avatar
Robin Sowell
13,158 posts
5 years ago
Robin Sowell's avatar Robin Sowell

There isn’t a native way, but it should be easily doable with an extension.

You might take a look at Willow Light’s Smart URL Title. It’s MiT license, so you could use it as a starting place. I don’t know that you could put the entry id on it- it may be using a ‘before save’ hook and you’d need an ‘after save’ to go update it with the entry id. But- you could do something by date or some such, if all you need is 4 digits.

And I haven’t dug into it at all- you might have the entry id available or it might be super easy to switch out the hook. But it is playing around in the same area you’re interested in.

       

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.