CM Tooltip (CMTG) - Extras - Ecommerce Custom Parsing Order
Setting Up Custom Parsing Order
The CM Tooltip Glossary Ecommerce allows you to change the order of the terms being parsed on page/post basis, by giving the priority to the limited list of terms which can be added to the Parsing Order metabox.
Because by default all of the terms are parsed together, the longest matched terms are matched first.
Below: The metabox allowing to change the parsing order on the post/page edit page.
| Sometimes a site needs input from the community it serves.
With the Glossary Community Terms add-on users can help to build your glossary as you watch your key content grow.
How does it work?
If the metabox is empty the parsing is working as described above. The longest matching terms are highlighted first.
When you put a single term in the box, it will precede all of the other terms which can be found on this page. So even if it's a part of a term phrase (eg. HTML is part of the HTML Widget phrase). It will be parsed first, before all of the rest of the terms - which means that if the "Highlight first term occurance only" is not checked - HTML Widget will not be highlighted as a phrase at all in this text.
-If you need to update the Highlight first term occurance only option, it is found in Admin Dashboard → CM Tooltip → Settings → General Settings - Term Highlighting.
Below: Example of the post with some short text and the Parsing Order.
Below: The post text with the default Parsing Order.
Below: The post text with the changed post order. As you can see the HTML Widget is not parsed, because HTML was parsed first.