mbabker wrote:The cleanest thing I can think of would be to create a system plugin (this part is important because it will affect the ordering of triggered plugins), add a handler for the `onContentPrepare` event, ensure it is the first plugin to be run, and do what you need to do there before the other plugins have the opportunity to run. Trying to do what you are wanting to do in a layout file is too late; the HR element used to tell the editor where to split introtext and fulltext is removed and plugins which parse the text to change things will have already run, so I would suggest you can't reliably inject something at that spot in layouts.
Perfectly explained

Thank you very much.
have look for it in Google and read
https://docs.joomla.org/J3.x:Creating_a ... entPrepare but it is too much for my php/joomla/progammer knowledge.
Just a personal thought: as a user of Joomla, it is strange for me to see that in the article view we can not have control over introtext and fulltext separately. (The only option we have is to hide or to show the introtext, isnt it?)
I can imagine a lot of utilities in this way:
- - Just for insert something basic like a text "This is the introtext:" and "This is the Full text:"
- or for display with different css the introtext and the fulltext.
- or for insert an advertisement.
- or for insert some Joomla Custom Fields.
- or in my case, to show a "contact form button"...
If at least
Joomla could insert comment tags when it combines introtext and fulltext:
Code: Select all
<!-- Begin Introtext -->
xxx
<!-- End introtext -->
<!-- Begin fulltext -->
yyy
<!-- End fulltext -->
or
Code: Select all
<!-- Before introtext -->
xxx
<!-- After introtext -->
<!-- Before fulltext -->
yyy
<!-- After fulltext -->
This way, we could search and replace these codes with Regularlabs Rereplacer or similar.
(Yes, i know I could insert that code manually inside each article, but i am talking about a web with hundreds of articles, creating 10-15 articles per day by authors and editors)
* * * * * * * * * *
@mbabker , Do you think this is a good idea and we could "propose it" this modification for future joomla releases?
Or maybe it is better/easier/faster to create, as you told me,
a new Joomla Plugin which can insert any code (set it previosly in the Plugin´s options) before/after introtext and/or before/after fulltext. ?