Add Caption to Photo Gallery

I have added a caption to the photos.xml file and have not
been able to get it to display below the picture. Can someone
please help me with the code. I am using the code from the Photo
Gallery demo.

Hi djbaird,
In the future, you might want to give us a bit more info,
like how you added your caption to the XML file (what you called
the attribute name, or what tag you added).
If you added it as an attribute like this, to each photo
node:
<photo path = "china_01.jpg" width = "263" height = "350"
thumbpath = "china_01.jpg" thumbwidth = "56" thumbheight = "75"
caption="The Great Wall!"></photo>
You would then add your caption somewhere underneath the main
image like this:
<div
spry:detailregion="dsPhotos">{@caption}</div>
The reason I use a detail region is because as you click on a
thumbnail, the gallery code sets the current row of the dsPhotos
data set to the currently selected photo, using a detail region
allows the region to update whenever the dsPhotos data changes, or
the current row of dsPhotos changes.
--== Kin ==--

Similar Messages

  • 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

  • Someone told me it was possible to add captions to photos on iCloud but I've not been able to figure this out.

    Someone told me it's possible to add captions to photos posted on Icloud.  Is this correct, if so, how is it done.
    Thanks

    Welcome to the Apple Community stillsphotographer.
    Comments are a feature of shared streams.
    To create a shared stream, select a number of photos, tap the share icon and chose cloud.

  • How do I add captions to photos in a gallery in iBooks Author.

    I have successfully added a photo Gallery to an iBooks Author template and have given it a Title but the Caotions option is greyed out. How do I add individual captions to my photos. The Help menu says it can be done but I can't work out how to from the instructions.

    Make sure you have the Gallery selected - Fabe

  • Spry gallery_pe, add caption to photo

    I have created a dynmic photo gallery using the example files
    included with the Spry demos. This dynamic gallery uses the
    gallery_xds.js file. I am trying to add a caption under the photo.
    I can get the caption for the first photo to show but it does not
    change when the next photo is displayed.
    Does anyone know how to do this? I am a novice as javascript
    and not familiar with it much.
    Thanks,
    Linda

    Thanks so much for the links. I have a question that I could
    not find an answer to. This refers to the code provided by
    epsilon718, on Monday, October 15, 2007 4:11 AM. It appears below
    my question.
    My question: The only part that is not clear is this:
    ================== index.html =================
    1) in the div with id thumbnails, add the following to the
    <a> tag: id="{ds_RowID}"
    Here is the original code from the spry demo:
    <div id="thumbnails" spry:region="dsPhotos">
    <div class="thumbnail" spry:repeat="dsPhotos"><a
    href="{path}"><img alt="" src="{thumbpath}"
    /></a></div>
    As you can see it is an a href tag. Where do you add the
    id="(ds RowID}" ?
    Here is the entire code provided:
    Answer
    Hi,
    I was able to get the caption to show up with a few minor
    changes to few of the files. The changes I made do not make the
    caption appear on only the first image when in slideshow mode.
    After the first image, they'll appear. Also, If you click on the
    thumb, they'll show up. Find the changes with the file names below:
    ================== index.html =================
    1) in the div with id thumbnails, add the following to the
    <a> tag: id="{ds_RowID}"
    2) In the div with id picture, add another div with id
    captionText:
    <div id="picture">
    <div id="captionText"></div>
    <div id="mainImageOutline"><img id="mainImage"
    alt="main image" src=""/></div>
    </div>
    ================== gallery_init.js ===============
    1) modify the signature of InitializeGallery function to take
    in the dataset as a parameter:
    function InitializeGallery(ds)
    2) replace the gThumbViewer.addObserver with the following:
    gThumbViewer.addObserver(function(notificationType, notifier,
    data)
    if(!data)
    return;
    if (notificationType == "onSelect")
    gImageViewer.setImage(data.href);
    var row = ds.getRowByID(data.id);
    Spry.$('captionText').innerHTML =
    row['photos/photo/@caption'];
    ========================= gallery_xds.js =================
    change the call to InitializeGallery function (line 86) by
    passing in the data set:
    InitializeGallery(dsPhotos);
    ======================= XML files ==================
    add in your caption text as an attribute of the photo tag,
    just like path, thumbpath, etc are.
    ====================== SpryThumbViewer.js ==========
    in the Spry.Widget.ThumbViewer.prototype.select function,
    modify the calls to notifyObservers to accpet 'a' instead of
    'a.href':
    if (a)
    //this.notifyObservers("onSelect", a.href);
    this.notifyObservers("onSelect", a);
    if (img == imgs[0])
    this.notifyObservers("onFirstSelect", a);
    if (img == imgs[imgs.length - 1])
    this.notifyObservers("onLastSelect", a);
    I think that's about it. Give it a try and let me know if
    there are any other problems.
    If you can help, that would be great. Thank you, Linda

  • IPhoto:add caption on photo

    Can I add captions to the photos.I have given names to the photos by clicking on Info button and entering details at top.Is it possible to see the photo name while viewing in full screen without the rest of the photo info on right?

    Yes you can use the Description area in the panel on the right. Just type where it says "Add a description...'.
    Afraid not.
    iPhoto Menu -> Provide iPhoto Feedback for feature requests.

  • HOW DO I : Add caption to photos; show captions when photo prints

    using Mac (OS 10.4.8) , importing jpeg from iPhoto 6.
    Photos were named in iPhoto but name (example: "johnny Jones, 2006") is not imported.
    I need the photo names ( or "label" or "caption"- whatever it is called.
    I don't know how to caption (name) individual photos in Photoshop Elements 4. I see the Get Info but when I add a title , it shows up as " johny Jones, 2006.jpg"
    - I don't want the extension ".jpg" to show up
    - I don's see any caption when I do a print preview
    How is this done?
    ( am making a picture package of friends' pix.. need to show name of each friend below the person's photo
    NOWhere do I find information on this, not in help, tutorials, etc
    Don't people want to see printed captions anymore? Metadata in my Elements file is not the anwer.
    I don't want a name layer in the photo; I want a text label for each picture.

    Barbara,
    You could enlarge the canvas - Image>resize>canvas size, select a % increment for height, click the arrow pointing towards 12o'clock, check relative. Then type unique caption below picture with text tool. Text will be on its own layer, position it in place, simplify layer. You can fill residual area of transparency at bottom with paintbucket tool in color of your choice. Finally crop picture to conform to size of your paper.
    Ken

  • Has anyone successfully used speech recognition software to add captions to photos?

    I have tried using Dragon and the builtin features of Win 7, but no luck.  This would be very useful for captioning large quanities of photos.
    Thanks

    I was able to create a speech macro that allows me to do this.  I have the marco set up so that I can tell it to 1) record what I dicate, 2) post it into the current picture, 3) move to the next photo.
    It is significantly faster (for me) than typing each caption.
    This was my first attempt at a (Windows speech recognition) macro, but I would be happen to share it with anyone who wants it.
    Regards,
    Joe

  • Adding title and caption to Photo Gallery

    My XML looks like this:
    <photos id="images">
    <photo path="405.jpg" width="405" height="470"
    thumbpath="405.jpg" thumbwidth="86"
    thumbheight="99" title="A White Winter's Blanket"
    price="4715200" artist="Ernest Albert"/>
    and can be viewed at
    http://www.roughtongalleries.com/galleries/american.xml
    My page is at
    http://www.roughtongalleries.com/american_gallery.html
    I want to have the title and artist show up with the main
    image as you click on thumbnail or run slide show.
    It seems to me I have to create a new div for it and modify
    one or both of the js files that come with 1.6 gallery_xds.js and
    gallery_int.js
    I would appreciate any help. This is not where I have my best
    skills yet.

    This is answered in another topic and although I am still
    having a small issue I will wait till
    I get the answer there.

  • Add to two photo gallery to the same ipad

    Hello,
    I have photos in two diferent computers (windows) is it possible to sync both to the same ipad using itunes(only photos).

    No - only the most recent sync remains on the iPad, so whichever you sync first will then be removed by the second sync. There are some apps, such as Simple Transfer (which also has a free 'lite' version called Simple Photo & Video Transfer), that allow photos to be transferred via wifi, but they can only transfer photos into the Saved Photos album.

  • Can I add captions to photos?

    In Photoshop 10 for my desktop computer there is a caption feature. Does the same feature exist in Photoshop Touch for Android tablets?

    Sorry, that is not possible.

  • Add captions to "darkroom" photo galleries

    Dear Common Wisdom:
    I would like to add captions to photos in my gallery pages.
    I am using the "Darkroom" templates in iWeb.
    Thanks in advance!
    CJ

    Click on the thumbnail photo grid to bring up the photo grid preference pane.
    There hyou an set the number of caption lines you wnat to use.  All you need to do after that is click under the thumbnail to open the caption field and type in the caption.
    OT

  • Help putting a photo gallery in Dreamweaver CS5.5

    Hi,
    I'm new to web design and have been learning to use DW CS5.5.  My goal is to design a website for my small, online antiques business with a photo gallery in it.
    The Adobe Extension site lists several photo gallery options, but none for CS5.5.  Does anyone have any ideas on how I can easily, or fairly easily add a simple photo gallery to my new site?  By simple, I mean thumbnails linking to a page with a larger photo and descriptive text, nothing else.  I really want to keep it simple.
    Is my only choice to build it myself from scratch?
    Any help you can give will be most appreciated.
    Terry3Mc

    hello Terry,
    There is a website called www.templatesold.com you have to pay.. but i have a login
    there are a lot of templates of photo gallerys.
    email-me [email protected]
    Leonardo Hermoso
    bovespa

  • How do I add captions to pictures?

    I am very new to the MAC world (one week to be exact). I have searched help and can find a method to select the font to add captions to photos but cannot find the method. I want add captions to photos in an album and then use the album to create a slideshow. Any help would be appreciated.
    Nepa

    Another way to put captions in the slideshows is to first put the captions in the Description field that TD mentioned and then use this script to write those descriptions into the Title field to use in the slideshow. When you're done you can use the Photos->Batch Change->Title to File Name.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Adding a Flash photo gallery on DW

    So, I'm trying to add a flash photo gallery on my site.  I am very new to this and cant seem to figure out how to do it exactly.
    I've found free templates online and downloaded the files.  But I am unsure where to go from there.  Like I said, I very unexperienced with this program, I did find the add flash option, but am unsure which files to add.
    Any help would be greatly appreciated!
    Thank you 

    Hi
    The documentation confirms what I have written in my previous post it is controlled by an xml file.
    Copy all the files required as indicated by the documentation into the required folder and open the gallery.xml file in dreamweaver.
    Insert the images file locations into the xml file as indicated in the example. Important - the location of the files MUST represent where they would be if referenced from the html page you are inserting the image gallery into.
    This means that it is probably better if you create the xml file in the same file position as the html page and the copy this file into the required position in the gallery folder that they suggest you create.
    PZ

