LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-20-2015, 10:12 PM   #1
Daravon
Member
 
Registered: Mar 2006
Posts: 170

Rep: Reputation: 15
HTML website navigation structure help


I have a few years of experience coding basic HTML-related stuff on webservers, whether writing basic static webpages or perl/javascript reports, always basic reports, always oriented to "bite size" single pages that are easy to link to from a "link farm" index page. However I'm becoming interested in longer web documents.

I recently started a project to digitize a large collection of film negatives. The images will be automatically uploaded to my webserver, and I want to be able to browse through the pictures on the web. Sure there are probably web frameworks or CMS's that automagically do slideshows etc., but for pedagogical and stubbornness reasons I'm specifically interested in how to do this with plain-Jane HTML. I'm going to have a script to automatically upload the pictures as I scan them; I have freedom to create any filenames that I want, generating thumbnails is no big deal, and it's no problem to generate HTML pages to go with them, but I need to have some idea of a sane navigation structure in mind first. I would like this archive to be something I can add to for years to come.

I look at websites like this one, and I like how they have a main index page that links to each topic, while each topic itself has "next", "previous", "home" links on it, so it's almost like paging through a slideshow. This appeals to me in being simple and fast.

http://www.tldp.org/LDP/abs/html/regexp.html

I could do something like this in my film digitization project by generating and uploading an html document with every picture or every group of N pictures. I can have an incrementing number in the image filenames, so that I can populate the "next" and "previous" links correctly etc. Creating N static html pages for N images will be easy to do, but if I'm overlooking an opportunity to do this a smarter way I would like input. Does this make sense? This will form something like a linked list of html pages which COULD become a maintenance nightmare if I delete an image or something. PHP can do directory listing, for example, and then I could maybe have only one PHP page that would act as a slideshow providing, as in the static html case, I impose a sensible filename convention.

I prefer to avoid using any frameworks or CMS's, or databases if possible, because I just like to run as bare-bones as possible.
 
Old 07-21-2015, 02:06 AM   #2
JaseP
Senior Member
 
Registered: Jun 2002
Location: Eastern PA, USA
Distribution: K/Ubuntu 12.04/14.04, Scientific Linux 6.3/6.4, Android-x86, Pretty much all distros at one point...
Posts: 1,799

Rep: Reputation: 157Reputation: 157
I am not sure why you want to create static HTML pages, when you can,... using PHP,... create a template for dealing with the directory structure you are trying to create, on the fly, with specific PHP code for dealing with different use cases (adding images, deleting images, etc.). ?!?! Makes sense,.. No?!?!
 
Old 07-21-2015, 12:06 PM   #3
Sefyir
Member
 
Registered: Mar 2015
Distribution: Linux Mint
Posts: 429

Rep: Reputation: 184Reputation: 184
Maybe a static website generator like nanoc?

Done right, it should give you the control you want and the automation to make it easier to maintain.
You can define the layout in a single file - so a next, previous, etc shouldn't be a problem.

Since you're dealing with negatives it seems like you could follow a online comic structure.
Each page is similar with slightly different content (title, image) and increments up.
xkcd is a good example.

Last edited by Sefyir; 07-21-2015 at 12:11 PM.
 
Old 07-21-2015, 12:35 PM   #4
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 7,156

Rep: Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614
This should do most of what you want:

https://larsjung.de/h5ai/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Website navigation issues dandart LQ Suggestions & Feedback 2 12-18-2009 10:37 AM
Filesystem structure for website with a large amount of uploads DGath Linux - General 1 07-07-2007 05:44 AM
Apache and viewing directory structure of a website slamster Linux - Server 1 12-17-2006 12:03 PM
html popup/second level navigation bar newuser455 General 5 03-10-2005 08:46 AM
HTML Guru's or website Geeks (anyone who knows html) MasterC General 6 07-05-2002 02:59 PM


All times are GMT -5. The time now is 10:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration