terminal42 / contao-node

Manage content centrally as nodes and reuse them everywhere.
MIT License
29 stars 8 forks source link

Pass more data to the templates #22

Closed scuben closed 4 years ago

scuben commented 4 years ago

With this PR there will be more data passed to the templates which might be useful (it is in my case 😀)

scuben commented 4 years ago

I prefer passing on the arrays of data instead of models to the template (i.e. $element->row())...

That sounds about right. Will change that but wait for @Toflar 's feedback first.

Toflar commented 4 years ago

Yeah, let's pass an array.

scuben commented 4 years ago

Implemented your feedback, please have another look at it.

qzminski commented 4 years ago

I have simplified the code a bit. @scuben can you confirm it works as expected?

scuben commented 4 years ago

@qzminski Just tested it, works fine!

qzminski commented 4 years ago

Released in 1.3.0 :+1: