How do I set a controller for my homepage How can I set a controller for the homepage? I can't seem to find any way to override the default route to the homepage. I need to call an action from the homepage and can't find any examples of this can be done.

I have a matrixfield with entries in them and want to filter out the matrix blocks that have expired entries on the homepage.
Ok, maybe you can check if the entry in the matrix block is still valid (non-expired) and if that's not the case, just don't render the matrix block? Put everything in a simple if statement?

Something like this (hasn't been tested, use it as an example of what the actual code would be):

{% for block in entry.myMatrixField %}
    {% if block.type == "something" %}
        {% if block.entry.status != 'expired' %}
            {{ block.entry.title}}
        {% endif %}
    {% endif %}
{% endfor %}