How to get the title list (H1-H6) of document content for generating catalog navigation?
In the daily operation of websites, we often encounter long-form content, such as tutorials, product descriptions, or in-depth analysis articles.It is particularly important to add a clear table of contents to the article at this point (usually located in the sidebar or at the top of the article).It can not only help visitors quickly understand the structure of the article, jump directly to the part of interest, but also improve the page SEO performance, enhance the user experience.In AnQiCMS (AnQiCMS), implementing this feature is actually simpler than you imagine, thanks to a very practical template tag provided by the system.