Not sure is this is a bug, a feature request or a support request – so for now I marked it as a support request.

I use the Scald module to add images to a CKEditor text field. The editor has different display options for images, all triggered through scald contexts. For example the editor may choose to have a 'full width' image and later change the context to 'Inline' or the like.

This worked fine in the past – and basically also still works fine now - but now having a couple of contexts up, it is a bit annoying that I can not determine in which order the contexts are presented in the modal window that lets editors change the image's scald context.

scald

I would need to have the contexts either ordered alphabetically or manually – currently they seem to be ordered chronologically. So currently the first context I created is first in the list – the latest context is last. Some of my contexts are close to others and I would need to have them appearing accordingly close to each other – in the above screenshot it's "Partner–Logo (160px)" and "Partner-Logo (200px)".

Is this even possible? Or do I 'just' have to delete and re-add contexts? Thank you!

CommentFileSizeAuthor
#1 scald-contexts-image-format.png46.32 KBtille

Comments

tille’s picture

Issue summary: View changes
StatusFileSize
new46.32 KB
nagy.balint’s picture

Status: Active » Fixed

You can alter the list of contexts with hook_scald_wysiwyg_context_list_alter
check the scald.api.php
Granted its not very user friendly to do it that way, but its possible.
It could be a feature request to make a UI for this alter, on the other hand that could also be a contrib module.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.