You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I started using this great and useful extension and came across this situation.
I have a term that consists of other terms. For example, "Printed Circuit Boards".
I have in my Glossary three terms: "Printed Circuit Boards", "Circuit", "Boards". If the full term is found on the page, it is always parsed and gives two links to two short terms, "Printed Circuit Boards".
The full term ("Printed Circuit Board") - never. Is there any way to configure this? Is this a bug or a feature? :)
This seems to me to be an incorrect behavior of the parser.
I thought that setting plugin.tx_dpnglossary.settings.parsingSpecialWrapCharacters would help tell the parser which term to choose but it didn't help.
The text was updated successfully, but these errors were encountered:
currently terms for the parser get sortet by their length, so the smallest terms get matched first, this was intended at some point.
This is hardcoded by now, but I would agree to make this behaviour configurable, so you can choose this by yourself.
Thanks for the answer! so it's not a matter of settings. Now it's clear where to look. Implementation in the extension would be great, but on the current project I found a customized old version due to php7.4. I'll try to change the sorting order.
At the moment, for the experiment, I inverted the calculation of $sortingCallback in the findByNameLength() function (/Classes/Domain/Repository/AbstractTermRepository.php) and suddenly it turned out that I also have the term "Printed Circuit" :) Now I have "Printed Circuit Boards", but again not "Printed Circuit Boards". 5 terms for 3 words, huh.
upd.
Basically, I set up the output I needed. It turned out that the terms also have synonyms, the order of which in the list matters.
The ideal case is to be able to choose how exactly to parse the term in each case - completely or word by word, but how can this be implemented simply for the editor? Perhaps enclosing the term in quotation marks will help.
Hi! I started using this great and useful extension and came across this situation.
I have a term that consists of other terms. For example, "Printed Circuit Boards".
I have in my Glossary three terms: "Printed Circuit Boards", "Circuit", "Boards". If the full term is found on the page, it is always parsed and gives two links to two short terms, "Printed Circuit Boards".
The full term ("Printed Circuit Board") - never. Is there any way to configure this? Is this a bug or a feature? :)
This seems to me to be an incorrect behavior of the parser.
I thought that setting
plugin.tx_dpnglossary.settings.parsingSpecialWrapCharacters
would help tell the parser which term to choose but it didn't help.The text was updated successfully, but these errors were encountered: