Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Regarding the document library webpart.. View modes: 
User avatar
Member
Member
sansugoi_sayounara-hotmail - 1/16/2012 5:44:52 AM
   
Regarding the document library webpart..
Hi all,

This is very urgent.. I am creating document library, What I want is if there is subfolder in any folder then in the document library it should display the folder in listing and when user click on folder link then it will open the files in that

Thanks
Sansugoi

User avatar
Kentico Support
Kentico Support
kentico_janh - 1/16/2012 6:24:40 AM
   
RE:Regarding the document library webpart..
Hello,

There is not such a property, which would allow you to browse subfolders in a document library, but you can simulate it by adding some navigation web part above or under your document library and if you set document library's path to {%Path["."]%}/%, the library will change its content depending on current path.

Best regards,
Jan Hermann

User avatar
Member
Member
sansugoi_sayounara-hotmail - 1/18/2012 7:43:40 AM
   
RE:Regarding the document library webpart..
Hi Jan,

Thanks for your reply,,

I am hereby attaching an image which type of listing I need.
User image

and for subfolder:

User image .


Please guide me, how can I achieve this in kentico..


Thanks

Sansugoi

User avatar
Kentico Support
Kentico Support
kentico_janh - 1/19/2012 3:30:20 AM
   
RE:Regarding the document library webpart..
Hello,

Yes, I understand what you want to achieve, but the document library web part can handle only the cms.file document type (not the cms.folder one), so you can achieve this behavior only by combination of the document library web part and some navigation web part as I mentioned it in the previous post.

Best regards,
Jan Hermann

User avatar
Member
Member
sansugoi_sayounara-hotmail - 1/19/2012 7:16:27 AM
   
RE:Regarding the document library webpart..
Hi Jan,

Thanks for your reply,

Can you please guide me how to implement the navigation webpart as you said..


Thanks
Sansugoi

User avatar
Kentico Support
Kentico Support
kentico_janh - 1/19/2012 7:48:02 AM
   
RE:Regarding the document library webpart..
Hello,

Of course, please make sure, that your folders use the same template as the document (Properties -> Template), on which will be your document library and add into this template for example the CSS List menu web part and fill its properties as it is shown below:
Path: ./%
Document types: CMS.Folder
Maximum nesting level: 1

This template will also contain the Document library web part with this set property:
Library path: ./%

So now, when you click on the folder, the document library shows its files.

Best regards,
Jan Hermann

User avatar
Member
Member
sansugoi_sayounara-hotmail - 1/19/2012 8:29:58 AM
   
RE:Regarding the document library webpart..
Hi Jan,

I have created a page test page, and select a test template for this page. Now I create 2 folders and added the same template to them.

Now I add csslist menu in test page and added :Path: ./%
Document types: CMS.Folder
Maximum nesting level: 1

and then add a document library webpart and set Library path: ./% as you sadi above.

But in the page it is showing nothing, Even though I have subfolders and files in document folder..

Please guide me as this is very very urgent..


Thanks
Sansugoi

User avatar
Kentico Support
Kentico Support
kentico_janh - 1/19/2012 8:48:10 AM
   
RE:Regarding the document library webpart..
Hello,

Do you have also some files under your test page and under those folders? It should displays files under the test page and when you click on a folder then it should display files belong under this folder. Could you please doublecheck properties you have set? It would be great, if you could post here screenshots of the test page, test subfolder and your content tree.

Best regards,
Jan Hermann

User avatar
Member
Member
sansugoi_sayounara-hotmail - 1/19/2012 10:21:24 PM
   
RE:Regarding the document library webpart..
Hi Jan,

Thanks for reply...

Here I am pasting the image User image


the folder name is displaying above the document library, but the document library is displaying blank..


I want to display the document library as showing in this image: User image

This is the layout of my document library page (with name, date, type and size)

please guide me how can I display, and when user enter in any folder then there should be a back icon to come back on main page.

Please guide

Thanks
Sansugoi

User avatar
Kentico Support
Kentico Support
kentico_janh - 1/23/2012 4:19:13 AM
   
RE:Regarding the document library webpart..
Hello,

Ok, let's take this step by step once again. Let's have following document structure:

User image

Please make sure, that you use the same template on folders as on the library page and place on this template the CSS List menu web part and fill its properties as it is shown below:

User image

Add also a Document library web part on this template and set the following property:

User image

So when you now come to the library page, you will see files under this page:

User image

And when you click on the sublibrary1 link, you will see filles under this sublibrary:

User image

But if you want to display folders as you posted it in your previous post, you will have to develop your own web part, because that can't be done by our Document library web part. For more information about developing web parts please follow the link below to our documentation:

http://devnet.kentico.com/docs/devguide/index.html?developing_web_parts.htm

Best regards,
Jan Hermann

User avatar
Member
Member
sansugoi_sayounara-hotmail - 1/23/2012 5:44:18 AM
   
RE:Regarding the document library webpart..
Hi Jan,

Thanks for reply.. Can we display the modified date and file size in library and also can we make it to sort on columns (dat, name etc )

Thanks Again
Sansugoi

User avatar
Kentico Support
Kentico Support
kentico_janh - 1/23/2012 8:09:56 AM
   
RE:Regarding the document library webpart..
Hello,

You might be able to display those attributes, but only through a customization, because none of our web parts can do that. You will probably need to create a web part, which will get sorting preferences from a querystring and which will be able to browse children files and summarize their sizes for a folder size. Other attributes like modified date or folder name are available through document's fields DocumentModifiedWhen and NodeName. You can find more information in our documentation:

http://devnet.kentico.com/docs/devguide/index.html?developing_web_parts.htm
http://devnet.kentico.com/docs/devguide/index.html?api_overview.htm

Best regards,
Jan Hermann