Individual image captions?

  • Question
  • Updated 3 years ago
Is there a way to add captions or something similar to individual images in a project? I'm building a photography site so say a portrait project has an image of a guy and I want the caption to read 'John Doe' and then the next image is of a girl and I want that caption to read 'Jane Doe', etc. My current site has examples of captions I'd like to be able to do: http://www.jaimehogge.com.

Thanks again for this as well as helping all of us non-web-geniuses!
Photo of Jaime HoggeJH

Jaime Hogge

  • 15 Posts
  • 0 Likes

Posted 5 years ago

  • 7
Photo of Anthony Kolber

Anthony Kolber, Official Rep

  • 811 Posts
  • 157 Likes
There is no way to handle image captions with stacey without modification.
You could always make the captions a part of the image.
Photo of Jaime HoggeJH

Jaime Hogge

  • 15 Posts
  • 0 Likes
Alrighty, thanks!
Photo of Andries ReitsmaAR

Andries Reitsma

  • 10 Posts
  • 1 Like
I made these modifications, I will soonish post a link to share the information.

Have to admit that it's not the cleanest way to do it, don't have the PHP skills that Anthony has!
Photo of Andries ReitsmaAR

Andries Reitsma

  • 10 Posts
  • 1 Like
http://www.andriesreitsma.nl/edited_s...

A few things to remember :
1. Filenames cannot include spaces or underscores.
2. In the project.txt file use the filename as the key. You can handle it like all the other values you use?
3. In the "image-partial" you can add the keys @id and @caption, where the @id is created for me to do some javascript action with it ;-)

http://www2.studiofrontaal.nl is almost the end result of my changes.

Hope it's helpful for someone.

Greetz,

Andries
Photo of Elena Jatia

Elena Jatia

  • 15 Posts
  • 0 Likes
Ok, so I figured out why the '@captions' was appearing under the images. I didn't install the new 'stacey.inc.php' file!

Except now, all the styling has disappeared: http://elenajatia.com/projects/other/ What is happening? I tried deleting all the comments from the PHP file, that did not work.
Photo of Elena Jatia

Elena Jatia

  • 15 Posts
  • 0 Likes
Ok, so I figured out why the '@captions' was appearing under the images. I didn't install the new 'stacey.inc.php' file!

Except now, all the styling has disappeared: http://elenajatia.com/projects/other/ What is happening? I tried deleting all the comments from the PHP file, that did not work.
Photo of Anthony Kolber

Anthony Kolber, Official Rep

  • 811 Posts
  • 157 Likes
Andries version of stacey.inc.php is a little out of date now.
The problem is the @Site_Root which is only supported in Stacey v1.1.
You can go through your templates and replace @Site_Root with '../' relative paths and that should fix your issue.
Photo of Elena Jatia

Elena Jatia

  • 15 Posts
  • 0 Likes
Thank you Anthony! That fixed it. However, I had to actually replace it with 'http://www.mysite.com' instead of '../' and the same goes for the css and js files.
Photo of IreneI

Irene

  • 6 Posts
  • 0 Likes
I've the same problem as Jaime. I'm using Stacey v2, template2, and want to add individual caption for each image.

After replacing templates/partials/images.html & stacey.inc.php, which are downloaded from the links from above, the navigation menu order as well as the image order are so wired! They're not in reverse order according to the numberings of sub-folders at 4.projects, but other strange orders.
Could someone pls help? And the stacey.inc.php available above is for Stacey v1, which only support pages for showing images, and not supporting those with video & swf.
Photo of Jaime HoggeJH

Jaime Hogge

  • 15 Posts
  • 0 Likes
Thanks for this, I'll check it out!
Photo of Anthony Kolber

Anthony Kolber, Official Rep

  • 811 Posts
  • 157 Likes
That is quite clever Andries, nice work.
Photo of Alex Amelines

Alex Amelines

  • 26 Posts
  • 0 Likes
broken link, can't download the source :(
Photo of Andries ReitsmaAR

Andries Reitsma

  • 10 Posts
  • 1 Like
Indeed it's a broken link, but that's because StaceyApp covered this in the new version. So go check it out, it will make you happy again ;-)
Photo of Alex Amelines

Alex Amelines

  • 26 Posts
  • 0 Likes
oh really? I didn't see it in the documentation... what should I be looking for?

I'll keep reading... thanks!!! :)
Photo of Anthony Kolber

Anthony Kolber, Official Rep

  • 811 Posts
  • 157 Likes
Check out the @name variable available to assets: http://staceyapp.com/documentation/ed...
Photo of Alex Amelines

Alex Amelines

  • 26 Posts
  • 0 Likes
I did, but is not long enough... it's ok I found a way around it I think.
Photo of AndeA

Ande

  • 3 Posts
  • 1 Like
I realize this thread is kind of old but I wanted to add a very simple way to put captions that I stumbled upon. If you open your image in photoshop, go to file>file info and type your caption in the box labeled Description. Save image and upload! Not exactly sure how that works, but it does!
Photo of Alex Amelines

Alex Amelines

  • 26 Posts
  • 0 Likes
mental! that sounds like witchcraft! I will have a go. Thanks!
Photo of James Webb

James Webb

  • 2 Posts
  • 0 Likes
i found a very easy way to add captions. In XnView you can add IPTC captions, this then shows up under the images. see my web site for eg
www.gabrielswebb.com
look under visualisations/ exteriors
regards james
Photo of James Webb

James Webb

  • 2 Posts
  • 0 Likes
oops i see that Andre had found a similar method
Photo of kirtonK

kirton

  • 1 Post
  • 0 Likes
hey all,
i did edit imagedata step as per Ande, and tried using Bridge as well...
the files have metadata, but they still don't show using @description
@keywords doesn't work either
cheers,
t