Closed (works as designed)
Project:
Feed Import
Version:
7.x-2.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
7 Mar 2012 at 06:58 UTC
Updated:
21 Mar 2012 at 11:00 UTC
I have a feed without a proper way to limit the amount of items returned, it would be nice if feed import would allow you to specify a limit.
Comments
Comment #1
Sorin Sarca commentedWell, for this you'll need to write your own process function (based on processXML or similar). Please check README.txt to see how to create your process function.
Checking in each loop if limit is reached will slow down import and we don't want that.
If you need help with process function just write it here.
Comment #2
Sorin Sarca commentedI completly forgot about xpath's position() function! You can use this to limit your results, just add it in "Enter parent item xpath" field.
Let's say our parent xpath is
and to get only first 10 cars we can use
Note: this don't work for processXMLChunked and processXmlReader functions!
Comment #3
Sorin Sarca commented