We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 39501
    • 163 Posts
    Hi there,

    I'm using Spie Feed to pull in a series of RSS feeds, however I don't think my problem is specifically related to the plugin.

    My Spie template/chunk looks like this:

                <div class="feed_item_01 [[+feedClass]]">
                	<div class="wrp_feed">
                        <div class="[[+description]]">
                            <a href="[[+link]]" rel="tooltip" title="[[+title]]"><img src="[[+itemImageThumbnailUrl]]"></a>
                        </div>
                        <p><em>[[+date:ago]]</em></p>
                        <p class="title"><strong><a href="[[+link]]">[[+title]]</a></strong></p>
                    </div>
                </div>
    


    You'll notice at the top of my chunk there is a div called "feed_item_01". Every time the chunk outputs (4 times), I need this number to increase by one.

    For example the divs when outputted 4 times from 1 snippet call would be:

    "feed_item_01" "feed_item_02" "feed_item_03" ""feed_item_04"

    Would appreciate any thoughts.
    [ed. note: jonleverrier last edited this post 14 years, 6 months ago.]
      • 18373 ☆ A M B ☆
      • 3,141 Posts
      Some snippets keep track of what's often known as "idx" in the dev world, a number that's being incremented every time it loops over an item.

      spieFeed doesn't seem to do that (from its docs), so I would suggest filing a feature request for it over at https://github.com/goldsky/spiefeed/issues
        Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

        Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
        • 39501
        • 163 Posts
        Thanks for the info Mark. Will post a request to spiefeed once I finish my project. I ended up having to tweak my CSS to match the options available me to in spiefeed. Useful to know about idx.

        I haven't used modx for about 3 years, so has been good fun getting familiar with revolution smiley
          • 18373 ☆ A M B ☆
          • 3,141 Posts
          Glad you sorted it out anyway smiley

          And welcome back!
            Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

            Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.