bplmaps / argomaps

1 stars 0 forks source link

Image captions #42

Closed almontg closed 1 year ago

almontg commented 1 year ago

As with footnotes, this is something I think I just can't figure out but very well may be in the editor somewhere!

Michael, I think you'd previously told me I could do this via the image properties window, but I don't see this option anywhere

image image image

diedrick commented 1 year ago

I've upgraded the image system to our latest version that does have image captions... tell me if this breaks anything else, of course:

image

(Only works on new embeds, though)

almontg commented 1 year ago

I'm not seeing it from the dialogues I get when I click this button: image

Is there a different way I should be adding the images?

diedrick commented 1 year ago

URL?

almontg commented 1 year ago

https://argo.stage.diedrick.com/admin/people.php/1

diedrick commented 1 year ago

This is what shows up for me -- I think you just need to clear your cache. image

I use this clear cache plugin since I clear cache all the time, if that helps: https://chrome.google.com/webstore/detail/clear-cache-shortcut/jnajhcakejgchhbjlchkfmdidgjefleg

almontg commented 1 year ago

As with the other issue clearing my cache fixed it!

How do I add an image URL using this system? I'm only seeing files that are uploaded to the system. I can do it in the source code of course but that won't give me the caption option. Still using https://argo.stage.diedrick.com/admin/people.php/1

Also, worth nothing that clicking on any of the drop downs throws the following error:

image image

diedrick commented 1 year ago

Aha, yes, this system isn't meant for offsite images. But you can just add an image and then switch to source and change out its src="..."

Looking into that strange error with the pulldowns.

almontg commented 1 year ago

Perfect. Will do that! Do you want me to leave this open for the pulldowns issue?

diedrick commented 1 year ago

That should be fixed now, but you'll have to clear your cache I suspect.

almontg commented 1 year ago

Yep, works fine now!

I updated all the images in the people articles; using the new image system the layout looks kind of wonky (see screenshot) but I'm not sure if that is just something that looks strange in the wysiwyg or needs to be addressed to make sure we have a good layout for the published pages.

image https://argo.stage.diedrick.com/admin/people.php/4

diedrick commented 1 year ago

Oh! You're forcing widths on it, which doesn't work across different sizes. You'll want to use styles.

When you first do the embed and choose a style, like 50% left: image It makes a nice layout based on that style. The code looks like this, if you want to use it:

`

Alt Text

A pretty caption

` (same thing, in case the code above gets mangled)

image

The other styles for the figure are img_right_50, image_left_25 and image_right_25.

almontg commented 1 year ago

As usual, I have cleared the cache and now the problem is solved. Someday, maybe, I will learn :p