PHP Directory Listing (FREE) - NEW VERSION/NEW NAME

In this section you can share self-made extensions with other users of WYSIWYG Web Builder.

There are already more than 250 extensions available!
WWBman
 
 
Posts: 754
Joined: Fri Jan 08, 2010 6:10 pm

Re: PHP Directory Listing (FREE) - NEW VERSION/NEW NAME

Post by WWBman » Mon Aug 21, 2017 10:50 am

I don't understand why you have now created previousnewsletters in the root.
Just as a test, create a folder in the root called test1 (or anything else).
Use my project asis and publish all files to test1 using the built-in wwb publish.
Create a folder in test1 called previousnewsletters.
Copy some pdf files to previousnewsletters.
See if that works.
I guess the problem may be where you put the html and folders and what they are called.

User avatar
alex4orly
 
 
Posts: 842
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: PHP Directory Listing (FREE) - NEW VERSION/NEW NAME

Post by alex4orly » Mon Aug 21, 2017 11:15 am

I don't have a html
I have dirlist.php which is renamed from your index.php

WWBman
 
 
Posts: 754
Joined: Fri Jan 08, 2010 6:10 pm

Re: PHP Directory Listing (FREE) - NEW VERSION/NEW NAME

Post by WWBman » Mon Aug 21, 2017 11:20 am

I meant html genericly.
If you have time just try my project and if that works for you then it must be the placement/naming of your html/files/folders.
I realise the time difference between us!

EDIT:
I reckon the problem is with the file dirlist.php; rename it to anything else.
Or, I would rename the folder to dirlist instead of dirlist.php.

User avatar
alex4orly
 
 
Posts: 842
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: PHP Directory Listing (FREE) - NEW VERSION/NEW NAME

Post by alex4orly » Mon Aug 21, 2017 9:50 pm

Hello again,

It finnaly got to me what the problem is - the file MUST be called index.php, this is the only way way you can point to a folder and it will start that page by default, I realized it from your examples - in those examples there is a url that has in it only the folder, without pointing to a filename.php.

So here it is : http://www.nmaa-rc.org.au/news/

And becasue I can't have 2 files with that name in the root / home folder, it MUST be placed into its own folder and within that folder make a subfolder where the files are stored, and specify that subfolder name in the top configuration option of index.php

Questions :

1) How do I change the default sorting to be decending?
2) How to make the columns width to be fixed, not stretch to the full width of the screen?

Cheers

WWBman
 
 
Posts: 754
Joined: Fri Jan 08, 2010 6:10 pm

Re: PHP Directory Listing (FREE) - NEW VERSION/NEW NAME

Post by WWBman » Mon Aug 21, 2017 10:30 pm

Excellent, glad you got it working.
Alas, I can't answer your 2 questions.

WWBman
 
 
Posts: 754
Joined: Fri Jan 08, 2010 6:10 pm

Re: PHP Directory Listing (FREE) - NEW VERSION/NEW NAME

Post by WWBman » Tue Aug 22, 2017 8:02 am

On second thoughts! :-)

1. To get the order descending
change:
private $__sortOrder = 'asc';
to:
private $__sortOrder = 'desc';

in the php file about line 126.
*****************************************************************
But beware it will have to be changed after each Publish.
*****************************************************************

2. Have you tried using a layer, as specified in Help (except I used centre instead of stretch)?
http://wwb.batcave.net/dirlist.php

User avatar
alex4orly
 
 
Posts: 842
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: PHP Directory Listing (FREE) - NEW VERSION/NEW NAME

Post by alex4orly » Wed Aug 23, 2017 12:05 am

Thanks, I will try that

Cheers

User avatar
alex4orly
 
 
Posts: 842
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: PHP Directory Listing (FREE) - NEW VERSION/NEW NAME

Post by alex4orly » Wed Aug 23, 2017 12:18 am

WWBman,

I tried, but how do I center it?
In the css or the php file? where
I di center in WWB... obviously not enough

http://www.nmaa-rc.org.au/news/

WWBman
 
 
Posts: 754
Joined: Fri Jan 08, 2010 6:10 pm

Re: PHP Directory Listing (FREE) - NEW VERSION/NEW NAME

Post by WWBman » Wed Aug 23, 2017 7:39 am

In the Help:
2.Certain size and position if you drag and drop the extension on a layer and set the properties to
relative size and position and to stretch the content.


Although I used Alignment Center instead of Stretch Content (DEPRICATED).
No need to manually change anything.
http://wwb.batcave.net/dirlist.php

User avatar
alex4orly
 
 
Posts: 842
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: PHP Directory Listing (FREE) - NEW VERSION/NEW NAME

Post by alex4orly » Thu Aug 24, 2017 4:17 am

Can you please send me the script?
I don't manage to get to this setup

Thanks

WWBman
 
 
Posts: 754
Joined: Fri Jan 08, 2010 6:10 pm

Re: PHP Directory Listing (FREE) - NEW VERSION/NEW NAME

Post by WWBman » Thu Aug 24, 2017 7:38 am

alex4orly wrote:
Thu Aug 24, 2017 4:17 am
Can you please send me the script?
I don't manage to get to this setup

Thanks
There is no script. The options are in the standard Layer Properties.

User avatar
alex4orly
 
 
Posts: 842
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: PHP Directory Listing (FREE) - NEW VERSION/NEW NAME

Post by alex4orly » Thu Aug 24, 2017 8:54 am

Got it, thanks for your help

Cheers

Post Reply