Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

How to best add links to files? 2k+ files.

So im trying to figure out a way I can help my self automate the process of adding links to files in my html. I heard this can be done in json/javascript or php? Im just not sure how to start and go about learning how to do it.

the site im working on is temporarily up at http://new.omegadesignla.com/courses/math.php and all the files will some how need to be linked. Is there a way to do this in javascript or php?

also, the files are stored locally in directories on the server like <a href="math/algebra1cc/algebra1ccstudysheets/algebra1ccstudysheetunit1.pdf>

the site was done before but horribly and I have to redo it better. I am using foundation.

I will have to somehow add links to a hundered + classes each with 20 files. Here is an example code:

<div class="tabs-content">
    <div class="content active" id="p1a">
          <ul class="ss">
          <li><a href="#">Study Sheet Unit One</a></li>
          <li><a href="#">Study Sheet Unit Two</a></li>
          <li><a href="#">Study Sheet Unit Three</a></li>
          <li><a href="#">Study Sheet Unit Four</a></li>
          <li><a href="#">Study Sheet Unit Five</a></li>

          </ul>
    </div>
    <div class="content" id="p1b">
      <ul class="ssa">
          <li><a href="#">Study Sheet w/ Answers Unit One</a></li>
          <li><a href="#">Study Sheet w/ Answers Unit Two</a></li>
          <li><a href="#">Study Sheet w/ Answers Unit Three</a></li>
          <li><a href="#">Study Sheet w/ Answers Unit Four</a></li>
          <li><a href="#">Study Sheet w/ Answers Unit Five</a></li>

          </ul>
    </div>
    <div class="content" id="p1c">
      <ul class="ga">
          <li><a href="#">Graded Assignment Unit One</a></li>
          <li><a href="#">Graded Assignment Unit Two</a></li>
          <li><a href="#">Graded Assignment Unit Three</a></li>
          <li><a href="#">Graded Assignment Unit Four</a></li>
          <li><a href="#">Graded Assignment Unit Five</a></li>

     </ul>
    </div>
    <div class="content" id="p1d">
      <ul class="gaa">
          <li><a href="#">Graded Assignment w/ Answers Unit One</a></li>
          <li><a href="#">Graded Assignment w/ Answers Unit Two</a></li>
          <li><a href="#">Graded Assignment w/ Answers Unit Three</a></li>
          <li><a href="#">Graded Assignment w/ Answers Unit Four</a></li>
          <li><a href="#">Graded Assignment w/ Answers Unit Five</a></li>

          </ul>