Click here to get back home

automatically create multiple web pages

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
automatically create multiple web pages larryawade 04-23-2008
Posted by larryawade on April 23, 2008, 12:48 pm
Please log in for more thread options
I need the ability to automate the creation of 500 similar webpages
for an educational site. Let=92s say approximately 100 lessons with
each lesson having 3-5 pages. I already have a program that allows me
to create a template and merge in files. The body of each webpage
will include a line of text and a picture.

Let=92s say I will have a Folder on my computer called Text with files
called Lesson1a.txt, Lesson1b.txt, Lesson1c.txt, Lesson2a.txt,
Lesson2b.txt, Lesson2c.txt, Lesson2d.txt,=85etc. Then a similar Folder
for the Images =96 Image1a.jpg, Image1b.jpg,=85etc.

Is there a program or routine that can go through the Text folder and
create a file for each entry. Let=92s say the files that are created
are called Lesson1a.it, Lesson1b,it,=85etc. The program or routine
would create file with contents like:

<p align=3D"center"><font size=3D"6">Lesson1a.txt</font></p> (The routine
would need to place the contents of Lesson1a.txt into the file.)

<img src=3D"Lesson1a.jpg" alt=3D"" border=3D"0" width=3D"180"> (The routi=
ne
would need to place the text =93Lesson1a.jpg=94 into the file.)

It would then create the Lesson1a.it file and then continue on for
each file entry in the Folder.

Posted by Ben Bacarisse on April 23, 2008, 1:44 pm
Please log in for more thread options
larryawade@gmail.com writes:
<snip>
> Let’s say I will have a Folder on my computer called Text with files
> called Lesson1a.txt, Lesson1b.txt, Lesson1c.txt, Lesson2a.txt,
> Lesson2b.txt, Lesson2c.txt, Lesson2d.txt,…etc. Then a similar Folder
> for the Images – Image1a.jpg, Image1b.jpg,…etc.
>
> Is there a program or routine that can go through the Text folder and
> create a file for each entry.
<snip>

This is not really topical here. The answer will depend on what
system you are using and what tools you have available. For example,
if you have Perl (a scripting language) installed it is a matter of a
few lines to write what you want. In fact the task is simple enough
to be done with the command-line tool (what is know as a shell
script on Unix-like systems and a batch file in Windows).

You might get better help in some groups that is specific to you
system.

--
Ben.

Similar ThreadsPosted
Validating HTML in multiple pages December 18, 2005, 7:02 pm
Looking for example to open multiple pages on same action January 11, 2008, 4:16 pm
How to concatenate multiple web pages into one and show ONLY this ONE in browser ?? February 22, 2006, 5:08 pm
Can I send multiple html pages to print one at a time October 10, 2006, 8:47 pm
Can you break a single HTML file into multiple pages like PEGHELP for Pocket PC does? July 27, 2004, 1:49 pm
How do I automatically load a different page ? November 10, 2004, 1:04 pm
How to make a web page getting refreshed automatically July 20, 2004, 3:51 am
Automatically changing the hue of a jpg in html page August 11, 2004, 9:43 pm
Can HTML automatically pick up JPGs? September 12, 2004, 1:16 pm
automatically put a default filename in value October 18, 2005, 1:56 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap