# Media collection

Each media collection is added through the MFN Editor and then integrated using a TOKEN provided by Modular Finance.

The Media collection can be styled using CSS.

It can be used to show media for the press such as logos, products, and board members.&#x20;

<figure><img src="/files/2A6hzqZR1zkatgu9I9cp" alt=""><figcaption><p>Example of Media Collection</p></figcaption></figure>

## Implementation

The media collection can be implemented with the [JS-Loader](broken://spaces/qSwsJN2Cknwf0NarotZx) as shown bellow. It can also be implemented with shortcodes using the [Datablocks plugin](broken://spaces/-LRMlPFaftvytkVA2iUj/pages/-LzLr-Ws3y5uUA044EjG).&#x20;

```javascript
<div id="media-collection"></div>

<script>
   (function(widgets) {
        var url = "https://widget.datablocks.se/api/rose";
        if (!window._MF) {
            var b = document.createElement("script");
            b.type = "text/javascript";
            b.async = true;
            b.src = url + "/assets/js/loader-v5.js";
            document.getElementsByTagName("body")[0].appendChild(b);
            }
            window._MF = window._MF || {
            data: [],
            url: url,
            ready: !!0,
            render: function() { window._MF.ready = !0 },
            push: function(w) { window._MF.data.push(w) }
            };
            window._MF.push(widgets);
    })([{
        query: "#media-collection"
        ,widget: "media-collection"
        ,locale: "en"
        ,token: "<TOKEN>"
    }]);
</script>
```

### Exempel

The following examples have added their own custom styles

[**Haki Safety**](https://www.hakisafety.se/media/bildarkiv)

[**Eolus**](https://www.eolus.com/en/newsroom/media-library/)&#x20;


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://modfin.gitbook.io/mfn-integration-guide/-MbDBLBpI3LuyvwyWLVw/mfn-widgets/media-collection.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
