c# - umbraco 7.1 recursive image -



c# - umbraco 7.1 recursive image -

using ms visual studio 2012, c# 4.5 , umbraco 7.1.

i have been tweaking master page, , noticed had create images recursive (display on every page).

with property's no problem, example:

@umbraco.field("pagetitle", recursive: true)

this works fine, images little different im using media picker datatype image, when need add together code following

if (model.content.hasvalue("titleimage")) { var dynamicmedia1 = umbraco.media(model.content.getpropertyvalue("titleimage")); <a class="pull-left"> <img class="media-object" src="@dynamicmedia1.umbracofile" alt="" /> </a> }

this display image correctly great, not utilize umbraco.field cant see how utilize "recursive". i've tried looking @ old documentation doesn't reference images. , know new info isn't quiet available + found there no mention of recursive images.

is possible? missing something?

cheers guys

for interested,

seems though need add together , underscore on name, flags image recursive.

.... model.content.getpropertyvalue("_titleimage")

c# umbraco7

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -