Hi,
I would like to manipulate text with a custom plugin. I understand quite well how to make a plugin and I've already coded a plugin to correct usual mistakes in a text (replace h1 tag, replace space by unbreakable space when this or that, etc.).
I use onBeforeF2cContentSave's function for that.

My problem is that I want to make a plugin which won't change the data in the f2c_fieldcontent but only in the resulting joomla articles' content fields introtext and fulltext.

- I suppose that I have to use onAfterF2cContentParse function. Right?
- How to get the strings, I suppose it is with parsedIntroContent and parsedMainContent ?
- If yes, how to get the content of parsedIntroContent ?
- And how to write back the string after processing ?

Instead of a Joomla plugin you could make a Smarty modifier (is also plugin based). http://www.smarty.net/docs/en/plugins.modifiers.tpl
When you save the F2C form the data is parsed through the modifier and you get your modified Joomla article html. You can create your own template parameter to activate the Smarty modifier. Like: {$FIELDNAME_MODIFIED}.
Hope this line of thought helps

Regards,
Patrick

Please read the F2C documentation before asking questions! Thank you if you've done so

A F2C custom plugin has been designed to allow you to do other things with F2C Data. It is not part of the article rendering process. A custom F2C field type would be another option. In this case you can do whatever you want with the collected data before rendering it into the F2C template.

Regards,
Patrick

Please read the F2C documentation before asking questions! Thank you if you've done so

Achieving this with a F2C plug-in will be difficult. The onAfterF2cContentParse sounds like a logical place to perform this action, however the data (Joomla article) has already been written to the database at that point.

I think a Joomla plug-in would work in this situation. But I see you already have a solution