RSGallery2 support forums > Features requests !

Extra Field/ Line For Gallery Date/ Extra Information

(1/2) > >>

scene66:
Wishlist Feature

I'm using the Latest Gallery module (it's great). If the gallery description is too long, the text pushes the adjoining gallery thumb away from the grid.

In the screenshot, I have had to shorten the description of the galleries to avoid this. For my application I also need to list the date of the event which puts greater stress on the length of the description. I note the event date (an optional function already in the module) is different to the upload date.

An ideal solution in this instance would be to have 2 lines of text. Perhaps an extra field as the second line? Perhaps the text wraps after a certain amount of characters.

mirjam:
If my description is too long the image moves up and the image upload date moves down. I can use CSS to get around that by giving the div element for the name a height:

--- Code: ---div.mod_rsgallery2_latest_galleries_name {
    height: 41px;
    text-align: center;
}

--- End code ---
(I use Firebug to test and try what height I like best and then it's to the user's judgement if there should be room for 1, 2, 3 or more lines). Perhaps you also need a width CSS setting for this div, but that's hard to tell without knowing your exact settings. My settings are 3x4 display images with a CSS img height of 100 (pixels) and a CSS div width of 100 (pixels). This wraps my longer descriptions to two lines.

The date of the image is the date the gallery was created. At the moment this cannot be edited (and sadly, in the near future I won't have time to do anything about that).

scene66:

--- Quote from: mirjam ---If my description is too long the image moves up and the image upload date moves down. I can use CSS to get around that by giving the div element for the name a height:

--- Code: ---div.mod_rsgallery2_latest_galleries_name {
    height: 41px;
    text-align: center;
}

--- End code ---

--- End quote ---

Gold.


--- Quote from: mirjam ---Perhaps you also need a width CSS setting for this div ...
--- End quote ---

I guessed the code of {width: xxxpx} and it worked.

Thank you again for simply brilliant support.

mirjam:
Your welcome :-)

You just may have some fun taking a look at http://www.w3schools.com/tags/tag_div.asp and
http://www.w3schools.com/tags/tag_img.asp. That's the main page where I start(ed) learning CSS and the div and img tags you already know some things about now.

mirjam:

--- Quote from: scene66 on August 28, 2012, 02:22:19 PM ---I have a Latest Galleries module on the front page of the site (which I use for global content).

It would be very useful when creating a second version of the Latest Galleries module on other pages to be able to select sub-galleries (or Gallery ID) for content specific to the sub-page.

--- End quote ---

Please try and test the attached version.

Added are the possibility to include a specific set of galleries and optional also their subgalleries and the height of the div with the galleryname can be set in the paramters.

Navigation

[0] Message Index

[#] Next page

Go to full version