plugins icon indicating copy to clipboard operation
plugins copied to clipboard

Caption on "fotorama_directive"

Open humitos opened this issue 10 years ago • 2 comments

How do you think I should implement "Captions" (http://fotorama.io/customize/captions/) in the fotorama_directive (https://github.com/getnikola/plugins/pull/94)?

I mean, how the user should write the caption to associate with the images?

I was thinking on something like this:

.. fotorama::

  image0.jpg
  Caption for image0.jpg
  image1.jpg
  Caption for image1.jpg
  image2.jpg
  image3.jpg

But the thing is: how I can distinguish if the line is a caption or is a path? I can check if the filepath exists but maybe is a typo instead of a caption :)

Well, that's why I'm asking you guys.

humitos avatar Aug 02 '15 20:08 humitos

Put them on one line and use some sort of delimiter, that is unlikely to appear in filenames and that exists on keyboards (\t?)

(also, you should ask in a comment in #94)

Kwpolska avatar Aug 03 '15 07:08 Kwpolska

I just implemented this but I think there is a bug in the fotorama.io plugin because "thumbnails" and "captions" seems to be incompatible.

http://fotorama.io/customize/thumbnails/#comment-2249947976

Can we merge this PR as it is? and after I get an answer from them, I will add this feature I prefer thumbnails over captions :)

humitos avatar Sep 12 '15 15:09 humitos