is it possible to customize the Journal component to load the images and videos from DAM,
http://localhost:4502/content/community-components/en/journal.html
Thanks in advance!
The Journal component does not come with a built in DAM browser therefore this cannot be done by OOTB components.
However, you can achieve similar result by exposing your published DAM via some public URL. Doing so, will allow the users to embed DAM images just like any other public image via a URL.
Related
I am customizing the email template for password-reset. I wish to access the logo from email resources directory (i.e) \themes\\email\resources\img\marketing.jpg
This can be possible for login module via ${url.resourcesPath}
Some one please point out me how to access the email resource path in password-reset.ftl
version keycloak-4.0.0.Final
I ran into this problem myself, and after some searching I found this email thread:
Hi community,
I am looking for a way to add images to custom keycloak email themes. Our company template HTML uses the images sent as attachment. I would therefore like to attach the required images to the email. If this is not possible, what would be the correct way to add images to the HTML template?
Unfortunately the current documentation does not state anything of it:
http://www.keycloak.org/docs/3.3/server_development/topics/themes.html
Regards
Jonathan
I don't think you can do this out of the box today, but you should be able
to create a custom email sender provider that does it. Look at docs for
details on creating custom providers (as well as quickstarts on examples).
Then look at EmailSenderProvider and the implementations in our repo.
Hi,
If your goal is to display a kind of logo or some image in the mail, you
can include it as an embedded image using
<img src="data:image/png;base64,.... "/>
It's not perfect as some email clients (like gmail) don't display this kind
of image but it can do the trick before finding a better solution.
BR, Jérôme.
Hi,
Thanks for your suggestions. After reading a lot about email client support for image embedding in emails (e.g. the solution from Jérôme is blocked by Outlook), I think the best solution is to implement my own email sender provider and link the images to the attachments (using CID) .
#Stian Thorgersen: My understanding is that I will have to override the EmailTemplateProvider based on the FreemarkerEmailTemplateProvider (or can I just extend from this one?) to fetch attachments from a path e.g. /attachments/ and pass them to the EmailSenderProvider, am I correct?
Regards
Jonathan
So, whilst the documentation says you can use <img src="${url.resourcesPath}/img/image.jpg"> in your custom themes, this doesn't actually work for email templates.
UPDATE (2022): The documentation has changed over time, so this might be possible now, though I haven't verified that: https://www.keycloak.org/docs/latest/server_development/#adding-an-image-to-a-theme
I have two separate Java applications A and B running on different physical servers.
On application A (based on Spring Boot framework ) end users view images and image meta data (over 50k images) and has search functionality including faceted search and will use elasticsearch for this. In this application what is the best way to design the content repository ( storage of images and meta data) such that all images can be cached in memory for high performance access?
Application B:
This is liferay 7 based portal.
Authors uploads images and enter meta data about images (or blogs) such as image description Admin approves/publishes the images. These published images are immediately seen in application A. How Liferay can store images to make it possible? Note that application A cannot use Liferay.
For the second part of your question:
Liferay has an API, that you can use to interface with the rest of the world - e.g. even event based: When an image is approved, do something.
Also, images stored in Liferay have a URL - no need to store them somewhere else, you just need to refer to their URL to access them. I'm not sure if that counts as "Application A uses Liferay", you can judge that.
The first part of your question, "what is the best way to design the content repository?": IMHO that part of the question is far out of scope for stackoverflow.com as there tends to be no "correct" answer, but just personal opinions. There's by far not enough information to come up with a proper answer on this topic.
I have this specific requirement that there is a list of names of people and a container for photo.
So when I click on specific user's name, his photo will appear in that container.
Is there any specific extension for this, so that admin can manage all the people names with their images ?
Thanks in advance.
If you are referring to an Avatar and using Joomla 2.5+ then I would recommend using Community Builder. I know it's a fairly big system, however it extends user profiles massively and might come in handy in the future.
If you're using Joomla 1.5 then you could always use DAvatar which is simply a plugin.
Hope this helps
You can user Community Builder as well but its very large & powerful extension & i think your interested to show only users image. If you have Joomla 2.5 then Profile Picture plugin will be most suitable for your case. Here is the link check it out. http://extensions.joomla.org/extensions/clients-a-communities/user-management/19702 . Hope it helps you.
Community builder is overkill just to get an image.
Here are a few options, depending on how often these are updated and whether you want to allow users to update these themselves.
Of course you can always make a category and an article for each team member, then use the links and urls to load the image in a standard location (override +use css in your template to do this). Use ACL to manage who can change this and to decide if you will allow users to manage.
Use the image field in the contact component, put all of the team members in the same category in contact. Put bio etc in miscellanous information. Only admins can manage this since it is edited back end only.
Use a profile plugin for com_user if you want users to be able to manage for themselves.
I am currently working on a CakePHP application that includes among other things a photo album that will be mainly maintained by an administrator.
I have now started to develop the Photo Album section of the site and was wondering about he following:
I know I have still to research into Windows Live Photo Gallery API
I am planning on using CakePHP Media Plugin to process my uploads and place each pictures in its corresponding folder.
However, what is the best approach to tackle this?
Should I create a Model/Controller with functions to handles this. For examples wluploads.php for the model and wluploads_controller.php. The model would then actsAs the Media Plugin.
Within the controller I would have actions like function upload(){, etc, to handle automatically/looped file uploads.
Is this a good approach. Can someone shed some light into some better approach?
Thank you very much!
You may find it easier (if you're comfortable with cakephp) just to create your own models/controllers and write the corresponding actions than using a plugin.
Should I create a Model/Controller with functions to handles this. For examples wluploads.php for the model and wluploads_controller.php. The model would then actsAs the
Media Plugin.
Within the controller I would have actions like function upload(){, etc, to handle automatically/looped file uploads.
Is this a good approach. Can someone shed some light into some better approach?
That is pretty much how I would do it - make a mode/controller with the relevant actions (upload_image etc) and post to the WL Photo Gallery API.
Suppose we have a module that displays tables of employees. Each employee has a photo. What is the best way to store this photos and display them?
I mean, is there some kind of content repository in drupal? I don't want to do this manually, maybe there is an API that can store images and then generate links to them and so on.
Thanks.
The Content Construction Kit(CCK) / Fields in core is what you want to explore.
Using CCK you can attach an image, a number field, a file, some text, a reference to content, etc to another piece of content.
In Drupal 7 you can add fields to any entity (Content, User...your custom one(Employee)), in Drupal 6 you might want to explore Content Profile
Further Reading:
http://drupal.org/node/717120
There is a kind of content repository in Drupal: both in the database and as storage (disk).
The API for that is documented in a special File upload section.
If you want inspiration, the core module called upload.module can serve as example. But be aware that Drupal core, for several reasons, is far from the best and cleanest examples to learn from.
What you are looking for is CCK module with file-field and image-field modules for handling the image upload action.
And for the display of those uploaded images you should use Image-cache