XF 2.2 Show attachments for guests - but not everywhere?

Robert9

Well-known member
We can extend XF\BbCode\Renderer\Html[/code] to tell [icode]$options['viewAttachments'] = true;

In XF\Entity\Attachment we care for canView

but ...

I want to do this only for one part of my site.
In forum and threads and resources/updates everything should be like normal, guests can't see full attachments.
But in /mynewpage i want to show them.


Do I have any information like: I come from class xyz or my context is yxz?
If not, how can I do that, please?
 
Top Bottom