Maybe you are looking for

  • Video doesn't work when calling from Jabber to DX650

    Hi, I just added a DX650 to our CUCM 9.1.2. When I call from either Jabber to the DX650 or Lync to DX650, the video doesn't work and the call is audio only. The message i'm seeing on Jabber is something like "the other endpoint is not accepting video

  • TDS on Customers

    Dear All My client receives Security Deposit from its Customers and pay Interest to them. Due to this, it has to deduct TDS also on the Interest Paid. Should I assign the same Withholding Tax types and Codes as created for the Vendor , in the Custome

  • Can you Download iOS5 for A Late 3d Generation iPod Touch? if So, How?

    Hello, I Have a 3d gen. iPod Touch, currently with 4.2.1 set up, does anyone know how to update it to 4.3? because i keep scannig for an update and iTunes just sys that 4.1 is the current software version! please help! - Joe

  • Creating Obiee another instance

    Hi all, I would like to create an additional instance for the obiee which I have. But I'm not aware of doing it. Could any body help me in providing a link for that? Thanks in adv. The environments are both Windows and Linux as well.

  • Untitled Account in Calendar on iPhone

    I know that people have tried to ask this question but most of the answers I have gone for have failed! Anyway, I have got two calendars on my iPhone that appear under the title of "Untitled Account". All kinds of re-setting, syncing etc have failed