Bester Weg, einen beliebigen Beitrag aus einem Plugin dynamisch zu rendern

In my DiscPage plugin, client-side, when a user is on the tag route, I need to render a specific post in a dynamically created div. I load the post using the API, but then I have trouble rendering it correctly (fully cooked + decorated).

My current implementation creates a decoratorHelper from scratch, but some parts (such as the post model) are missing, leading to incompatibilities with other plugins.

Any idea on how to move forward? How could I get a clean widget/helper on a post, without relying on the current route?

2 „Gefällt mir“

You can try PrettyText.cook
Check in the codebase for examples on both client and server sides.

5 „Gefällt mir“