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

Finding entry id in a formatting plugin

Development and Programming

darylh's avatar
darylh
26 posts
17 years ago
darylh's avatar darylh

Is there any way I can find out the entry id in a custom formatting plugin?

I’m tring to write a plugin that will embed ‘related content’ into the page, but I want the user to decide where this info should appear. My approach is to use a custom formatter that will look for a certain token (ie: {related} ) within the post, and then grab the related item and link it. If I were able to know the entry id from the formatting plugin, I could just query the database and grab all the info I needed and simply replace the token with the link.

I’m not married to this approach and would love to hear alternative methods to gain the same result.

       

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.