To make a catalog I would like to use a .txt file filled with our data.I already have the txt file with about 500 lines of data (500 cars). All lines contain the same fields, but in the layout some cars should be shown bigger than others. When the cars are shown small, 3 will fit on a page. When 1 car is shown medium, 1 small, 2 fit on a page, when a car is shown big, 1 fits on a page. S, M and L are in the txt file in a cell per item.
So, cqn you script in indesign so, based on the field with S, M or L, indesign uses the appropriate layout for that item, and counts if a new page should be used?