Hi
In a twig I have the below and it outputs the page title+link.
{% for p in page.find('/wallpapers').children if p != page %}
<a href="{{p.url}}/">{{ p.title}}</a>
{% endfor %}
I have another variable for the image artistimg I have added this to the twig like below but the variable name doesn't get outputted. I also tried changing this to page.artistimg but no name is added. I also tried changing p.title to p.folder (another variable in those md files) and nothing gets returned. So am I correct to say that page.find doesn't work with any other variable other then page title
{% for p in page.find('/wallpapers').children if p != page %}
{{p.artistimg}} <a href="{{p.url}}/">{{ p.title}}</a>
{% endfor %}
I also tried the below to try and dump the image out using the variable but again nothing.
{% for p in page.find('/wallpapers').children if p != page %}
{{ dump(pages.find('/images/landing-page-thumbnails/'~page.header.artisti mg).media.images) }} <a href="{{p.url}}/">{{ p.title}}</a>
{% endfor %}
Is what I am trying to do possible?