Php LAVEL在{%content%}中显示信息

Php LAVEL在{%content%}中显示信息,php,laravel,twig,octobercms,Php,Laravel,Twig,Octobercms,无法显示内容块信息 {% content 'structurated/'this.page.filename %} 这将返回一个错误。如果我删除“structurated/”{%content this.page.filename%},它将工作并返回内容块。但是我需要从structurated/文件夹返回信息。我怎样才能更改可以工作的代码 {% content 'structurated/'this.page.filename %} ERROR: Unexpected token "punc

无法显示内容块信息

{% content 'structurated/'this.page.filename %}
这将返回一个错误。如果我删除“structurated/”{%content this.page.filename%},它将工作并返回内容块。但是我需要从structurated/文件夹返回信息。我怎样才能更改可以工作的代码

{% content 'structurated/'this.page.filename %}

ERROR:
Unexpected token "punctuation" of value "." ("operator" expected with value "=").
==========
{% content 'structurated/'.this.page.filename %}

An exception has been thrown during the rendering of a template ("The content file '' is not found.").
==========
{% content 'structurated/'+this.page.filename %}

An exception has been thrown during the rendering of a template ("The content file '0' is not found.").
这应该可以做到

{% content 'structurated/' ~ this.page.filename %}

它现在没有正确连接

请发布错误。乍一看,它不像是正确连接字符串和变量。我不确定语法,但可能是“structurated/”。this.page.filename或“structurated/”+this.page.filename我更新问题时出错。如果显式输入文件名,会发生什么情况?类似于{%content'structurated/my_file%}如果我输入{%content'structurated/advisting.htm%},它就工作了。好的,所以它肯定是连接。您使用的模板语法是什么?很高兴听到!: