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

Similar Messages

  • Captions in photo albums

    I used to have a downloaded version of Create Photo Album (2.3?) which allowed me to add captions to my photo pages. With my old Dreamweaver now installed on a new PC I have lost this download.
    Anyone know where I can get it?

    jQuery Fancybox as well as others provide for captions in the anchor's "title" attribute.
    Code:
    <a href="big-picture.jpg" title="caption goes here"><img src="small-picture.jpg"></a>
    http://fancybox.net/
    Look at 'outside', 'inside' and 'over' examples.
    Nancy O.

  • Captions under thumbnails in photo album

    Hi,
    I've been trying all sorts of things to get a simple caption
    under each thumbnail in a photo album. The page is on:
    http://www.georgeglazer.com/globes/table20/table20inv/table20inv.html
    This is the code for the thumbnail that I have tried to make
    work. The thumbnails all display and sort fine. But no captions
    appear:
    <div id="thumbnails" spry:region="dsInventory">
    <div spry:repeat="dsInventory"
    onclick="dsInventory.setCurrentRow('{ds_RowID}')" style="height:
    130px; width: 100px;">
    <img src="{tn}" alt="{title}" name="tn{ds_RowID}"
    id="tn{ds_RowID}" style="left: 0px; right: 0px; height: 100%;
    width: 100%;" />
    <p class="caption" style="width: 100px;"><span
    class="whitetext">{@maker}<br
    />${@price}</span></p>
    </div>
    <p class="ClearAll"></p>
    </div>
    Among the things I have tried that did not work are:
    1. Adding id="{ds_RowID}" to the <p> tag.
    2. Putting a spry:detailregion="dsInventory" div around the
    caption text.
    3. Using {maker} and {price} instead of {@maker} and
    {@price}.
    4. Changing the height in the spry:repeat tag to something
    larger than 130px, but that just distorted the thumbnails (which
    are exactly 130px each).
    Any help is welcome!
    Thanks,
    Helen

    Kin,
    Actually, I had omitted the @ signs originally, and it didn't
    work either way, but thanks for explaining that. I looked at the
    CSS for the div containing the thumbnail, and there's nothing
    limiting height (not specifically, anyway).
    Here is the CSS for the div containing the thumbnail:
    #thumbnails {
    clear: both;
    margin: 5px auto;
    #thumbnails div {
    position: relative;
    float: left;
    margin: 4px;
    padding: 0;
    display:inline;
    #thumbnails img {
    height: auto;
    width: auto;
    position: absolute; }
    ...and for the div that contains the thumbnail div:
    #previews {
    border-top: solid 1px #404040;
    border-right: solid 1px #404040;
    border-bottom: solid 1px #3a3a3a;
    border-left: solid 1px #404040;
    padding: 5px;
    margin-bottom: 5px; margin-right: 5px;
    float: left;
    I do have the overall size of the preview pane specified
    (style="width: 370px; height: 590px;") but that should be more than
    enough room for 5 photos with 2-line captions. Is it the relative
    or absolute positioning that may be the culprit?
    --Helen
    PS Let me assure V1Fusion that I did read everything
    previously posted in this forum about photo album captions prior to
    posting my question -- they all addressed the main image but not
    the thumbnail, nevertheless, I tried various things suggested in
    those posts before giving up figuring it out myself...

  • Digitizing a family photo album and its captions

    I use CS4 on the Mac. I'm looking for an efficient solution for digitizing family photo albums. I know how to scan and fix the scanned image, if necessary. I know how to organize photos in Adobe Bridge. What I'm clear on is how to create captions for the photos that will will be permanantly linked to the photo files and can be output for on-screen or print albums/galleries.
    Also, what is a good tool for creating output? InDesign is an obvious possibility for print; but I was wondering if there is some sort of plug-in or companion product for PS designed specifically for generating albums and slideshows.
    Thanks in advance for your help.

    wondering if there is some sort of plug-in or companion product for PS designed specifically for generating albums and slideshows.
    Bridge?
    Captions could be added in the metadata (File > File Info).
    Printing that might be a bit difficult, though.

  • HT201317 I have a MobileMe account and have shared many MobileMe Galleries.  MobileMe Galleries are going away in June.  How can I share a photo album with others using iCloud?

    I have a MobileMe account and have shared many MobileMe Galleries.  MobileMe Galleries are going away in June.  How can I share a photo album with others using iCloud?

    The new ios version of iPhoto allows sharing.  Here's a blurb from Apple's web site:
    There’s the old way of creating photo galleries, then there’s the iPhoto way. Select a group of photos and iPhoto automatically flows them into a beautiful journal that’s fun to personalize and share online. Touch a photo to make it bigger or smaller. Or drag it to a different spot on the screen. iPhoto adjusts the page around whatever you’re doing, so your journal always looks great. You can even add captions, maps, dates, and weather — giving family and friends the big picture at a glance.
    More things you can do:
    With iPhoto, there’s more than one way to share a photo. Post pictures directly to Facebook, Flickr, or Twitter. Play an impromptu slideshow on your iPad or iPhone. Or stream photos to your HDTV to give your big moments room to shine.
    I have not used ios version of iPhoto to share "journals" and I'm not sure this is part of iCloud or not.  You'll have to do a google search on "ios iphoto" and read up of this journal thing.  As far as I know, this is the only way of sharing photos.  I'm not sure whether other friends use a browser to view these journals or whether they need something special.  Any way - search around to find answers.

  • Picture won't show up in my Photo Album; big white blank rectangle space

    There is a picture of Sammy Lee, the Olympic Gold Medalist diver, that refuses to show up in one of my Photo Albums on Safari.
    I have done everything that everyone has taught me. I have cleared the cache many times. I have clicked onto a site ourside my own site (actually Allyson's site about the tips for iWeb). I have published all to .Mac. The photo still shows up as a white rectangular space.
    It is not like other times when a photo doesn't show up, because in those cases, there is a question mark in a blue box. With this case, there is no question mark inside a blue box. There is only a white space where the picture would be/was.
    I even went back to iPhoto and put in another copy of that picture, all to no avail.
    QUESTION:
    What else can I do to make the picture show up on my Photo Album page?
    — Lorna in Southern California

    I think it could be the comma causing the problem, actually. Here is a line from the slideshow.html file
    new SlideImage('http://web.mac.com/lorna6/iWeb/Lorna%20x%203/395844EC-4CEE-4545-8AD 3-7E66F83391ECfiles/W%3ASammy%20Lee,%20swimmer2.jpg', 321, 450, 'With Sammy Lee, Olympic champion diver & Gold Medalist. He went on to coach Greg Louganis. At L.A.U.S.D., Office of Bilingual Instruction (It no longer goes by that name.) Mid-80’s'),
    The colon has transferred ok, but there are a lot of commas used in the code to call up the photos in the slideshow and the comma in the file name (and, possibly, the caption) could be causing some problems.
    I don't know enough about this to know for sure (need to consult a higher source...), but it sure couldn't hurt removing it to see if it helps.

  • Web Photo Album 2.1 - putting it in page

    Hi,
    I'm on DW MX and haven't used it in a while. I installed the
    extension web photo album 2.1 and I have a page onto which I want
    to put a photo gallery. So I have the page created and my cursor
    placed and I chose 'Command/Create Web Album2.1" and I created the
    album.
    First, when I chose to add captions (and it must access
    Fireworks MX to do so). it was fine but it skipped showing some
    photos when it asked for a caption. So some photos got left out.
    Also, this seems to create a folder for my gallery but is
    there a way to insert this gallery into an existing page, at least
    as a starting point?
    I now see my photo gallery folder for instance, but I have no
    way to preview it (once I pulled out of the initial creation
    preview).
    I'm kind of lost as you might surmise, but I'm fairly
    experienced with web programs.
    I appreciate any guidance,....Thanks, Frank B.

    Hello,
    I have the same problem ad can't find a solution.
    Can you pls help me?
    Thx, Chrisje

  • The web photo album command needs some improvement

    First I'd like to thanks for the
    web
    photo album command embed with Dreamweaver. My job requires me
    create photo albums with thousands of pictures, it saves a lot of
    time for me.
    Now I'd like to ask someone to improve this fuction. I need
    to click the thumbnails on the index page to pop-up a window that
    show up the detail picture page (If I can key in the pop-up window
    size in the command UI will be perfect). Currently this album
    generator only links to the large picture's page. I need to make
    them to a pop-up window for each manually (thousands of them).
    I tried
    Web
    Photo Album 2.2 for Dreamweaver 8 and MX 2004, V2.2.6, it
    doesn't have this function either. Compare to the web photo album
    command in Dreamweaver, it can't generate filename to caption in
    the detail picture page automatically (You can key in captions in
    Fireworks manually though).
    If someone can improve the web photo album command to pop-up
    window available, I think use "close window" link instead of the
    link to the album index page in the detail picture's page will be
    helpful.

    On 19 Sep 2006 in macromedia.exchange.extensions.dreamweaver,
    moonjeep
    wrote:
    > If someone can improve the web photo album command to
    pop-up window
    > available, I think use "close window" link instead of
    the link to
    > the album index page in the detail picture's page will
    be helpful.
    Not free, but if you do photo albums regularly, you might
    like:
    http://projectseven.com/products/galleries/hgmagic/
    Joe Makowiec
    http://makowiec.net/
    Email:
    http://makowiec.net/email.php

  • Tag Library for Web Photo Album  2.2.6

    I am attempting to use the Web Photo Album extension 2.2.6
    and am wondering how to get the file name to show up underneath the
    thumbnails. I see that you can use fireworks to enter a caption but
    I just want to use the file name. In the standard Web Photo Album
    creator there is a check box to include the file name. Can anyone
    tell me how to do this when creating a custom template.
    Thanks
    John

    You didn't ask for this but after you use it you will never
    want to use
    Photo Album again and its free -
    http://jalbum.net/
    "SteamChip" <[email protected]> wrote in message
    news:efjc9m$t1g$[email protected]..
    > I'm trying to find the Web Photo Album 2.0 extension for
    DreamWeaver 4(not
    > MX
    > or later versions).
    > Sure its old, but it works.
    > I cannot seem to find it in the extensions area
    > Can someone direct me to a download location or email it
    to me?
    > Mac or PC is fine
    > thanks
    >

  • Auto Delete Caption in photo page

    Hi,
    When importing from iPhoto Photo Album, the application will display both the photos and captions. Is there a way that I can make all the captions disapper?
    Thank you,
    Mac User

    Select the photo grid or an image in it, then drag the Caption Height slider all the way to the left in iWeb's Graphic inspector.
    [ Visit here for iWeb Tips, Tricks and Hacks ]

  • Lost photo album on iWeb

    On my .Mac homepage I have two photo albums. The first, at http://homepage.mac.com/jnelms/PhotoAlbum2.html, I can locate and edit. The other, at http//web.mac.com/jnelms/iWeb/Site/HAG.html, I cannot locate, nor edit. If you have any suggestion where it is hiding, I would appreciate hearing from you.
    MacBook   Mac OS X (10.4.7)   2 Mghz Intel, 2 GB RAM, 120GB HD

    Thank you for the information, James. I did find the files in the location you mentioned; however, there does not appear to be any way to edit the captions under the pictures, as I need to do. There are two files for each picture, one labeled (for example) "DSCN0064.jpg" and another "DSCN0064_framed.png." The only place captions are shown is in the file "slideshow.html," which does show the entire slideshow, but does not permit editing. Any suggestions?

  • Iphone camera effects display in photo album but disappear when you open the photo itself. why is this ?

    iphone camera effects display in photo album but disappear when you open the photo itself. why is this ?

    Hi Cyclosaurus,
    Thank you for your reply. Sorry to bug you again but can I ask some further questions? Pls excuse my lack of knowledge on these things.
    In relation to your points:
    1) In the ftp publishing settings, public_html is acutal in where it says "site name", where it says "URL" I have http://www.gippmed.com. I was advised to put public_html in "site name" from my hosting. If I put anything else it publishes the entire site to a folder with that name on the server and is not viewable online?
    2) I have removed the spaces in the album page name and will reupload soon. In relation to the image file names, am I correct in saying that iweb is naming them from the captions? Do you really have to use one word captions or use underscores, it looks a little odd? I have read troubleshooting articles about iweb and spaces and it also recommends similar as you are, suggesting that all page names should have underscore instead of spaces. Problem is, if for example I change the page name "About Me" to "About_Me" iweb automatically changes it in the navigation menu and this looks silly to have undescores in the Nav Menu. Is there a way around this?
    Lastly, a new problem that I have never had before:
    Previously, iweb would remember what I had published and only publish new site changes. Now, every time I turn my computer off and on, I open iweb and it doesn't recognise any of the previous publishing, ie it republishes the entire site.
    Thank you again for your help

  • How can I remove my iCloud Photo Albums from my iPhone 6 storage, but still use the iCloud Photo Sharing?

    I put all my photos from my iPod Touch 4 and my iPhone 4S in iCloud Photo Albums and Labeled them so that when I got the new iPhone 6 on iOS 8.1.2 I could have my previous photos on there for future use. Now I look on my iTunes app on my computer it shows that my storage on my iPhone 6 is almost full. Those Photos in iCloud are taking up all my storage on my iPhone. I know how to add more storage on my iCloud account, I just want to know Is there a way where my iCloud Photo Albums can still be in my iCloud Account, just not taking up all my storage on my iPhone.

    Hello mushysun,
    Thanks for using Apple Support Communities.
    If you did not sign out of your Apple ID on your iPhone before creating a new one, then you will need to sign back in with your previous Apple ID and then sign out.  If you do not remember your password and do not have access to the email account, then you can reset your password by using the security questions.
    If you forgot your Apple ID password - Apple Support
    Have a great weekend,
    Alex H.

  • How do I delete downloaded photo albums from my iPhone 4 if I don't have the original computer?

    My old computer crashed causing me to lose everything. I have a photo album on my iPhone that I would like to get rid of but i can't seem to figure out how to on my new computer. Is it possible to get rid of that album without factory resetting my phone and losing everything?

    Try this (not 100% sure it will work, though.)
    Transfer all your photos from the device to your computer:
    Then, do an iCloud or iTunes backup.
    Erase all content & settings.
    Restore from the backup.

  • Trying to scan photos from my photo album to a folder on my desktop.  Have been trying to figure out for over an hour.  Seems very complicated and cumbersome,  Can you help?

    Trying to scan photos from my photo album to a folder on my desktop.  Have been trying to figure out for hours.  Seems very complicated and cumbersome.  Can anyone help?  It's got to be much quicker (fewer key strokes) and simpler than what I've been able to discover.

    Open the file, parse it, populate an ArrayCollection or XMLListCollection, and make the collection the DataGrid dataProvider:
    http://livedocs.adobe.com/flex/3/html/help.html?content=Filesystem_08.html
    http://livedocs.adobe.com/flex/3/html/help.html?content=12_Using_Regular_Expressions_01.ht ml
    http://livedocs.adobe.com/flex/3/html/help.html?content=dpcontrols_6.html
    http://livedocs.adobe.com/flex/3/langref/mx/collections/ArrayCollection.html
    http://livedocs.adobe.com/flex/3/langref/mx/collections/XMLListCollection.html
    If this post answered your question or helped, please mark it as such.

Maybe you are looking for