Hi all,
Background Info and Goal
We have about 7500 product image JPGs stored in one folder on the IFS. Each filename is 123456789.JPG, where 123456789 is the SKU number. For each one, there is also a thumbnail image named TN_123456789.JPG in that same folder, so the folder actually contains about 15000 image files. Each SKU in our part master has an associated product class, such as 1234.
I would like to create a system where an initial HTML page shows all the classes as links. Clicking on one of those class links would display an HTML page showing all the SKU thumbnail images in that class, along with the SKU as a clickable link. Clicking on a SKU would display an HTML page with the full size product image along with some associated info from the product master, such as the vendor number and name.
I'm thinking that maybe CGIDEV2 might be the way to go to accomplish all this. I have not created HTML directly from RPG before, but I'm currently reading through Scott Klement's presentation on his website. CGIDEV2 has never been used here, but it was used once where I used to work in order to create some XML files on the IFS.
Questions
1. Where is the best place to download CGIDEV2? (I notice I can get it from IBM or from Easy400.net). Do you agree that CGIDEV2 is the way to go?
2. From what I've described, do you think it's easiest and/or best to create in batch a bunch of static HTML pages (one for every SKU, so each would be named 123456789.HTML) where the only difference is the SKU number, image link, and vendor info, or is it best to create one template SKU HTML file where I substitute in the SKU number and related info dynamically? The latter seems better to me but maybe more complicated because I'd need to run RPG from the web page whenever they navigate to a new SKU, etc., rather than just creating all the individual HTML files in a batch process upfront and being done with it.
I'm thinking a sample HTML file for a SKU would look something like this when displayed:
Would love some feedback/guidance on this before I get myself too far down the wrong path, especially from someone who has done something similar in the past... Thanks!
Background Info and Goal
We have about 7500 product image JPGs stored in one folder on the IFS. Each filename is 123456789.JPG, where 123456789 is the SKU number. For each one, there is also a thumbnail image named TN_123456789.JPG in that same folder, so the folder actually contains about 15000 image files. Each SKU in our part master has an associated product class, such as 1234.
I would like to create a system where an initial HTML page shows all the classes as links. Clicking on one of those class links would display an HTML page showing all the SKU thumbnail images in that class, along with the SKU as a clickable link. Clicking on a SKU would display an HTML page with the full size product image along with some associated info from the product master, such as the vendor number and name.
I'm thinking that maybe CGIDEV2 might be the way to go to accomplish all this. I have not created HTML directly from RPG before, but I'm currently reading through Scott Klement's presentation on his website. CGIDEV2 has never been used here, but it was used once where I used to work in order to create some XML files on the IFS.
Questions
1. Where is the best place to download CGIDEV2? (I notice I can get it from IBM or from Easy400.net). Do you agree that CGIDEV2 is the way to go?
2. From what I've described, do you think it's easiest and/or best to create in batch a bunch of static HTML pages (one for every SKU, so each would be named 123456789.HTML) where the only difference is the SKU number, image link, and vendor info, or is it best to create one template SKU HTML file where I substitute in the SKU number and related info dynamically? The latter seems better to me but maybe more complicated because I'd need to run RPG from the web page whenever they navigate to a new SKU, etc., rather than just creating all the individual HTML files in a batch process upfront and being done with it.
I'm thinking a sample HTML file for a SKU would look something like this when displayed:
Code:
<HTML> <HEAD> <META HTTP-EQUIV="Refresh"CONTENT="1800;URL=123456789.HTML"> </HEAD> <BODY> </TABLE> <TABLE WIDTH=100% HEIGHT=3 BGCOLOR="#082984"> <TR><TD><FONT COLOR="#082984"></FONT> </TABLE> <H1>123456789 Product Description for this SKU</H1> <TABLE WIDTH=100% ALIGN=TOP> <TR><TD><IMG SRC="images/123456789.JPG" ALIGN=LEFT WIDTH=550 HEIGHT=365></TR></TD> <TD>CLASS: 1234<BR> Class Description for this Class<BR><BR> VENDOR: 12345<BR> Vendor Name<BR><BR> </TD> </TABLE> </BODY> </HTML>
Comment