Reply
Index page...
Old 03-04-2008, 03:51 PM Index page...
Average Talker

Posts: 23
http://downloads.openwrt.org/

This is just an example of something I would like to add to my site. I have folders of files that I can navigate on my site but I would like to make it look better by somehow embedding this index view onto a page of my site like this example. Does anyone know how or have a code? If it's just a code, I can probably just put it in a table in the middle of a page and it should work....right?
Brautigam is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 03-04-2008, 05:19 PM Re: Index page...
rolda hayes's Avatar
Wannabe Adventurer...

Posts: 563
Name: Darren
Location: England
Hmmm.... try...

<img src="/icons/folder.gif" alt="[DIR]" /> <a href="docs/">docs/</a>

and adjust your links accordingly.
__________________
"I always wanted the adoration of John Lennon - With The Anonimity of Ringo Starr..."
QuizBay Help with the testing of this Beta site!
rolda hayes is offline
Reply With Quote
View Public Profile
 
Old 03-05-2008, 03:39 AM Re: Index page...
chrishirst's Avatar
Super Moderator

Posts: 13,609
Location: Blackpool. UK
Quote:
I can probably just put it in a table in the middle of a page and it should work....right?
Wrong.

You need a server side script to parse the folder tree and create the navigation

If you are hosted on Apache you could try using FancyIndexing and Iframes or SSI to get somewhere near.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System

Last edited by chrishirst : 03-05-2008 at 11:02 AM. Reason: added a word so it now makes some sense.
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-05-2008, 07:47 AM Re: Index page...
olliebollie's Avatar
Novice Talker

Posts: 10
Name: Oldřich Vetešník
Location: Hradec Králové, Czech Republic
Quote:
Originally Posted by Brautigam View Post
http://downloads.openwrt.org/

This is just an example of something I would like to add to my site. I have folders of files that I can navigate on my site but I would like to make it look better by somehow embedding this index view onto a page of my site like this example. Does anyone know how or have a code? If it's just a code, I can probably just put it in a table in the middle of a page and it should work....right?
I created one level file list and - as a list - I coded it like this:
<ul>
<li><a href="path"><img src="icon/path" alt="icon" /> file name</a></li>
<li><a href="path"><img src="icon/path" alt="icon" /> file name</a></li>
...
<ul>
It can get styled pretty well too, but if you want to show properties and attributes, you might want to use a table or some other way around...
__________________
<p style="voice-family: female;">I'm a big man!</p>
olliebollie is offline
Reply With Quote
View Public Profile Visit olliebollie's homepage!
 
Old 03-06-2008, 06:01 PM Re: Index page...
Average Talker

Posts: 23
Okay. Thanks for the quick responses. I will work on it soon.
Brautigam is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Index page...
 

Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12814 seconds with 12 queries