Files Block

Permalink
I'm looking for a "files" block to display several files to download. Exactly like the "file" block but with several files...

Any idea ?

dgaussin
 
Tony replied on at Permalink Reply
Tony
We're currently working on a Document Library block that should be available along with the next minor release of concrete. It'll allow you to choose what file sets it pulls from, and what attributes will be displayed. In the meantime (and if you're a programmer) you may want to check out the /models/FileList class, as that'll really help you query and list files. Check out the file manager in the dashboard for an example usage. Here's a quick example:

Loader::model('file_list');
Loader::model('file_set'); 
$fileList = new FileList();  
//filter by file set
if($setId){
$fileSet = FileSet::getByID(intval($setId) );
$fileList->filterBySet($fileSet);
}
//search
$keywords=$_REQUEST['keywords']; 
if($keywords){         $fileList->filterByKeywords( $keywords );
}
//sorting
$fileList->sortBy('fvTitle', 'asc'); 
$filesCount = $fileList->getTotal();


Hope that helps.
chawki replied on at Permalink Reply
chawki
Hi.

Do you mean a document library like in SharePoint? That'd be just stunning to have in Concrete! Any idea how much it will cost? :)

Thanks,
CJ
Tony replied on at Permalink Reply
Tony
I'm not familiar with sharepoint, so I can't really say. c5 already has the File Manager, which was greatly improved in the 5.3 release. What I'm talking about here is a reusable block for making lists of files available on the front end of the site. Not sure if this will cost anything yet.
frz replied on at Permalink Reply
frz
Yeah, like sharepoint.. kinda.. not really.. but sure.

yes, it will cost something.

no, not 20k/year
-frz
stoneyard replied on at Permalink Reply
stoneyard
We will use this block for sure. How soon?
stoneyard replied on at Permalink Reply
stoneyard
We will use this block for sure. How soon?
dgaussin replied on at Permalink Reply
dgaussin
I had no time to develop something myself or waiting the block like the website had to be live the day before I posted.

And if someone needs the same thing, and has short delay too, here how I did that. The quick solution is a content block with a custom template. The content block is a list and the customer fills that. The custom template embeds the list with the needed CSS class.
sascha replied on at Permalink Reply
sascha
Maybe this one fits your needs ?http://www.concrete5.org/community/forums/block_requests/directory_...

It lists all files from a folder for download. Demopage is set up.
Briann replied on at Permalink Reply
Seems to be a nice block, but unfortunately it doesn't work together with the filemanager...

It would be nice if some block could display all files out of a certain file set. That way you can manage the files more easily.

For example:

Visitor A may see file 1. Visitor B may also see file 1. But Visitor A may also see file 2. Visitor B may not. Then you'll need to upload the file twice, in 2 different folders for each visitor.

But when it would work together with the file manager, you could just put file 1 in Visitor A's & visitor B's file set. Then you have 1 file, but 2 visitors can see it.

(because you would set the block on the personal page of visitor A to display all files out of file set A. etc.)

Could a developer comment for when the release of the document library block is planned?

@dgaussin: could you post the code that you used? That would be very nice!
frz replied on at Permalink Reply
frz
we have a block that were calling "resources list" or something like that - it lets you spit out a list of all the files in the file manager that fit in a set or cross set and choose which columns are displayed and sortable.. handy for making a little extranet type page..

that will be available in the marketplace before the end of july.
-frz
Briann replied on at Permalink Reply
I'm afraid that it will cost something, right?
If so, what would be the amount?
frz replied on at Permalink Reply
frz
probably $55
-frz
Briann replied on at Permalink Reply
Are you sure that it will be available before the end of July? Would be very nice, cause we're waiting for it.

And, I assume that it's $55 one time, right?
dihakz replied on at Permalink Reply
dihakz
Is this available, yet? (willin' to pay for it, too, depending on interface and features)
Briann replied on at Permalink Reply
We're also still waiting. But it takes longer and longer :(

@ frz, could you give all of us an indication when it will be available?

Thanks in advance.
stoneyard replied on at Permalink Reply
stoneyard
$55.00 is fine. Let us know when it is ready. Thanks, Jerry.
Tony replied on at Permalink Reply
Tony
hey, the new document library block needed some features that were just released with concrete5.3.3, and I've been out of the office for a couple of weeks. But this is the top item on my to-do list right now so expect it in about the next week or so.
dihakz replied on at Permalink Reply
dihakz
You've already GOT my $55... just need to get this going! Thank you, thank you, thank you!!

Darren
frz replied on at Permalink Reply
frz
i'll review it as soon as im done deleting these 300 messages from the forums. ;)
frz replied on at Permalink Reply
frz
jstrong replied on at Permalink Reply
jstrong
Hey Frz - I purchased the Document Library a few months back, and it's ALMOST great :). It does do everything as advertised, which is wonderful.

As a feature enhancement, however, I would love to see the ability for a user to upload to the file set bound to the doc library as well, from the front-end, without the file manager.

I have installed a few blocks related to file management and this feature would complete the doc library for me!

And while I'm being greedy - would be awesome to have it support multiple simultaneous uploads, and assignment of attributes (based on block settings, or the page type or some such.

Thanks so much! -J
jstrong replied on at Permalink Reply
jstrong
Whoa, apologies. After removal of my head from my posterior, I realized the magical 'File Management' option. Works great! Thanks -J