Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Media file uploder View modes: 
User avatar
Member
Member
clan1999-hotmail - 3/1/2010 4:57:09 AM
   
Media file uploder
Hello,

I've added Media file uploader webpart to allow Group members to upload photos to the media library. However, when viewing a photo, the Media file uploader webpart is still there on the page. How can I make it so that the webpart is only displayed when viewing the media library, but not when viewing a specific photo?

Thank you.

Seong

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 3/1/2010 7:20:59 AM
   
RE:Media file uploder
Hello Seong,

You may use the web property: Hide on subpages: checked. Or if you want the upload web part to be visible only on appropriate page please see this FAQ:

How to show/hide webpart on specific document within one template?


Best regards,
Helena Grulichova

User avatar
Member
Member
clan1999-hotmail - 3/1/2010 8:25:48 AM
   
RE:Media file uploder
Hi Helena,

Actually, both methods don't work. The URL for viewing a specifc library is following:

http://localhost/Groups/Photography/Library-medialibrary.aspx

The URL for viewing a document in that library is:

http://localhost/Groups/Photography/Library-medialibrary.aspx?fileid=19

So since they are same document, "Hide on subpages" does not apply in this case and I don't think that FAQ applies here either.

Seong

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 3/2/2010 7:47:52 AM
   
RE:Media file uploder
Hi Seong,


thank you for your explanation. In this case you could use the condition about fileid query string like:

{%fileid == ""%}


Best regards,
Helena Grulichova

User avatar
Member
Member
clan1999-hotmail - 3/2/2010 2:16:08 PM
   
RE:Media file uploder
Hi Helena,

Thank you for the reply. Could you be more specific? Which property of Media file uploader webpart do I put "{%fileid == ""%}"? It does not have conditional property field for visibility.

Seong

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 3/3/2010 2:17:16 PM
   
RE:Media file uploder
Hello,

click on the black arrow before the checkbox (Visible property) and insert the macro I mentioned.

Best regards,
Helena Grulichova