Forum Moderators: not2easy

Message Too Old, No Replies

Find & Replace?

How to automate the creation of product pages with images and descriptions

         

R_Cinco

2:52 pm on Feb 13, 2006 (gmt 0)

10+ Year Member



I am creating product pages for a website. There are thousands of beads - Each one has an img file, and a .doc file (containing that particular bead's description). The img file names are the same as the .doc names, reflecting the particular beads product # - For example, bead #11145 is shown in img file 11145.jpg, and described in 11145.doc. I have a basic template setup for these pages, say 11145.html.

I'm sure that there has to be some way to automate this process - To take 11145.html, and insert it's filename (11145) into the HTML (ex: img src=FILENAME, and Description: [inserted from 11145.doc]) - Is any of what I'm describing possible to do with some type of batch automator? I've tried Advanced Find & Replace, but have had little luck. If anyone can help me out, I'd really appreciate it.

Matt Probert

3:10 pm on Feb 13, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Write a program to do it. It's not difficult in C, probably not in Perl either, particularly as all the files have the same name, but different extensions.

It's what we do <g>

Matt

R_Cinco

4:13 pm on Feb 13, 2006 (gmt 0)

10+ Year Member



Thanks for the advice, unfortunately my knowledge in programming is very limited. I was looking more for some type of program or script that could automate this process for me.

Lobo

5:05 pm on Feb 13, 2006 (gmt 0)

10+ Year Member



Don't know if this is any use?

[kineticscripts.com...]