This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > June 2004 > formatting/Changing folder view





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author formatting/Changing folder view
VegaLA

2004-06-10, 7:14 pm

Hi again,
I now have a page that displays two frames. the frame on the
right displays an HTML file
and the frame on the left shows the contents of an FTP folder, however the
left frame looks messy since it is only showing a 3rd of the page. I would like
to be able to format/redesign the display so that the list of folders in that
FTP folder will display neatly to the left. How would I go about soing this ?

Best regards,
Mitch.

Murray *TMM*

2004-06-10, 7:14 pm

Not the way you are now, that's for sure.

What's happening now is that you are taking the easy way - using the server
to just send you the folder contents. If you want to format that list, then
you need to jump into server scripting and file system objects, and ...well
.... there be dragons there.

Are you sure you want it formatted?

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"VegaLA" <webforumsuser@macromedia.com> wrote in message
news:caa8ab$bol$1@forums.macromedia.com...
> Hi again,
> I now have a page that displays two frames. the frame on

the
> right displays an HTML file
> and the frame on the left shows the contents of an FTP folder, however

the
> left frame looks messy since it is only showing a 3rd of the page. I would

like
> to be able to format/redesign the display so that the list of folders in

that
> FTP folder will display neatly to the left. How would I go about soing

this ?
>
> Best regards,
> Mitch.
>



Joe Makowiec

2004-06-10, 7:14 pm

On Thu 10 Jun 2004 02:12:27p, VegaLA wrote in macromedia.dreamweaver:

> I now have a page that displays two frames. the frame on the
> right displays an HTML file
> and the frame on the left shows the contents of an FTP folder,
> however the
> left frame looks messy since it is only showing a 3rd of the page. I
> would like to be able to format/redesign the display so that the list
> of folders in that FTP folder will display neatly to the left. How
> would I go about soing this ?


Frames aside...

Do you have any serverside scripting available? If so, you should be
able to pull in a list of files on the fly, format them and post the
page. Gary White posted this code (http://tinyurl.com/2bpg5[1]), which
creates a list of image files in PHP; modify as necessary:

<?php
$imagepath="/images";
$realpath=$_SERVER['DOCUMENT_ROOT']."/$imagepath";
$n=0;
if ($dir = @opendir($realpath)) {
while (($file = readdir($dir)) !== false) {
if(is_file("$realpath/$file")&&preg_match("/\.jpg/",$file)){
$n++;
$list[]=$file;
}
}
closedir($dir);
echo "n=$n";
for ($i=0;$i<count($list);$i++){
$x=$i+1;
echo "&pic$x=$list[$i]";
}
}
?>

[1] (http://groups.google.com/groups?hl=en&lr=&ie=UTF-8
&safe=off&threadm=bhl0c0ldlc2j5s5m7hmgne3drbmlg3cu38%404ax.com&rnum=1
&prev=/groups%3Fas_q%3Dimagepath%26safe%3Doff%26ie%3DUTF-8%26as_ugroup%
3Dmacromedia.*%26as_drrb%3Dq%26as_qdr%3Dw%26lr%3D%26hl%3Den)
VegaLA

2004-06-10, 7:15 pm

Well...Dragons or not I need to have this looking sweet since the way it is now
you can't really see the folder list. I don't mind dropping the frames and as
far as server side scripting can I use ASP VBScript ? Are there any websites
that have already done what I am targeting to do ?

Sponsored Links


Copyright 2003 - 2009 forum4designers.com  Software forum  Computer Hardware reviews