Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Document Viewer View modes: 
User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 12/10/2010 8:36:19 AM
   
Document Viewer
Is there a web part created which will act as a universal document viewer? I'd like to create a page with a filtered view of docs from the media library and when clicked on, it displays it in the page. I know I can write some code for this but just looking for a quick solution right now.

User avatar
Kentico Support
Kentico Support
kentico_radekm - 12/13/2010 8:49:34 AM
   
RE:Document Viewer
Hello.

We have we have "Universal document viewer" web part, which displays given document or list of documents using ASCX or XSLT transformation. This web part is in "Listing and viewers" category. For media files in particular, you could use "Media gallery - file list" web part. In version 5.5 R2 you can see new document management web part as well (http://devnet.kentico.com/Blogs/Michal-Neuwirth/November-2010/New-Document-management-in-Kentico-CMS-5-5-R2.aspx).

You may need to change transformation if you have some special requirement. In this case, I would need you to clarify what exact behavior do you want to achieve, which is not currenty covered by web parts I mentioned. Thank you.

Best Regards,
Radek Macalik

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 12/20/2010 1:30:34 PM
   
RE:Document Viewer
Does this allow me to view the document directly in the web page? I don't want to have to click on the document and start Adobe Reader or an Office program but would like something within the browser to display the content of the document when the page loads. Very similar to how the media player works within Kentico.

User avatar
Kentico Support
Kentico Support
kentico_radekm - 1/16/2011 4:13:46 PM
   
RE:Document Viewer
Hello.

„Media library - file list” web part´s opening files (e.g. pdf´s) in a new window, since it generates link to file, not a page. However it depends on your browser settings and plug-in (e.g. for Adobe Reader), if it is open in a new window, new tab, or in current window. The same for „Document library“ web part. The difference to example you mentioned - media player, is, that media player is a web part placed on some page, not media file itself. So, you would need to use proper web parts for particular type of files, or opening them in some iframe element. Using this way, it would be opened in proper program (e.g. Adobe Reader plug-in for pdf files), but in your web page (as inner window/frame).

So, as for your original question, we don´t have such a web part which can open physical files of all kind from your media library within a page as “included element.”


Best Regards,
Radek Macalik