What is the replacement of html5smartimage xtype in touch UI - aem

I have a need to allow the authors to be able to do image cropping while authoring. This was easily done using html5smartimage xtype in classic UI. However, in touch UI there seems no replacement for the same. Is there a way to achieve this.
Note: This requirement is for the authoring and cropping of the image in the page properties dialog, so the inplaceediting of image cant be used there.

only replacement available is resourceType - cq/gui/components/authoring/dialog/fileupload
with attribute useHTML5 = true
example can be found under - /apps/core/wcm/components/image/v1/image
cropping option is only availabe for inplace editing.

Related

Add a property in the dam metadata in touch ui AEM 6.2

I have a use case.
While going to DAM Asset Dialog in AEM 6.2,I want to add a property rootPath: /etc/tags/geometrixx to the tags field.
I am using the concept of overlay and resourceMerger.
My dialog is under this
/libs/dam/content/schemaeditors/forms/default/items/tabs/items/tab1/items/col1/items/tags.
While Overlaying it in apps and add the property in it,it doesn't show anything.
Can anyone help me?
Just for testing i have replicated, and it works fine as expected
Actually you can't do that by overlaying the dialog, you'll need to rely in DAM Metadata Schemas to achieve that - https://experienceleague.adobe.com/docs/experience-manager-64/assets/administer/metadata-schemas.html?lang=en
From there, and if you want to persist these definitions in your code baseline, you can refer to the location where it gets stored - /conf/global/settings/dam/adminui-extension/metadataschema
Hope it helps

Bild vergrößern mit Fancybox

I use ModX and would like to change the size of a displayed image under "fancybox". However, I can not find the CSS file in which the details are.
Code-Picture
The "element.style" can be seen in the picture. This is likely to be created. What I want to change is the "width: 494px;" To adjust the overall size of the image. Where can I find that ?
If you need to change that width - than change it in fancybox options - http://fancybox.net/api
Let me know if you need further help with that. You can and should use pthumb for the resizing and caching before passing into a slider or lightbox tool.
pthumb is the fork of phpthumbof.
https://modx.com/extras/package/pthumb

How can I maintain image class when using mc:edit in a MailChimp template?

I'm trying to create a MailChimp template where an image is editable using mc:edit
Here's the code:
<img class="flexibleImage" mc:edit="top_image">
This seems all good, but once I edit this image using the MailChimp editor, I lose the original class "flexibleImage" and all other class and style info related to that img element.
How can I create a template with an editable image and maintain (or add) that class?
For anyone else with the problme, this answer is based on a response from MailChimp support:
It looks like it isn't possible to keep a custom class attached to an
editable image. What you could do instead though is apply the class
to the image's containing element. So if the image is in a <div>, add
flexibleImage to the div, and then update your CSS rules to point to
.flexibleImage>img.
This happens because the image you want to edit is inside an mc:repeatable block that in turn is inside another mc:repeatable block
Even four years later this is still an issue.
The other route is to put mc:edit on the parent container, and have images managed through there, but you lose the Image uploader box, which is poor user experience.
You can go into Settings when you have uploaded a new image and put the sizes in there. Not ideal, but Mailchimp is to blame here (no such issue on Campaign Monitor templates).

Mock up taging and description cms system

I'm looking for a cms system to:
- upload an image like mockup and add and positioning tags(marker) on the image
- write description for each marker (multilingual)
- in front end, when we click on each tag, it shows the description of the tag!
Basically I want to use this system to manage the content of the image mockup or the design.
Tnx in advance
You can use UI prototyping tools like invision or concept.ly for that .
I am not sure which of them are multilingual but both of them provide taging and navigation on images .

What is the best way to enable content authors to add images with captions in Expression Engine

There's a module to do this in Drupal land, but I've been frustrated with the hacks that've been necessary in Wygwam. What is the best way to go about implementing this in such a way that you don't need to totally override the default image handling in ChannelImages/Wygwam?
Assets is a good suggestion, but I believe Devdemon's channel images might be a better fit for the workflow you're suggesting.
http://www.devdemon.com/channel_images/
Clients can add (and see) a caption and more and it's fully integrated with Wygwam and other editors. Devdemon's support is also excellent.
The Assets module from Pixel & Tonic allows you to double-click on the image (or any other file) and add metadata. You then have access to the metadata in your templates.
Check the screenshot: http://pixelandtonic.com/assets
You can also add metadata using the native File Manager. Click the edit icon from the File Manager and you'll see a few fields. You can use the File Entries tag to access it.
http://expressionengine.com/user_guide/modules/file/file_tag.html
I typically use Matrix with one column for the image, one column for the caption, and if a link is needed another column for the link. This of course works best if the image is in a fixed location within your template.
On possible way to accomplish this that I have used is to run some jQuery that looks for images within a certain area, and if they have alt attributes, rewrite the image tag within a tag with a tag inside.
so:
jQuery(document).ready(function() {
$('#page-content > .wrapper img').each(function(){
if($(this).attr('alt') !== undefined && $(this).attr('alt').length > 0){
if(!$(this).parent().hasClass('content-image')){
$(this).replaceWith("<figure class='content-image "+$(this).attr('class')+"'>"+$($('<div></div>').html($(this).clone().attr('class',''))).html()+"<figcaption>"+$(this).attr('alt')+"</figcaption></figure>");
}
}
});
});
will do just that. It's looking within a #page-content div for img tags with alt attributes. And then rewriting it as
<figure><img src='....' .... /><figcaption>This is the text that was in the alt attribute</figcaption></figure>
Soooo, that kinda works. The only caveat is that you had better not use any double-quotes within your alt text, or it will break thangs. Not the cleanest of solutions, but a solution, nonetheless.