These are chat archives for locomotivecms/v3

10th
Aug 2016
weggesser
@weggesser
Aug 10 2016 04:58

OK - played around a little more - looks like this is some kind of lazy loading issue. It actually does work when iterating over site.index.children using a for loop and accessing the object or a property ...

this works:

{% for it in site.index.children %}<!-- {{ it }} --> {% endfor %}    
{{ site.index.children | map: 'title' | join: " - " }}

while this does not work:

{{ site.index.children | map: 'title' | join: " - " }}
{% for it in site.index.children %}<!-- {{ it }} --> {% endfor %}    
`

I'd be grateful for any hint!

Didier Lafforgue
@did
Aug 10 2016 07:04
hi @weggesser!
let me check in the code
Didier Lafforgue
@did
Aug 10 2016 07:51
hmm, I wrote a spec showing your issue and you’re right.
Didier Lafforgue
@did
Aug 10 2016 08:12
I think I know what’s going on.
we miss the liquid context in the page liquid drop
the for liquid tag assigns the context to each liquid page drop which is the expected behavior
but for some reasons, the map doesn't
Didier Lafforgue
@did
Aug 10 2016 08:54
alright, fixed @weggesser
locomotivecms/steam@cd9291d
doing my best to release a new version soon
weggesser
@weggesser
Aug 10 2016 09:03
@did that's awesome! will check this out now ... thank you for looking into this!
Didier Lafforgue
@did
Aug 10 2016 09:03
no pb :-) let me know if it worked for you