Ecco la procedura da seguire:
Copiare il file components/com_content/views/article/tmpl/default.php in templates/nome_templete/html/com_content/article/default.php
Sostituire le righe
122: <?php if (isset ($this->article->toc)) : ?>
123: <?php echo $this->article->toc; ?>
124: <?php endif; ?>
125: <?php echo $this->article->text; ?>
con seguente codice
122: <?php if (isset ($this->article->toc)) {
123: $toc = $this->article->toc;
124: $toc = str_replace(
125: array('<table cellpadding="0" cellspacing="0" ', '<th>', '</th>', '<td>', '</td>', '</table>', '<tr>', '</tr>'),
126: array('<div ', '<h4>', '</h4><ul>', '<li>', '</li>', '</ul></div>'),
127: $toc);
128: echo $toc;
129: $text = $this->article->text;
130: if (strpos($text, '<div class="pagenavcounter">') === false)
131: echo $text;
132: else if (($fine = strrpos($text, '<div class="pagenavbar">')) === false)
133: echo $text;
134: else {
135: $inizio = strpos($text, '</div>')+6;
136: echo substr($text, $inizio, $fine-$inizio) . substr($text, 0, $inizio) . substr($text, $fine);
137: }
138: }
139: else
140: echo $this->article->text;
141: ?>