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

Creating Multiple Rendering Options in Fieldtypes not working

Development and Programming

Benjamin David's avatar
Benjamin David
77 posts
15 years ago
Benjamin David's avatar Benjamin David

Hi,

I’m testing Fieldtype development and I’m trying to setup a custom replace function :

function replace_hello($data, $params = array(), $tagdata = FALSE)
{
    return "hello world";
}

In my template, I’m calling it that way :

{myfield:hello}

But this is not working, the tag is not parsed and it’s returning this :

{myfield:hello}

Am I missing something or could this be a bug ?

Thanks !

Update : woops, posted it in the wrong forum, could you please move it to the Custom Field API Development forum ? Thanks !

       

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.