Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
1. I have 3 type content. Each type need one and one only image present.
2. If choose only one present... Not need display combobox on "Image details" screen.
3. "Image alignment" on "Image details" screen always first (align by left) by default. But need in admin settings add option for choose default value.
P.S. Sorry for my english.
Best Regards,
Sergei.
Comments
Comment #1
EugenMayer CreditAttribution: EugenMayer commentedWell i wont implement this. Please care about finding someone helping you out here or maybe implement it yourself and provide a patch?
Thank you.
(will close thise issue after 2 weeks without any happening)
Comment #2
EliteMonk CreditAttribution: EliteMonk commented2. If choose only one preset... Not need display combobox on "Image details" screen.
File: wysiwyg_imageupload.form.inc
Method: function _wysiwyg_imageupload_details_form($img, $iid, $defaults = array())
Change
to
Find new bug:
if uncheck all presets in admin settings, then image not display on page, but display on "Image details" screen.
Comment #3
EliteMonk CreditAttribution: EliteMonk commented3. "Image alignment" on "Image details" screen always first (align by left) by default. But need in admin settings add option for choose default value.
File: wysiwyg_imageupload.module
Add method:
File: wysiwyg_imageupload.admin.inc
Method: wysiwyg_imageupload_admin_settings()
Add before return
File: wysiwyg_imageupload.form.inc
Method: _wysiwyg_imageupload_details_form($img, $iid, $defaults = array())
Change
to
Comment #4
EugenMayer CreditAttribution: EugenMayer commentedyou are mixing up 2 features, thats not good. Would be great if you can seperate them.
Are you aware on how to work with git?
Comment #5
EliteMonk CreditAttribution: EliteMonk commentedSorry, i am learn only. Please, give me link about git.
Comment #6
EugenMayer CreditAttribution: EugenMayer commentedhttps://github.com/EugenMayer/wysiwyg_imageupload
thats our main repo there
A really good book is that one http://progit.org/
You would need to create a github account, make a fork of wui there and start a pull request. That would be awesome. create a branch for each feature and your really good to go!
Comment #7
EliteMonk CreditAttribution: EliteMonk commentedty
Comment #8
EugenMayer CreditAttribution: EugenMayer commentedwould be cool to include this feature. What about a patch / pull reques Elite? All you other ideas already went in
Comment #9
EliteMonk CreditAttribution: EliteMonk commentedfeatures 2 and 3 i commited to github, features 1 have bugs, and i think i commited later...