Passing title tag to collection tag?

I'm trying to make a listing page that outputs a collection as chosen in the control panel.

For example: A user chooses "Projects" from a Collections list (Using a Collections field type). The listings template then outputs entries from within "Projects".

The problem is, I can not successfully pass a tag into a collection tag.

    {{ collection_list }}

        {{ collection:{{ title | lower }} }}
        <h2>{{ title }}</h2>
        {{ /collection:{{ title | lower }} }}

    {{ /collection_list }}

In this case {{ title | lower }} equals projects. If I change {{ title | lower }} to projects, obviously it works as intended.

I have also tried adding a variable to the front matter, again I just can't pass it to the collection tag.

What am I missing? Any help would be appreciated.

Answered by Ben Wellby!
>>>>>>> Answered <<<<<<<
4 Replies