Creating product index for a catalogue
Learn / Forums / General InDesign Topics / Creating product index for a catalogue
- This topic has 3 replies, 2 voices, and was last updated 3 years, 10 months ago by David Blatner.
-
AuthorPosts
-
-
June 18, 2020 at 3:57 am #1255987Earvin ChenMember
Hi everyone. Could you please help with this tricky request.
I’m working on a product catalogue, which contents more than 1000 products. A product index is required so the readers could locate the products in the catalogue easily.
The whole product part of the catalogue has been layouted as one long table in the following order:
Product name
Product image
Code A
Code B
Qtyand so on…
I have created an index in the alphabetical order of the product names using the table of contents function in InDesign. The index looks like this:
Product name
Code A
Code BHowever, the client asked me to change the order of the index to
Code A (in numerical order)
Code B
Product nameI have tried quite a few times but couldn’t get it to work. Could someone please help me out? Thanks a lot.
-
June 18, 2020 at 5:44 pm #1256121David BlatnerKeymaster
Where are the page numbers? Is each line a different paragraph?
If so, maybe you could use a grep find/change to turn the 3 paragraphs into a single paragraph with shift-returns (line breaks). Then you could sort the paragraphs with the SortParagraphs.jsx script in the Scripts panel.
For example, you could search (in the grep tab of the find/change dialog box) for
(.+)\r(.+)\r(.+)\r
and replace it with$2\n?$3\n?$1\r
That should find everything on the first paragraph, then 2nd paragraph, and the 3rd paragraph… and then replace it with the 2nd paragraph followed by a shift-return, then the 3rd paragraph, then the 1st paragraph.
-
June 18, 2020 at 5:44 pm #1256128David BlatnerKeymaster
Where are the page numbers? Is each line a different paragraph?
If so, maybe you could use a grep find/change to turn the 3 paragraphs into a single paragraph with shift-returns (line breaks). Then you could sort the paragraphs with the SortParagraphs.jsx script in the Scripts panel.
For example, you could search (in the grep tab of the find/change dialog box) for
(.+)\r(.+)\r(.+)\r
and replace it with$2\n?$3\n?$1\r
That should find everything on the first paragraph, then 2nd paragraph, and the 3rd paragraph… and then replace it with the 2nd paragraph followed by a shift-return, then the 3rd paragraph, then the 1st paragraph.
-
July 13, 2020 at 7:58 am #14331305Earvin ChenMember
Hi David, Thanks for your suggestion. I have also posted on the InDesign Secrets Facebook page with screenshots. It might explain things a bit better.
Based on your suggestions, I think instead of trying to regenerate the index in the new order, it might be easier to reorder the existing index. What a shame I don’t have the knowledge to write a script, or it should work perfectly. Thanks again.
-
-
AuthorPosts
- You must be logged in to reply to this topic.