Search
Other Quick Index questions
Forum

Not all H2-H3 in Quick Index

Roman Lipatov's Avatar Roman Lipatov
Hello!
Quick Index use only H2-H3 inside tags <article></article>
I have important H2-H3 after </article>
How to add them in Quick Index?
Peter van Westen's Avatar Peter van Westen ADMIN
An {index} placed inside an article can only include headings found in that article itself. It does not include headings from content outside the article, like modules.
Please post a rating at the Joomla! Extensions Directory
Roman Lipatov's Avatar Roman Lipatov
How to fix it?
Not modules, just text on page outside of <article> tag.
Example - biblsoft.ru/android/system/utilities/839-lucky-patcher
Peter van Westen's Avatar Peter van Westen ADMIN
There is no solution.
Please post a rating at the Joomla! Extensions Directory
Roman Lipatov's Avatar Roman Lipatov
Hmmm... It's strange.
I've edited FlexiContent item template and replaced </article> at the bottom of the page, to get more H2 and H3 in Quick Index. But it didn't work.

P.S. OK, I've removed <article> tag from the page at all - no effect.

Which tags Quick Index uses to detect article body?
I need to fix this problem.
Peter van Westen's Avatar Peter van Westen ADMIN
It is not the <article> tags in the html.

Quick Index - like pretty much all plugins - gets the content of the article passed to it. It then does its magic on that content. After all plugins have done their thing on the article, Joomla pushes it into the template (HTML).

So the moment Quick Index sees the {index} tag, only the content of the article is available to it. Not the content outside the article.

For the {index} to work on other content below it too, the {index} would have to be outside the article itself. So it could be in your template file above where the article (component) is rendered.
It will then get handled in a later stage, when the entire HTML is known.
But then it would also include any headings found in content (modules for instance) that are found further on in the HTML output.
Please post a rating at the Joomla! Extensions Directory
Roman Lipatov's Avatar Roman Lipatov
SUPER!
I inserted {index} right in FlexiContent item template - and it's perfect 🙂
Thanks!
Peter van Westen's Avatar Peter van Westen ADMIN
Ok, great. Happy you have it working like you want now.
Please post a rating at the Joomla! Extensions Directory
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription