Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am in the process of redoing some of our company website. We do a lot of recruiting and so we change job descriptions on our job offering page quiet often.

I was wondering what is the best way to have some sort of dynamic table of contents so that if I add an additional job description that I don't have to edit the TOC.

Here is what it looks like currently http://www.markonsolutions.com/opportunities.html

which is the style I like but If I add/remove a page I have to edit this page. Is there anyway that I can make the web page just see everything in a folder and list it there?

thanks

share|improve this question
add comment

2 Answers 2

up vote 3 down vote accepted

Use a scripting language like PHP to read the files in the directory. Personally I would do something like this:

  1. Create a PDF file for each job description (i.e. design-manager.pdf , financial-manager.pdf)

  2. Use PHP to loop through the directory, and add the file name to an array

  3. Manipulate the array to output the HTML (remove the dash using str_replace and capitalize the job title using ucwords).

share|improve this answer
add comment

html can't do this. Use CGI or look into a scripting language such as PHP, perl, asp, etc.

share|improve this answer
1  
HTML is a static language. For dynamic content your best choices are either PHP or JSP (JavaServer Pages). –  Don Salva Sep 1 '09 at 16:46
1  
@NoCanDo: Aren't Python, Ruby, .NET, pretty much anything else more available than JSP these days? –  Macha Aug 22 '10 at 16:20
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.