extcode / cart_events

CartEvents is a TYPO3 extension and provides an own data storage for events. Events can be offered via a list and detail view and can be purchased via cart function of the Cart extension.
GNU General Public License v2.0
4 stars 3 forks source link

{event.files} isn't used in Templates/Partials #49

Closed taunusweb closed 2 years ago

taunusweb commented 5 years ago

I couldn't find any usage of the event files, is that right? To show them in the frontend (single view), I'm using the following Code now:

    <f:if condition="{event.files}">
        <p><strong>Downloads</strong></p>
        <f:for each="{event.files}" as="downloadItem">
            <span class="event-file">
                <a class="btn" href="{downloadItem.originalResource.publicUrl -> f:format.htmlspecialchars()}" target="_blank">
                    {f:if(condition:downloadItem.originalResource.title, then:downloadItem.originalResource.title, else:downloadItem.originalResource.name)}
                </a>
            </span>
        </f:for>
    </f:if>

Would the be interesting to have it in the Standard Templates?