ChrisRAoW / mautic-rss-to-email-bundle

Mautic plugin to send emails from RSS
103 stars 22 forks source link

Feature Request: Tags for each individual <item> #53

Open shmaltz opened 2 years ago

shmaltz commented 2 years ago

Currently it seems we can only style the RSS items one way, and there is no way to display the items in a table grid format.

It would be really cool if we could add each item to the template individually. This would make the templates much more customizable.

E.g. We would be able to style each post differently, and we would be able to put the posts in a

.

I've seen this in a WP plugin, where each item tag has a number (-1, -2, -3 etc.) referencing the post.

For example,

`{feed url="<>"} {feeditems count="3"}

{feeditem-1:title}

{feeditem-1:date format="d-m-Y H:i"}

{feeditem-1:description}

    <div>
    <h3>{feeditem-2:title}</h3>
    <p>{feeditem-2:date format="d-m-Y H:i"}</p>
    <p><strong>{feeditem-2:description}</strong></p>
    <p><img src="{feeditem-2:image}"></p>
    </div>
    <div>
    <h3>{feeditem-3:title}</h3>
    <p><small>{feeditem-3:date format="d-m-Y H:i"}</small></p>
    <p>{feeditem-3:description}</p>
    <p><img src="{feeditem-3:image}"></p>
    </div>
{/feeditems}

{/feed}`

ChrisRAoW commented 2 years ago

@shmaltz Great idea, will put it on our feature-list.