ChrisRAoW / mautic-rss-to-email-bundle

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

Pause and continue feed #64

Closed shmaltz closed 2 years ago

shmaltz commented 2 years ago

Is it possible to display 3 posts, then display some html like images, and then continue where we left off and display another 3 posts?

e.g: count="1-3"

[{feed url="<<FEEDURL>>"}
    {feeditems count="1-3"}
        <h3>{feeditem:title}</h3>
        <p><small>{feeditem:date format="d-m-Y H:i"}</small></p>
        <p>{feeditem:description}</p>
        <p><img src="{feeditem:image}"></p>
    {/feeditems}
<img></img>
<h1>Some html goes here</h1>
{feeditems count="4-7"}
        <h3>{feeditem:title}</h3>
        <p><small>{feeditem:date format="d-m-Y H:i"}</small></p>
        <p>{feeditem:description}</p>
        <p><img src="{feeditem:image}"></p>
    {/feeditems}
{/feed}](url)
ChrisRAoW commented 2 years ago

@shmaltz This is currently not possible, but will check if I can implement an offset parameter.

ChrisRAoW commented 2 years ago

@shmaltz You should now be able to accomplish this by:

{feed url="<<FEEDURL>>"}
    {feeditems count="3"}
        <h3>{feeditem:title}</h3>
        <p><small>{feeditem:date format="d-m-Y H:i"}</small></p>
        <p>{feeditem:description}</p>
        <p><img src="{feeditem:image}"></p>
    {/feeditems}

<img></img>
<h1>Some html goes here</h1>

{feeditems count="4" offset="3"}
        <h3>{feeditem:title}</h3>
        <p><small>{feeditem:date format="d-m-Y H:i"}</small></p>
        <p>{feeditem:description}</p>
        <p><img src="{feeditem:image}"></p>
    {/feeditems}
{/feed}

Can you check it out?