Forum Moderators: not2easy

Message Too Old, No Replies

DIV lookup?

         

TomTomLo

8:27 pm on Jan 21, 2008 (gmt 0)

10+ Year Member



I'm using a DIV as a sidebar, it contains a bunch of thumbnails which when clicked take the users to the page containing the full sized image.

The page with the full sized image also has this sidebar on it.

In fact every page has the sidebar.

The problem is, every time I add an image, I have to add it to every single page.

Is there anyway to get the DIV to look up the list of thumbnails from an external HTML document so that I only have to add a new thumbnail in one place for all of my pages to display it?

Maybe XML has the answer.

Thanks guys!

Tom

mayest

8:40 pm on Jan 21, 2008 (gmt 0)

10+ Year Member



You should look into Server-side Includes (SSI) or a server-side scripting language like PHP. Basically, you should have the HTML for that sidebar in a separate file, and then pull that file into the sidebar for each page. That way, you only have to update the sidebar page once and it will be reflected throughout the entire site.