Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsGalleryGalleryCustomize what is displayedCustomize what is displayed
Previous
 
Next
New Post
8/31/2009 7:11 PM
 

Hello,

I'm fairly new to dnn and still working my way through learning how it works.  I was happy to see the beta release of the gallery module since I have been looking for a decent and free gallery.  I was able to successfully install the module and add files to it, however I'm having some problems with customizing the display.  How can I hide the file name and size from appearing under the thumbnails?  I would like only the title I give the file to display under it.  Also, for this particular album I do not want the users to have the option to sort (I want the files to appear in a specific order).  I tried setting the visibility to false on the container.ascx file but the elements are still appearing.  The other issue I have is with the viewer.  I only want the options to move forward and backward through the photos and zoom in and out.  Setting the visibility to false on the hyperlinks for the other buttons on the ControlViewer.ascx page have hidden those from view, however the BWPlus image still appears even with the visibility set to false.  I would appreciate any tips on making these minor tweaks to a great module.  Thanks in advance for your help!

 
New Post
8/31/2009 9:14 PM
 

You should be able to turn off the display of the filename and size by unchecking "Name" in the Display Info sub-section of Display Settings in the module's configuration. However, I did notice just now that you must select at least one of the displayable items as any attempt to uncheck all displayable items will result in an automatic return to displaying the Name of the file after the configuration is updated. If you do not use the Client field for example, you could set the displayable items to that field. The file Title field is always displayed.

Although you can specify in the Display Settings which fields will appear in the "Sort By" drop-down list, it is not possible to hide either the drop-down or  the associated Descending check box in the configuration settings. As the visibility of these controls is turned on/off in code depending on whether the gallery structure is valid, simply adding Visibility="False" to the controls' markup in Container.ascx will not work either. However, adding a css "display: none" style either in-line in Container.ascx or in a theme's style sheet (assuming the right css selector could be crafted) should work in hiding the controls from view.

Likewise with the icon buttons in ControlViewer.ascx. The BWPlus and BWMinus (and also the zoom icons which you want visable anyway) also have their Visibility property turned on and off in code so will not stay hidden even when Visibility="False" is added to the markup. The same css style="display:none" trick should work for those also.

Once the module officially releases, the full source code will also be available for further customizing.

Let us know how these suggestions work out.


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
9/1/2009 7:35 AM
Accepted Answer 

Thank you so much for your quick response and excellent suggestions!  It never dawned on me that the file name and size was connected to the "Name" setting (that was a big DUH!).  I guess I had it confused with Title (which isn't an option to show or not) thinking that is what was meant by Name, but turning Name off and using the Client to display did the trick and shows exactly what I want!

Your CSS suggestion also worked.  I guess I spent so much time focused on the code itself that I never even thought of using CSS to not show it.  I look forward to the final release with the source code!

Thanks again!

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsGalleryGalleryCustomize what is displayedCustomize what is displayed


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out