Alter rendering pipeline

26 views
Skip to first unread message

Koen Verheyen

unread,
Sep 18, 2017, 10:32:18 AM9/18/17
to Blacklight Development
I'm upgrading a Blacklight site to version 6.3.3 which has a lot of refactoring in how documents are presented.

In the old version we had overridden the DocumentPresenter render_values method to do an non-html-safe join of values since they may contain HTML tags which we want to have rendered.

In BL 6.3.3 this has been replaced by the FieldPresenter/Pipeline mechanism. I can see there's a stack function that defines the methods that are executed in order to render the values there. I'd like to replace the Join step there with a custom NonHtmlSafeJoin method. What is the correct way to alter this stack? Can I override the default pipeline at some point? Of do I have to start from a custom ShowPresenter field_values method and everything from that point forward?

Justin Coyne

unread,
Sep 19, 2017, 9:52:34 AM9/19/17
to blacklight-...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "Blacklight Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blacklight-development+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages