Hi, my question is concerning the preview image (for the cards layout) of the blog application. When adding a preview image to a new blog post, I am only able to upload an image, but there is not the usual attachment picker where I can choose between upload, galery and so on. Is there a wrong setting or is it possible to somehow use the attachment picker in the blog?
Thanks!
Dave
Hi!
You’re talking about the Image
field you can setup while creating a new blog post, right?
This is the one on the bottom left of the screenshot:
After clicking it, I get the regular attachment picker (also the one you get when changing your profile picture).
I guess you were expecting to get the CKEditor Image Selector. I understand that there is an inconsistency here and that’s definitely a problem.
After checking that it didn’t get already reported first, you’re welcome to report it on Loading... to make it easier for project maintainers/contributors to take actions on your feedback
I don’t think it’s possible to use the CKEditor Image Selector in this place right now, I’d be really surprised if this was a matter of settings. I don’t know the blog application much though, so I might be mistaken I know a bit about XWiki standard, and it seems like this modal was not really made to be used outside of CKEditor.
@acotiuga might know more as the Blog Application project lead.
Have a good day!
Lucas C.
Hi Lucas,
thanks for your reply, yes, that’s the Attachments dialog that I meant.
Alternatively, does anyone know something about this default image that you can also see in the screenshot? Obviously there is none set, but can I do that somehow?
Best wishes
Dave
As far as I can see on https://extensions.xwiki.org/xwiki/bin/view/Extension/Blog%20Application#HPostimagethumbnail there is no way to set a default.
It should be possible to set a default to the attachment selector: https://extensions.xwiki.org/xwiki/bin/view/Extension/Attachment%20Application#HAttachmentSelector
You can check out how it’s done for the user avatar: xwiki-platform/xwiki-platform-core/xwiki-platform-user/xwiki-platform-user-profile/xwiki-platform-user-profile-ui/src/main/resources/XWiki/XWikiUserSheet.xml at ca465342bbce628fadea87b6760b63903b3ee419 · xwiki/xwiki-platform · GitHub
You can either:
- Propose a fix for everyone on the blog application project (probably a bit complex since it’d be good to have it as a parameter of a blog macro… ).
- Customize your own blog application with this default value (easier because you can just hard-code the value that works for you in the place where the blog app uses the attachmentSelector macro).
Hope this helps!
Lucas C.