106
Views
7
Comments
How to apply background images coming from different module
Application Type
Reactive

Hello everyone.

I have an app with several modules. One of them i want to use it specific to keep all of the images to use throughout the modules because of their size.

So my question is, how can i use the image that i have in the resources part of that image module in a different module, setting it as a background image?

Thank you to anyone who can help me on this.

2023-10-21 19-42-11
Tousif Khan
Champion

Hello

Just take the dependencies from the module from where your images are.

and set these two properties

Note: Post Updated


Then If you want to use it to set background then just apply the CSS

use the background and properly 

background:url();

in the class where you want to apply background 

And copy the Image url path from the resources from the property

into the brackets.

hope this helps

Thanks

2023-10-21 19-42-11
Tousif Khan
Champion

Updated OAP for Demo 

You can download here due to large size I have uploaded it to G drive

https://drive.google.com/file/d/1jq6m6xT_UgkIPH4DrJy8pV0liU34RbBo/view?usp=sharing

Thanks

2022-06-01 09-01-40
Ana Pintor

Thank you very much for the help. It just seems like i don't have this "public" option as you do. This is a Service module, i don't know if this could be the reason


2023-10-21 19-42-11
Tousif Khan
Champion

Yes it will not show in Service module there are various reason for that.

check here 

2021-08-12 05-19-40
Shubham Janbandhu

Hi Ana Pintor,

Can I know why you want to use a separate module for images? If you have more images you can create a separate entity in the service module which behaves as the core layer with the image attribute and set the property, Public = Yes, and Expose read only = Yes.

Best Regards,

Shubham

2022-06-01 09-01-40
Ana Pintor

Well it would be for a matter of organizing the information and to remove all the heavy content from the core module, leaving it all in one module that would work as an images "library/repository" let's put it this way

2021-08-12 05-19-40
Shubham Janbandhu

ok. that's great.. but check for the new module you will get the additional stuffs with manage dependencies related to UI and others.

Thank you,

Shubham

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.