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
Just started using DAMP and I'm using the following code to display a logo in the footer area
dynamic media = Model.MediaById(Model.footerLogo); <img src="@media.umbracoFile" alt="@media.nodeName" height="40px"/>
Which works if I'm on the home page, any other page it wont, how do i make this recursive so it displays at any level?
Regards,
S
Ah darn it i got it right after i posted! Simples!
dynamic media = Model.MediaById(Model.AncestorOrSelf().footerLogo);
Glad you got it fixed. I think this will also work:
dynamic media = Model.MediaById(Model._footerLogo);
Jeroen
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
Display image from homepage using Razor
Just started using DAMP and I'm using the following code to display a logo in the footer area
Which works if I'm on the home page, any other page it wont, how do i make this recursive so it displays at any level?
Regards,
S
Ah darn it i got it right after i posted! Simples!
Glad you got it fixed. I think this will also work:
Jeroen
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.