Skip to content
Discussion options

You must be logged in to vote

What I would suggest (without seeing your codebase)

Modules are designed to be themable, by a theme.

So the theme, when it is styling the InfoModule should be the one providing it's path to the image.

The info module might know that an image should exist (but I would say it probably shouldn't)

I'm not sure if you've done this with shapes, or razor pages.

But in my opinion the thing that is rendering the InfoModule should be in the theme, so the theme can style it.

Or you need some kind of provider, that the theme(s) implement to provide a img url.

Hopefully that's some ideas to get you going again.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@inzi
Comment options

@inzi
Comment options

Answer selected by inzi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants