Quantcast
Channel: DevNet Questions
Viewing all articles
Browse latest Browse all 8834

CMSRepeater, Related pages and Teaser Image

$
0
0
Hi There,I'm trying to get the MenuItemTeaserImage in a CMSRepeater but after some searching I can't manage to get it working. The GetImage function is not working because its 'does not exist in the current context'. What am I doing wrong here? @cms:CMSRepeater ID=@RelatedRepeater@ runat=@server@ ClassNames=@CMS.Document@ Path=@/%@ RelationshipName=@isrelatedto@ RelationshipWithNodeGUID=@11111111-1111-1111-1111-111111111111@@ @ItemTemplate@ @div class=@col-lg-4 col-sm-9 col-xs-9@@ @a href='@%# Eval(@NodeAliasPath@) %@' class=@related__block@@ @div class=@related__imagewrapper@@ @img src='@%# GetImage(@MenuItemTeaserImage@) %@' alt='@%# EvalText(@DocumentName@) %@' class=@related__image@@ @/div@ @h4 class=@related__title@@@%# EvalText(@DocumentName@) %@@/h4@ @span class=@button button--secondary button--arrowright@@Take a look@/span@ @/a@ @/div@ @/ItemTemplate@ @/cms:CMSRepeater@

Viewing all articles
Browse latest Browse all 8834

Trending Articles