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 ForumsGalleryGalleryFix to render Gallery correctly with better look and feelFix to render Gallery correctly with better look and feel
Previous
 
Next
New Post
8/4/2005 2:00 PM
 

To render Gallery and thumbnail in Card/List/Standard views correctly as Tam Minh did (to see visit this link http://dnn3.tttcompany.com/Gallery/tabid/57/Default.aspx )

 

Following changes are needed to fix the broken usage of CSS classes in

  • CardView.vb
  • ListView.vb
  • StandardView.vb

 

To avoid CSS class name conflicts Gallery Team add Gallery_ prefix to all the CSS class names. But I think they forget to adjust the reference of CSS classes accordingly, which cause Gallery to render differently.

If you want your gallery need to look more professional with better look and feel. In the following source files, which are available under folder called Controls :

  • CardView.vb
  • ListView.vb
  • StandardView.vb

In each file there are two methods RenderAlbum() and RenderFile()you need to replace all the occurrences of classes listed in "CSS Class (OLD)" column with corresponding classes listed in “Change to CSS” column in

  • CardView.vb
  • ListView.vb
  • StandardView.vb
  • Sr.#

    Method Name

    CSS Class (OLD)

    Change to CSS

    1.  

    RenderAlbum()

    AlbumTL

    Gallery_AlbumTL

    AlbumTC

    Gallery_AlbumTC

    AlbumTR

    Gallery_AlbumTR

    AlbumML

    Gallery_AlbumML

    Album

    Gallery_Album

    AlbumMR

    Gallery_AlbumMR

    AlbumBL

    Gallery_AlbumBL

    AlbumBC

    Gallery_AlbumBC

    AlbumBR

    Gallery_AlbumBR

    1.  

    RenderFile()

    FileTL

    Gallery_FileTL

    FileTC

    Gallery_FileTC

    FileTR

    Gallery_FileTR

    FileML

    Gallery_FileML

    File

    Gallery_File

    FileMR

    Gallery_FileMR

    FileBL

    Gallery_FileBL

    FileBC

    Gallery_FileBC

    FileBR

    Gallery_FileBR

    Compile the Gallery project and deploy the DotNetNuke.Modules.Gallery.dll to see the changes. I hope you like it.

     

    Many thanks,

    S Gill

     
    New Post
    8/4/2005 2:27 PM
     

    Already done.  If you look at hte forums you will see everything is prefixed with Forum_.

    I am not sure everything matches up exactly as you have above, but I think it does fo


    Chris Paterra

    Get direct answers to your questions in the Community Exchange.
     
    New Post
    8/4/2005 3:08 PM
     

    Crispy,

    Scope of my post is Gallery 3.0.10, In Gallery code CSS classes are prefixed with Gallery_ but my findings are based on Gallery 3.0.10 code base. Classes referenced in source code did not match up with prefix Gallery_ to render Album and views correctly.

    Many thanks
    S Gill

     
    Previous
     
    Next
    HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsGalleryGalleryFix to render Gallery correctly with better look and feelFix to render Gallery correctly with better look and feel


    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