I'm a little rusty but I want to return all nodes of a document type and display an image from each node...sure this should work but nothing coming up on the page.
Thanks for the feedback Dennis...tried that and no luck. Also tried just displaying the node name and nothing so must be something to do with my foreach or variable...
Display image from Doc type
I'm a little rusty but I want to return all nodes of a document type and display an image from each node...sure this should work but nothing coming up on the page.
anyone spot anything obvious?
S
Hi Stephan,
I have taken a little look at your code, and the only thing I just immediately think you are missing is to add umbracoFiIe, where you print the image.
So I would try would be something like this:
<imgsrc='/ImageGen.ashx?image={current()/logo/umbracoFile}&width=200&height=100&Constrain=True'alt="{@nodeName}"class="sponsorLogo" />
Instead of this:
<imgsrc='/ImageGen.ashx?image={current()/logo}&width=200&height=100&Constrain=True'alt="{@nodeName}"class="sponsorLogo" />
I hope this can help you to a solution.
/Dennis
Thanks for the feedback Dennis...tried that and no luck. Also tried just displaying the node name and nothing so must be something to do with my foreach or variable...
is working on a reply...