CM Tooltip (CMTG) - Terms - Building Multiple Glossaries
Supporting Multiple Glossaries
Multiple GlossariesGlossaries of Different Categories | Glossaries of Different Languages
Creating Multiple Glossaries - Step by Step
1) Define the Glossary Index for each Category
Select Categories from the plugin menu. Click on the Edit link for the category that you want to update.
In each category edit screen you can place a link to the category index page. This will support the Back to index links found in the term page. So terms related to a specific category will point to the category index page instead of the general index page which includes all terms from all categories.
2) Associate desired terms with their categories
When adding a term to the glossary plugin you can associate the term with a category. You can create several categories and assign the first term to category A and the second one to category B. Under each category you can add as many terms as you want.
3) Build an Index Page for each Category
To create a category index page, you must first create and save a new page. On this page, you need to use the following shortcode:
Where slug is the exact slug that the category uses. To find the slug, select Categories from the plugin menu, then open the Quick Edit option:
Admin Panel/Categories Page:
Shortcode with category slug.
Music Terms Glossary.
4) Use Black and Whitelist
To exclude or only show the terms from a given category on the page or post, open the editor and select the CM Tooltip Filter Cats metabox on the right side.
Select Whitelist or Blacklist to include/exclude terms, and update the post/page.
Below is an example of what the page looks like before adding Music to the Blacklist:
Below is an example of what the page looks like after adding Music to the Blacklist:
Disabling the Main Glossary Index
If you want to avoid having a global glossary index which shows all terms from all categories together, you can edit this page and make it private so that visitors will not be able to view it and search engine will not index it.
If you do this, remember to add a Back to index link to each individual category.