I looked for a module that would enable a small image gallery viewer for D5 – there seem to be several D6 modules in various stages of development.
Very simply, I want to allow premium subscription users to post 5 thumbnails with a viewer to a CCK custom profile page.
I am already using a Content Template for the CCK custom profile, so here is how I set it up.
I enabled an image field named “spotlight_image” with up to 5 images allowed, max dimensions 400×400px
On the template, I inserted them with the first one also enlarged. Note also the JavaScript function to swap the innerHTML of the div containing the large image (so the image dimensions are dynamic; using src yielded a fixed dimension); also note the if statement, that omits the entire section if no images are uploaded, a technique used on every custom field in the template.
decibel.places 7:34 pm on October 17, 2009
I looked for a module that would enable a small image gallery viewer for D5 – there seem to be several D6 modules in various stages of development.
Very simply, I want to allow premium subscription users to post 5 thumbnails with a viewer to a CCK custom profile page.
I am already using a Content Template for the CCK custom profile, so here is how I set it up.
I enabled an image field named “spotlight_image” with up to 5 images allowed, max dimensions 400×400px
On the template, I inserted them with the first one also enlarged. Note also the JavaScript function to swap the innerHTML of the div containing the large image (so the image dimensions are dynamic; using src yielded a fixed dimension); also note the if statement, that omits the entire section if no images are uploaded, a technique used on every custom field in the template.
and here is the CSS (max-height and max-width are probably unnecessary)
Example page: http://www.locavorenetwork.com/spotlightgrower/symms-fruit-ranch