Hi,
I'm the maintainer of Field Slideshow. This module adds a field formatter for a multi-valued image fields, so it outputs a slideshow.

It's working fine BUT someone has asked me how to include the slideshow in the body itself.
At first, he was thinking of Insert, but after asking quicksketch, it's clear that it can't work that way (too much code to insert).
So I got an idea : use an input filter ([field_slideshow] replaced by the slideshow).

My problem is : how to acces my image field from within the _filter_process function?? The only arguments are $text, $filter, $format, $langcode, $cache, $cache_id. But no nid, or entity…
The dirty solution I've found is to use the $_GET['q'] variable to get the node id, but in case of a node rendered in a View, it won't work…
Any idea?

Comments

nevets’s picture

A filter will not work because as you discovered filters only known the text they are to filter and not the context (in this case node).

jdanthinne’s picture

So, another idea?

gagarine’s picture

Why not create a token?

https://interface-network.com - Interface Network is an action and research technology governance agency.