2022-05-23, 03:32 AM
Hi, i have a sample div element as bellow:
<div id="sample">
<h1>Title</h1>
<p>paragraph 1</p>
<p>paragraph 2</p>
<--- insert my plugin content here
</div>
How can i use find_replace_templatesets to insert my plugin start from the end of the element shown above?
Assuming im not using the following method:
find_replace_templatesets("index", "#" . preg_quote("<div id=\"sample\">") . "#i", "<div id=\"sample\"><h1>Title</h1><p>paragraph 1</p><p>paragraph 2</p>{\$myplugin}");
<div id="sample">
<h1>Title</h1>
<p>paragraph 1</p>
<p>paragraph 2</p>
<--- insert my plugin content here
</div>
How can i use find_replace_templatesets to insert my plugin start from the end of the element shown above?
Assuming im not using the following method:
find_replace_templatesets("index", "#" . preg_quote("<div id=\"sample\">") . "#i", "<div id=\"sample\"><h1>Title</h1><p>paragraph 1</p><p>paragraph 2</p>{\$myplugin}");