Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi
I have an images on my frontpage that I would like to display on my subpages. I have done it with simple text-strings but I can't get it to work with an images.
This is how I have done it with a text-string in the PartialViewMacroPage
@Model.Content.AncestorOrSelf(1).GetPropertyValue("email")
I appreciate your help :-)
Hi Kate,
Do you have a media picker on your homepage that you wish to show on every page?
Jeavon
Yes. I use a Media Picker
Ok then, should be like this:
@{ var mediaItemId = Model.Content.AncestorOrSelf(1).GetPropertyValue<int>("mediaPickerAlias"); var mediaItem = Umbraco.TypedMedia(mediaItemId); } <img src="@mediaItem.Url"/>
Thank you :-) Just what i need
You're welcome
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
inherited an images from frontpage
Hi
I have an images on my frontpage that I would like to display on my subpages. I have done it with simple text-strings but I can't get it to work with an images.
This is how I have done it with a text-string in the PartialViewMacroPage
I appreciate your help :-)
Hi Kate,
Do you have a media picker on your homepage that you wish to show on every page?
Jeavon
Yes. I use a Media Picker
Ok then, should be like this:
Thank you :-) Just what i need
You're welcome
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.