Keyword

Remove formatting Extra Field (with Editor ON)

  • Rakesh
  • Rakesh's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 3 months ago - 9 years 3 months ago #144652 by Rakesh
I see the tag removal of the intro and full text fields in settings. But I'm missing this option for the Extra Fields with Editor.

How can I enable auto remove tags (HTML Cleanup) of the Extra Fields? I do need the Editor ON.

Thanks,

Rakesh
Last edit: 9 years 3 months ago by Rakesh.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 3 months ago #144658 by Krikor Boghossian
Replied by Krikor Boghossian on topic Remove formatting Extra Field (with Editor ON)
You can manually render that field (there are several posts about this on the forum) and use the strip_tags() PHP function on your overrides.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Rakesh
  • Rakesh's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 3 months ago #145138 by Rakesh
Could you show me some examples how this needs to be done.
I have limited time and it seems I need to dig in quite deep to understand how this is done.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 3 months ago #145153 by Krikor Boghossian
Replied by Krikor Boghossian on topic Remove formatting Extra Field (with Editor ON)
Use this snippet as a starting point Rakesh.
<?php echo strip_tags($this->item->extraFields->EXTRAFIELDALIASHERE->value); ?>

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum