Caption to photos - spry gallery

hello
i am trying to replicate the functionaly / effects given at this link http://labs.adobe.com/technologies/spry/demos/gallery_pe/dynamic/index.html
I wish to add caption to the photos which i handle via XML. Can anyone help me in putting caption / title to the photos
regards
ssg

Hi,
I have captions and images via Spry XML datasets at the following page http://www.thehmc.co.uk/photos.asp
Try changing the example structure
div id="picture">
<div id="mainImageOutline"><img id="mainImage" alt="main image" src=""/></div>
</div>
To
<div id="picture">
<div id="mainImageOutline"><ul><li><img id="mainImage" alt="main image" src=""/>{caption}</li></ul></div>
</div>
Looks like the javascript file gallery_xds.js must be dynamically changing the
src attribute of the image via CSS selectors via Spry.$$ or some such. So it will need to
dynamically change the content of the li tag to include your captions.
Here's an extract of the CSS I use to style my gallery
/* This is for the photos page */
.photoTitles {
     display:block;
     clear: both;
     width: 840px;
.Gallery {
     list-style:none;
.Gallery li {
     float:left;
     width:240px;
     height: 290px;
     margin-bottom:5px;
     margin-left: 15px;
     color:#000;
     background:#CC3;
     text-align: center;
     font-style: italic;
     font-weight:600;
.Gallery img {
     display:block;
     width:220px;
     height:220px;     border: 10px solid #FFF;     }
Doesn't have the nice animation of the Adobe Spry example but you should be able to adapt the structure to fit your needs.
Cheers
Phil

Similar Messages

  • Styling Spry Gallery Captions Within Photos.xml

    My Spry gallery is working just fine other than I'd like to use italics within some of my image captions. I noticed this line of code in photos.xml.
    <italics font = "georgia"> </italics>
    I'm wondering if this alludes to the fact that I should be able to use italics selectively without writing any XSLT (I'm not very experienced in that department).
    Any advice appreciated.

    Hi Flat Top,
    perhaps, you need a program that understands the structure of
    jpegs like exiftool. Momentarily i use a powershell script:
    get-childitem images\*.jpg |
    foreach {
    $image = [String]::Concat("Images\", $_.name)
    $thumb = [String]::Concat("Thumbs\", $_.name)
    perl exiftool.pl -c "%d deg %.4f min" -p FmtImage.txt $image
    | Out-File xml.xml -append
    perl exiftool.pl -c "%d deg %.4f min" -p FmtThumb.txt $thumb
    | Out-File xml.xml -append
    with FmtImage.txt:
    <photo
    path = "$FileName"
    width = "$ImageWidth"
    height = "$ImageHeight"
    Kommentar = "$Comment"
    GPSLatitude = "$GPSLatitude, $GPSLatitudeRef"
    GPSLongitude = "$GPSLongitude, $GPSLongitudeRef"
    GPSPosition = "$GPSPosition"
    Hersteller = "$Make"
    Modell = "$Model"
    ISOSpeedRatings = "$ISO"
    Date_TimeOriginal ="$DateTimeOriginal"
    F_Number = "$FNumber"
    ExposureTime = "$ExposureTime"
    FocalLength ="$FocalLength"
    Flash = "$Flash"
    and FmtThumb.txt:
    thumbpath = "$FileName"
    thumbwidth = "$ImageWidth"
    thumbheight = "$ImageHeight">
    </photo>
    this generates most of the photos.xml. Not automated are in
    the moment some problems with the german Umlauts and with the
    coordinates to bring them in a form understanable by google maps.
    Perhaps that might help you.
    I have no knowledge of php or Asp, my provider doesn't allow
    it.
    Greetings from Germany
    Hannes Löhr

  • SPRY GALLERY STATIC - main image caption from alt attribute?????

    I have been searching and digging for an answer to this question, but nothing comes up... the web , discussions, spry documentation... there is no joy to be had where the static gallery is concerned.
    Please, could someone here enlighten me? I am trying to figure out how to add captions with static links. I have a working version of the gallery with thumbnails embedded on the page, but am stuck trying to bring the ALT attribute into the main image.
    I have just finished a redesign of my boyfriend’s site, which is image heavy and uses the dynamic gallery in many of its pages (no problem with captions there). I am trying to replace the XML with static content for usability, tracking and general search engine issues.  I could post a link to my static version if this helps clarifying the problem.
    Help would be hugely appreciated.

    Please read what I am writing to you.
    SparklyArt wrote:
    Thank you Ben, for your informative reply and link!
    I can see the advantages of an html dataset, it makes a lot of sense, but the problem I am trying to solve right now is due to the fact that the spry gallery static does not use any dataset at all, which is actually great, but I can’t find any information on how to add titles to the main images.
    Maybe this will clarify... my test page < http://www.theoland.com/art/spryGalleryStatic.htm > is based on this example:
    < http://labs.adobe.com/technologies/spry/demos/gallery_pe/static/china.html > - here, the embedded thumbnails are linked directly to the main images... no xml, no dataset... but, unfortunately, no titles either... are there any scripts that would help solve this? Can the gallery_init.js be modified to grab the alt or title tag?
    The site has validated as it is (gallery test not included), but the dynamic pages are definitely not search engine friendly. The static gallery_pe would be a lovely alternative.
    Can you help?
    Even though you might not think so, your static gallery does have a database of sorts albeit in the form of images placed in a folder. This is called a flat database because it does not have the different relationship tiers of the likes of MySQL.
    To update your database, you simply add/remove/change an image and to link that data to your web page you add/remove/change the link; exactly the same process as with MySQL.
    The problem that you are faced with is that, except for the name, width, height, size, encode type, there is no information attached to the image that you can use for a caption or title.
    That is why I suggested using an HTML table so that you can marry your image up to some useful information. No JavaScript required! These sorts of tables have been in use for more two decades to show the same as what you are showing in your static gallery; but without the fancy features that JavaScript (in our case Spry) adds.
    These pages give us the ultimate in search engine intimacy.
    Having established the above, we make use of the HTML table to create a Spry dataset on the same page. Nothing else changes.The Spry dataset can then be used to incorporate the fancy features that you so desparately want all without XML.
    JavaScript (in our case Spry) data is not search engine friendly, but because we already have the data in our static HTML table we do not have to wory about that.
    The end result is a good looking site that is search engine friendly.
    Ben

  • Spry gallery positioning photos

    Hi,
    I am pretty new to dreamweaver and I am creating my first website.
    I've created a spry gallery using the tuturial, which is looking good so far.
    However I was wondering if there is any way of having the large photo centered?
    Thanks,
    Phil.

    Hi,
    Just want to clarify, it is the large picture that displays on the right when clicking on the thumbnail. I was hoping i could have this centered, when displaying landscape and portrait photos.
    If anyone has any ideas it would be appreciated as I am hoping to upload my website soon and this is one of the last things i need to do.
    thanks,
    phil

  • Captions in Photo Album

    I've been trying to add captions to the photo album demonstrated in the Spry demo page (http://labs.adobe.com/technologies/spry/demos/gallery_pe/dynamic/index.html).
    Applying the method suggested in DBooth's tutorial for an earlier version of a Spry album, I added an attribute, "description",  to the <photo> element in the xml. In the html, I placed {@description} immediately beneath the image in div="picture". This worked in the DBooth version I built, but not in this one, following the code for the dynamic version above.
    Here's what I have:
    http://www.lumina-media.com/gallerytest/wjgallery2.html
    (Ignoring styling for the time being, the description tag shows up in the padding area. I'll deal with css later.)
    But it doesn't work. Can anyone help me?
    I'm attaching both the html and xml files.
    Thank you in advance.
    Nick

    When the thumbnail is clicked we want the detailed region updated along with with the main image,
    I think this section of code is where it belongs.
    <div id="thumbnails" spry:region="dsPhotos">
                  <div class="thumbnail" spry:repeat="dsPhotos"><a href="{path}"><img alt="" src="{thumbpath}" /></a></div>
                    <p class="ClearAll"></p>
                </div>
            </div>
    <div id="picture">
              <div id="mainImageOutline"><img id="mainImage" alt="main image" src=""/></div>
         <div class="thumbnail" spry:repeat="dsPhotos"><a href="{path}"><img alt="" src="{thumbpath}" /></a></div>
    xml file below:
    <thumbnail base ="../../gallery/galleries/china/thumbnails/" font = "Arial" fontsize = "4" color = "#F0F0F0" border = "0" rows = "3" col = "5"> </thumbnail>
    <large base ="../../gallery/galleries/china/images/" font = "Arial" fontsize = "3" color = "#F0F0F0" border = "0"> </large>
    <photos id = "images">
    <photo
    path = "china_01.jpg"
    width = "263"
    height = "350"
    thumbpath = "china_01.jpg"
    thumbwidth = "56"
    thumbheight = "75"
    caption = "Caption 1a">
    </photo>
    <photo
    path = "china_02.jpg"
    width = "350"
    height = "263"
    thumbpath = "china_02.jpg"
    thumbwidth = "75"
    thumbheight = "56"
    caption = "Caption 2">
    </photo>
    <photo
    path = "china_03.jpg"
    width = "350"
    height = "263"
    thumbpath = "china_03.jpg"
    thumbwidth = "75"
    thumbheight = "56"
    caption = "Caption 3">
    </photo>
    </photos>
    </gallery>
    OK, some confusion here, description is now "caption", this was changed in XML file in this thread.
    The xml file is above:
    Then in my html file I have only added:
    <div spry:detailregion="dsPhotos">Hello{caption}</div>
    Then my gallery_xds.js file looks like:
    function PhotosFilter(ds, row, rowIndex)
    row.path = row["large/@base"] + row["photos/photo/@path"];
        row.thumbpath = row["thumbnail/@base"] + row["photos/photo/@thumbpath"];
        row.caption = row["photos/photo/@caption"];
        return row;
    The result gives me the "Caption1" once and it is the same for all, no refresh.
    Any help would be greatly appreciated.
    WBell
    Message was edited by: W_Bell

  • How to create a Spry Gallery

    Sorry for the rudimentary question, but I want to actually create a spry gallery like the one in the demos, but I am lost as to where to start (using Dreamweaver).
    Thanks, Don

    Hi,
    The basis of the photo gallery is a spry master region and a detailregion.
    Let's say your spry dataset is called photos.
    The thumbnails within the master region are just like something below
    <div spry:region="photos">
    <div spry:repeat="photos">
    <img src="{thumbURL}" spry:setrow="photos"/>
    </div>
    </div>
    and the current image being displayed sits within this markup.
    <div spry:detailregion="photos">
    <img src="{imageURL}"/>
    </div>
    When you click on the thumbail it sets the current row of the photos dataset to that of the thumbnail.  The detailregion automatically listens for this changes to updates it markup to show the matching full size photo for that row.
    You then add some classes or div ids and css to style your photos and you have your basic photo gallery.
    If you want to be able to select different galleries then you have different XML datasets for each gallery and on clicking the appropriate link or select item you run code like below
    photos.setURL("gallery1.xml");
    photos.loadData();
    photos.setURL("gallery2.xml");
    photos.loadData();
    photos.setURL("gallery3.xml");
    photos.loadData();
    This will reload both the master region (thumbnails) and the detailregion (currently selectedphoto).
    For the slideshow effects you just use Spry effects and the setrow functionality triggered via a timer (setInterval) i.e. here's some sample code from one of my pages
    function pauseShow()
    clearInterval(StartSlideTimer);
    Spry.$$("#slideshowPlaying")[0].innerHTML = "";
    function startShow()
    clearInterval(StartSlideTimer);
    StartSlideTimer = setInterval("fadeOutContentThenSetRow()", 6000);
    if (shuffle)
    Spry.$$("#slideshowPlaying")[0].innerHTML = "<p>You are playing the slideshow in shuffle mode</p>";
    You can see the working page here www.thehmc.co.uk/photo.html
    Our club pages works with our photos and albums on our Picasa account because that way you don't need to produce the xml, Picasa does that via it's rss feeds.
    Feel free to use any of the code I've written in your pages or start with a basic version as I've outlined at the top - that's how the above page started out then I styled it with css and added the fancier stuff once the basics were working.
    Regards
    Phil

  • Spry Gallery, adding content box on thumbnail click

    I've attached the html for the page I'm working on. Essentially, it's using the spry gallery. Onclick, the main image is updated dynamically, what I also want to happen onclick, is for a separate DIV with some text in it to be updated with new text. I had thought that by editing the photo.xml and simply adding another tag labeled 'dtext' in each photo area, I could refer back to it. While this does work on the initial page load, it doesn't update onclick.
    Thoughts
    Website can be viewed here: http://www.thesilversandbox.net/purple/purple_gallery.html
    uploaded, a .zip file containing the .html and the photo.xml file being used. You'll note on the web page the blue placeholder section is where I'd like the text to appear and in the .xml file you'll see the 'dtext' tag which I'd like to be where I enter the product descriptions that change on thumbnail click.
    Thanks,

    Can someone comment on this please? Essentially what I'd like to know is if it's possible, using only the Spry Gallery, to add an additional XML comment into the "photo.xml", which contains some text. Then, call this text upon each thumbnail-click event to have a small description appear when the picture changes.
    I realize there are content-widgets for this, but they are heavy, all I want is a little comment box, everything else is working properly.
    Thoughts?
    /bump

  • How can I insert large text captions in photos?

    How can I add viewable captions to photos? I often send reports with a number of photos attached in a PDF file in Adobe Acrobat Standard. I would like the text comments in the photos to be viewable as soon as someone opens the adobe pdf file and looks at the picture -- without having to click on a little icon. In other words, the text would be embedded in the photo, and large enough to read when you first see the photo. Thanks for any help you can give.

    Photo editing software makes more sense than Acrobat because you can extract the EXIF comment or description. But one could use the "text Touchup" tool to add text to the PDF. Standard does not provide a lot of scripting options unless you add the JavaScript Console Debugger.

  • Photo web gallery in dreamweaver - problem

    while creating a photo web gallery in dreamweaver (commands -
    create photo web album) an error occurs - when I browse pics by
    choosing my images folder, program says it's empty! It cant see the
    files! these are normal jpg and adding these pics worked normaly!
    please help

    Does this tutorial help?
    Macromedia Dreamweaver - Creating a web photo album with Macromedia Dreamweaver MX and Macromedia Fireworks MX
    Thanks,
    Preran

  • Issues with spry gallery in a DW template

    Hi all,
    I have incorporated a spry gallery I originally found at:
    http://www.adobe.com/devnet/dreamweaver/articles/spry_photo_album_02.html
    into my page. This works fine until I save my page as a template.The js seems to dissapear leaving the gallery area blank. The rest of the page is fine.
    I understand this tutorial was written for v8 but have no idea why it wont work in a CS4 template.
    I even tested the tutorial html by creating a new site and coverting the html file into a template. Gallery doesnt work.
    Any help on this would be awesome as the gallery area was to be a main feature on the home page.
    Cheers.

    Make the link to the Flash element ROOT relative.
    That way, the link doesn't need to be managed and will work
    just fine in
    your Template child pages.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "buckeyestargazer" <[email protected]> wrote
    in message
    news:gbreos$cpq$[email protected]..
    > I'm relatively new to Dreamweaver (version 8) and I'm
    having a problem
    > inserting a flash (.swf) slideshow of pictures into a
    template that then
    > updates several webpages. The problem is, when I insert
    the flash into
    > the
    > template page and the webpages get updated, the flash
    animation does not
    > play
    > on the webpages and just has a white box. If I detach
    the template from
    > the
    > webpage, then the flash displays correctly. But the
    problem with that is
    > then
    > there is no point to using a template because I would
    have to manually
    > update
    > each webpage instead of just the template when I want to
    make a change to
    > all
    > the webpages. The problem must be with the template,
    because when I try
    > to
    > attach the template to a very simple webpage containing
    only a couple
    > words and
    > no other graphics, the flash will not display correctly.
    Any ideas on
    > what is
    > wrong or how I can insert a flash slideshow into a
    template so that it
    > updates
    > the webpages correctly?
    >
    >

  • E6: Missing photos in Gallery

    I have copied a load of songs and pictures from Windows to my E6 microSD card.
    The songs are working nicely, no problem there (= SD card working properly).
    The photos don't appear in the gallery/photo browser. When I reboot, the phone claims it is scanning for new media, but the photos don't show up.
    Does anybody have a suggestion for what's wrong and how I could fix this?
    Thanks in advance

    Seems to work for me. Did this just a couple of minutes ago. Perhaps I misunderstand something here?
    Sent a dozen of pictures from a pc by bluetoth.
    Opened the Photo Map/gallery and the phone updated it automatically.
    I can see the photos that were sent to my SDHC-card.
    My card is a Transcend 16GB Class ?, well higher level...
    Nokia 808 again (delight Belle), Nokia E7 and X7 ( again, all on Delight Belle...after some time on Nokia Lumia 925 (retired), 1020 (not that great)and Lumia 820 (Replaced my router at home, great for internet sharing).., N9 The best device ever (use it as much as Lumia 1020), Nokia 700 (Sport Phone/My Love :-) ) Nokia 701, Nokia E6 (Should have a follow-up from Nokia among with larger screen, NFC, Autofocus), Lumia 800 (Retired After 6 weeks), -Sports Tracker-Nokia Internet Radio-Handy Safe-Skype-Bambuser-Screenshot app pro-fMobi-ComingNext-Manual TaskSwitcher-jagiTimer-Easy StopWatch-Boldbeast-Equalizer-Financial Calculator-WiMP Music-YTasks-Davi-Thumbnail Folders-BizCalendar-Tiny7-Situations-nn reeder-Sport Timer-CameraLover-CameraPro-GrabRadio-LiveScore-Poddi-Gravity-SkyFilesPro

  • How do you add captions to photos in iDVD slideshows?

    Is there a way to add captions to photos once you've put them into slideshows on iDVD? Or, if not, is there another way to add captions to them, though another apple application such as iPhoto? I haven't been able to figure out how to make captions for photos in iPhoto slideshows either. Please help!

    Welcome to the Apple Discussions. if you're creating the slideshow from stills in iDVD use the Settings button at the bottom to bright up the pane where you can add titles and comments. The downside of that is every photo will automatically have it's file name or title entered. If you don't want that then while you're in iPhoto use the Photos->Batch Change->Title->None option before you import into iDVD. Then none of them will have the titles entered and you can add them to just those that you want. Or you can add them while in iPhoto before importing.
    OT

  • FireFox -- Issue with Spry Gallery

    I posted this a few months ago and I was wondering if I could
    get an answer.
    I want to make the images in the Spry gallery fade out before
    a new image fades in. In the current mode the images vanish
    instantly followed by a fade-in of the next or previous image.
    I have been successful in achieving this effect in IE by
    removing the following lines of code in the Gallery.js file (in the
    center of the SetMainImage function).
    img.style.opacity = &quot;&quot;;
    img.style.filter = &quot;&quot;;
    I also changed the background-color of #mainImageOutline in
    the css file to #000000 (black). I believe this also resolved the
    white speck problem.
    Although the fade-out does work properly in IE it does not
    work in FireFox. I believe it is the result of the
    Spry.Effect.getOpacity or Spry.Effect.getStyleProp functions not
    being properly calibrated for Firefox.
    quote:
    gBehaviorsArray[&quot;mainImage&quot;] = new
    Spry.Effect.Opacity(img, Spry.Effect.getOpacity(img), 0, {
    duration: 400,
    In the above line of gallery.js I replaced
    &quot;Spry.Effect.getOpacity(img)&quot; by
    &quot;1&quot; and that triggered the desired effect for
    FireFox although it of course has the habit to set the current
    image's opacity to full before fading in to the next image.
    Help would be greatly appreciated.
    Thank you.

    That is because your page is currently invalid. And renders in IE quirksmode..
    <base href="http://www.industrialwebsearch.com/">
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    So make sure your page is valid, and the animations will go smooth in ie

  • No Thumbs or Main Image with Spry Gallery Demo

    Hi everyone, DW CS3 newbie here.
    I hope this topic hasn't been beaten into the ground yet.
    I'm trying to put together a site
    (members.cox.net/rangersbu9/gallery.html) for my son's soccer team
    and am running into a wall getting the original, dynamic Spry
    gallery demo to work. I've done my best to collect and modify the
    required files and place them appropriately but, when the files are
    loaded on the live server (the wrap div contents are all but
    invisible when I view with IE7 locally, apparently due to the PC
    not be set up as local server) the thumbs are 'x's and the main
    image is a 1px x 1px dot.
    The controls will highlight between the empty thumbs and the
    gallery pull-down will select between the two options I've put in
    the XML file but that's about it. Perhaps it is my ignorance, but
    it seems like a ( src= ) tag is missing in the 'mainImageOutline'
    div because I cannot understand where the main picture is coming
    from otherwise.
    Any insight from the source at the link above? Please keep in
    mind I have two week's experience with DW and website building but
    do have a programming background (from a few decades ago :->). I
    believe I have the un-updated CS3 Spry version, if that matters.
    Many thanks to Don and others here for posts that have helped
    me get this far.
    -Kurt

    Update:
    Got the thumbs to appear. Had them physically sized larger
    than the XML fields stated. However, they will not grow/shrink. In
    digging through gallery.js, I see that those two functions call
    Spry.Effects.SizeAndPosition() - I cannot find that function in any
    of the includes (i.e. SpryEffects.js). Spry.Effects.Size yes, but
    not SizeAndPosition. Wondering if this gallery.js calls a later
    version of SpryEffects.js than I currently have installed (it's
    Spry 1.4). I will download 1.6 and check it out but if anyone has
    any other input, please let me know.
    Still no main image. In gallery.js I found ShowCurrentImage()
    which had a hardcoded path to the images that did not match mine.
    Corrected the path but no change.
    Any suggestions?
    Thanks.
    -Kurt

  • Photo web gallery

    Is there any automated way to create a photo web gallery in
    fireworks or a third party plug in? I'm using Fireworks MX

    "Bonnie" <kroko@pixel[occam]plum.com> wrote in message
    news:e5pfoc$mq5$[email protected]..
    > Linda Rathgeber **Adobe Community Expert - Fireworks**
    wrote:
    >> chichi8 wrote:
    >>
    >>> Is there any automated way to create a photo web
    gallery in
    >>> fireworks or a third party plug in? I'm using
    Fireworks MX
    >>
    >> As far as I know, there are no extensions of that
    kind for Fireworks
    >> MX. There are some for Fireworks 8, however. Time to
    upgrade! :-)
    >>
    >>
    > There is a good on at www.valleywebdesigns.com (look for
    "just so")
    >
    > I have used the built-in one in DW and had a lot of
    problems with it
    > messing up paths and stuff. Maybe it was operator error.
    >
    > A free, quick-and-dirty solution is offered by
    www.picasa.com.
    And a more upscale solution, budget permitting, would be
    Image Gallery
    Magic:
    http://www.projectseven.com/products/galleries/hgmagic/index.htm
    Also nice, though not quite as accessible (with script
    disabled) as
    Image Gallery Magic, would be PhotoAssist from Webassist.com.
    If budget is a criteria, I would definitely go with Picassa,
    as I find
    images that pop up in little windows very annoying (although
    I'm sure
    some folks don't mind).
    Al Sparber
    PVII
    http://www.projectseven.com
    "Designing with CSS is sometimes like barreling down a
    crumbling
    mountain road at 90 miles per hour secure in the knowledge
    that repairs
    are scheduled for next Tuesday".

Maybe you are looking for