featdd / dpn_glossary

Glossary extension for TYPO3
http://typo3.org/extensions/repository/view/dpn_glossary
GNU General Public License v2.0
20 stars 29 forks source link

Problem when using different Pagetypes #171

Closed wayheyha closed 1 year ago

wayheyha commented 2 years ago

In ParserService.php on line 194 is a check for pagetype = 0 that aborts parsing if you have a different pagetype.. I have a custom pagetype that i need to use in order to load page contents via ajax.. could we maybe get an option to force-enable the parser for certain pagetypes?

Best regards, Chris

featdd commented 2 years ago

Hi @wayheyha,

I could add an option for that, but never tested this myself as the parser needs a full valid html document as input. So this won't work with html you have encoded in some json or something else...

You may need to instantiate the service by yourself and try to parse your content by desire. I tried to modularize the parser stuff into a composer library long time ago but forgot about it somehow. But maybe this could also help, see: https://github.com/featdd/html-term-wrapper

Let me hear your feedback and I will consider to add the option though.

Greetings Daniel

featdd commented 1 year ago

@wayheyha closing this due to lack of feedback