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

Template Tag Modifiers Not Being Parsed

Development and Programming

Brett DeWoody's avatar
Brett DeWoody
140 posts
about 16 years ago
Brett DeWoody's avatar Brett DeWoody

I’m working on updating my Flickr for EE add-on to work with EE2. Within the fieldtype I have a main replace_tag() function, then several template tag modifiers; replace_title(), replace_link() and replace_description(). The main template tag gets parsed correctly and outputs what I expect it to. But the template tag modifiers don’t get parsed. When I include them in a template the tag itself gets spit back out.

I’ve tried making the tag as basic as possible to test:

function replace_link($data, $params = array(), $tagdata = FALSE) {
        
        return 'Test';
    }

But even that returns

{my_field:link}

Has anyone else had problems with template tag modifiers?

[Mod Edit: Moved to the Custom Field API Development forum]

       
luke holder's avatar
luke holder
71 posts
about 16 years ago
luke holder's avatar luke holder

try calling replace_link as the ‘modifier’ not link.

       
Brett DeWoody's avatar
Brett DeWoody
140 posts
about 16 years ago
Brett DeWoody's avatar Brett DeWoody

So I tried calling {my_field:replace_link} but I’m still just getting the unparsed tag. So all I’m seeing is “{my_field:replace_link}” on the page.

       
Brett DeWoody's avatar
Brett DeWoody
140 posts
about 16 years ago
Brett DeWoody's avatar Brett DeWoody

I’ve tried just about every tag I can think of to get my tag modifiers to show but nothing seems to be working. Should I add this to the bug tracker?

       
Brett DeWoody's avatar
Brett DeWoody
140 posts
about 16 years ago
Brett DeWoody's avatar Brett DeWoody

I upgraded to the Freelancer version (was using the free trial) and everything works now!

       

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.