CM Tooltip Glossary
[resolved] Link Plural Glossary Terms (4 posts)

  1. RyanLorem
    Posted 2 years ago #

    Maybe this would make a good option for a future update, if CM is up for it. For now I am interested in finding which part of the plugin defines how to recognize terms in posts/pages.

    Which code snippet needs to be edited in order to link plural usage of a term to the related glossary term?

    For example, recognize the term "mortgages" and link to the glossary page item for "mortgage".

    If a term is found and ends in either 's' or 'es', link to the term.


  2. CM Plugins
    Plugin Author

    Posted 2 years ago #

    This is a complex project..For now you can use the Pro version and use a Synonym
    More about Pro plug http://www.cminds.com/downloads/cm-enhanced-tooltip-glossary-premium-version/
    More about the complexity in here http://stackoverflow.com/questions/796412/how-to-turn-plural-words-singular

  3. RyanLorem
    Posted 2 years ago #

    Thanks a bunch!

    I was hoping there is a way to check if it is $term . 'es' instead of simply all words ending in "es".

  4. CM Plugins
    Plugin Author

    Posted 2 years ago #

    We have added a support for plural / singular in the pro version, it is done manually by specifying all variation for a term.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • CM Tooltip Glossary
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic