You have to apply a paragraph style (e.g., called Chapter Heading) to the paragraph that the anchored image is in.
A TOC is made up on paragraph styles which are selected to be included in the TOC (in the Layout > Table of Contents dialog).
When you apply a paragraph style, that is being used as a marker for a TOC element. The image ends up being displayed in the TOC.
What I was wondering, is if I can tag the image with a text description or element. Then the TOC would detect the text elements and display the text instead of the image.
So you currently have the image showing and you want alternate text instead? Is that correct? Can you explain why the images are anchored? A screen shot might be helpful.
I don't think the images being anchored is an issue. Since the same principle would apply to non-anchored images.
I'm just anchoring the header images so they remain in place with the text as I am still editing the text of the document. But here is a screenie. As you can see, the titles "Package Contents" and "Guidelines" are both graphical elements.
What I want, is that when I generate my Table of Contents, the software will output the text ""Package Contents ... 3" and "Guidelines ... 3" instead of "[image] ... 3"
Thus why I wonder if I can in essence, mark or tag the images, then have the mark or tag displayed in the TOC.
Create a text frame and enter the text you want to include and tag it with a style to include in the TOC. I recommend a new style and make the type red so it is very easy to spot in layout view. Open the attributes panel and set the new frame to non-printing. You caould anchor it on top of the image for convenience.
Oh, wish I had thought of that. Duh!