Insert different images using foreach in different divs using asp net razor
I am creating a simple app for news, I want at the top of my page to display 5 different images something similar to this page here: http://webdesign-finder.com/tm-socialgeek/
The above snippet codes work just fine displays uploaded images to the div created on top of home page, my problem is I want to display specific images to a specific div, I can't figure out how to achieve that, what am I missing in my code or what should I do to get it done?
You could have three media pickers. One for the right column, one for the centre column and one for the left column. Then something along the lines of:
Hii, Your method is okay, I created classes in c# for recognizing which image is uploaded eg Big, Small, Medium, and in which column should be inserted dynamically, thanks for your help.
Insert different images using foreach in different divs using asp net razor
I am creating a simple app for news, I want at the top of my page to display 5 different images something similar to this page here: http://webdesign-finder.com/tm-socialgeek/
Here is what I have done so far :
Static HTML Markup
Partials View for rendering :
Dynamic HTML Markup
The above snippet codes work just fine displays uploaded images to the div created on top of home page, my problem is I want to display specific images to a specific div, I can't figure out how to achieve that, what am I missing in my code or what should I do to get it done?
The Final Results should look like this:
There's a couple of ways you could do this.
You could have three media pickers. One for the right column, one for the centre column and one for the left column. Then something along the lines of:
Otherwise you could mess around with a grid editor. If you haven't taken a look at these then take a look at this: https://our.umbraco.org/documentation/getting-started/backoffice/property-editors/built-in-property-editors/grid-layout
Hii, Your method is okay, I created classes in c# for recognizing which image is uploaded eg Big, Small, Medium, and in which column should be inserted dynamically, thanks for your help.
is working on a reply...