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

Auto linker including tags inside hyperlinks

Development and Programming

eeart's avatar
eeart
257 posts
15 years ago
eeart's avatar eeart

I have made a plugin that adds footnotes at the bottom of a page when you place something like this in a field:

{footnote}Source: http://www.domain.com{/footnote}

The problem I have is that EE automatically hyperlinks URLs and includes the tag {/footnote} inside the URL, so by the time my plugin gets the tagdata to replace footnotes the string looks like this:

{footnote}Source: <a href="http://www.domain.com{/footnote}">http://www.domain.com{/footnote}</a>

The workaround we’re using is to put a space after a URL like this:

{footnote}Source: http://www.domain.com {/footnote}

is there another solution? Can the plugin get the tagdata before these links are auto linked? Or is this a bug in EE that should be fixed?

PS: I found another bug with the auto linker that I reported here: https://support.ellislab.com/bugs/detail/15318/

Thanks.

Moved to Development and Programming by Moderator

       
Sue Crocker's avatar
Sue Crocker
26,054 posts
15 years ago
Sue Crocker's avatar Sue Crocker

Hi, eeart. I’m going to move this to the development forum where it is a better fit.

       
eeart's avatar
eeart
257 posts
15 years ago
eeart's avatar eeart

It’s not necessarily a development question, though. I ran into this problem with one of my own plugins, but I can imagine that more people have a problem with this when placing tags behind URLs.

       

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.