I'm using Drupal 7 + Ubercart. Have to add a field with easy selecting from images (52 logo images of producers), that are already uploaded and will be used every time, when i'm adding new product.
Use Media module. From media documentation
Media provides a multimedia browser which allows a user to view and
search through all of the multimedia currently added to a site.
After enabling the module, go to your content type Manage fields page, and change the widget of your image field to Media file selector.
Screenshot for your field settings.
Screenshot for Media browser
Related
I am using Gutenberg editor and while adding link to the text, i wants to link to existing uploaded media file. For that when i search for the name it search only the page/post. Addition to that, need to search the media post type as well. Please advise.
I followed the instructions on this page to add the Media module to my Ckeditor. I did everything according to the instructions, additionally I added to the list of allowed entities <drupal-entity data-*> and yet, the image/entity does not actually display when rendering on the front-end of the site.
this is the entity tag:
<drupal-entity data-embed-button="assets" data-entity-embed-display="entity_reference:entity_reference_entity_id" data-entity-type="media" data-entity-uuid="e9884625-791a-4362-92f7-0c56c9b928c3"></drupal-entity>
What else can I check?
On an existing site (wordpress 4.5.2 with woocommerce) there are 5k products with all image names being numbers (ex: 94325.jpg) and no title and alt tag set.
How can I bulk update titles and alt tags of these product images to product name in order to improve seo?
While the standard Wordpress Media manager allows you to set these one at a time, I'm not aware of any plugin that allows you to do a batch update. Asking Woocommerce support would be a good option here.
Disclosure: I am the developer of this plugin.
So WordPress stores attributes in two locations, one in the media library and another in the html of each image (which you can see if you choose to edit the image block as html). If your theme pulls the attributes from media library, then you can use this plugin and update image tile and alt text in bulk - https://wordpress.org/plugins/auto-image-attributes-from-filename-with-bulk-updater/
I also have Image Attributes Pro which will update both the media library and post html and can use post / product title / image filename / SEO keywords to generate all image attributes. You can find it here: https://imageattributespro.com/
I'm using Ubercart on Drupal 7, pretty basic install. (IMCE, WYSIWYG, Ubercart)
However, I am unable to upload multiple images when creating a product node although Ubercart says multiple image support should work out-of-the-box.
The image field is the default uc_product_image.
I have Lightbox enabled and image field is configured to allow for unlimited image uploads.
Still, the single-upload widget is shown that allows me to only upload.. a single image.
I have checked the permissions (all good) and the Ubercart image support status (green light: "Product image support has been automatically configured by Ubercart.")
What am I doing wrong?
Only try to upload one and press the button "Upload".
Probably you already got the solution.
Is there a solution to change the add Media popup in posts/page Wordpress admin ?
My dream is to integrate the popup directly in a metabox. The user shouldn't open the popup to manage his media files. And sometimes hide the library and From URL tabs, not always useful...
I'm looking to better manage a product page (for ecommercial website..) and its images.
Just a question :) And maybe a suggestion.
What do you think about that?
You can manipulate that screen in a couple of ways.
Using the action hook admin_head-media-upload-popup, as seen in How to Add a Custom Colum on Thickbox Media Gallery Tab?.
Or using the filter media_upload_tabs: Remove tabs from media uploader for a CPT.
Other solutions/examples and possible hooks can be found with this search query: https://wordpress.stackexchange.com/search?q=media-upload-popup
Take a look at the plugin Image Pro, which seems to meet the requirements.
Upload, resize, add, change images instantly. Manage your media collection with ease and use it for any post or page. A new way of managing content!
And analyzing the code of the plugin Faster Image Insert can reveal some interesting techniques.
Fully integrates media manager into editing interface, avoid reloading thickbox pop-up, with enhanced features like multi-insert & mass-editing.