• Post Reply Bookmark Topic Watch Topic
  • New Topic

INCLUDE js based on a dir's contents?  RSS feed

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any ideas on how to construct an hlml page that uses an INCLUDE statement to build the content based on a folder's contents (html files). I want to avoid having to manually write individual INCLUDE statements for each file in a directory!! (I've never seen an INCLUDE statement that references a directory of files � just individual filenames � But I'm a relative newbie).

Background: I maintain a web site that houses procedural content (now about 2900 files comprising 446 procedures). The procedures were originally long, rambling pages of content. Users constantly complained about not being able to locate information.

So we chunked the content using basic Information Mapping principles. All chunks relating to a procedure are housed in a unique directory on the server. A �Table of Contents� page for each procedure now serves as the portal into the new chunks. The TOC pages are available to the user thru the site's home page. This restructuring has greatly improved the site, however we now lack a way to produce a printable version of an entire procedure thru one link. I would like to give users the ability to print/view the entire procedure on the Table of Contents page. Hence my interest in the INCLUDE statement (perhaps I should be considering another solution?).

I have intermediate(+) experience with html, basic knowledge of js and no experience with other scripting languages (although I can muddle my way thru most anything)

Thanks in advance for any direction/help!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!