This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

michael.gorini9825568
michael.gorini9825568

Hello, i'm wondering if there is a way to pass php variables to partials, can someone help me? Thank you.

ndcisiv
michael.gorini9825568
michael.gorini9825568

ndcisiv said:

Docs explain it pretty well.

https://octobercms.com/docs/cms/partials#partial-variables

I read it but i don't know how it works, in this code {% partial "blog-posts" posts=posts %} posts is a twig variable isn't it? so how can i do that with php variables. Sorry if i missed something but i'm new here

1-3 of 3

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.