{show contentpagetypes="article" php="return strpos($article->fulltext,'system-pagebreak') !== false;" devices="!mobile"}
{show contentpagetypes="article" php="return strpos($article>fulltext,'system-pagebreak') !== false;" devices="!mobile"}
<script>
(function() {
document.addEventListener('DOMContentLoaded', function() {
var ai = document.getElementsByClassName('article-index');
var target = document.getElementById('mod_article_index');
target.appendChild(ai[0]);
});
})();
</script>
{show contentpagetypes="article" devices="!mobile" php="return strpos($article->fulltext,'system-pagebreak') !== false;"}
<div style="padding-top: 10px;">
{accordion title="Article Index" color="orange" open="false"}
<div id="mod_article_index" style="margin: 0; padding: 0;"> </div>
{/accordions}
</div>
{/show}
{show php="return strpos($article->fulltext,'system-pagebreak') !== false;"}
HAS PAGEBREAKS
{/show}
$url = $_SERVER['REQUEST_URI'];
$parts = explode('/',$url);
$alias = $parts[count($parts)-1];
$db->setQuery('SELECT `fulltext` FROM #__content WHERE alias=\''.$alias.'\'');
$fulltext = $db->loadResult();
return str_contains($fulltext,'system-pagebreak');
$db->setQuery('SELECT `fulltext` FROM #__content WHERE id='. $app->input->getInt('id'));
$fulltext = $db->loadResult();
return str_contains($fulltext,'system-pagebreak');