With {{ processString(oSurvey.description,1) }} I got the following error:
Code:
An exception has been thrown during the rendering of a template ("Survey and its behaviors do not have a method or closure named "description".") in "__string_template ..."
{{ dump(aSurveyInfo) }} gives me the following. But oSurvey.localizedTitle and oSurvey.sSurveyUrl work fine. (I am doing this in layout_survey_list.twig of a custom theme.)
Code:
{
"publicSurveys": [ // <== this is oSurveys
{
"searched_value": null,
"showsurveypolicynotice": "0"
},
{
"searched_value": null,
"showsurveypolicynotice": "0"
},
...
{
"searched_value": null,
"showsurveypolicynotice": "0"
}
],
"futureSurveys": ,
"oTemplate": {
...
}
I see in SurveysController.php that publicSurveys is from
Code:
'publicSurveys' => Survey::model()->active()->open()->public()->with('languagesettings')->findAll()
Any more help is appreciated.