$movies[m]
alain93 opened this issue · comments
alain93 commented
Hello,
I'm trying to add the movie format in postertitle.html, alas format does not seem to be available.
I can return name, year with $movies[m]->name or $movies[m]->year, but not format.
Why is that?
and how could I show format?
Johan Eklund commented
Hello,
I have limited the number of columns returned from the database to get a performance boost.
You need to modify includes/movie.search.inc.php
and add format
.
From:
// Change what columns to get from the database (movie collection)
$columns = array();
if($templateName === 'poster' || $templateName === 'postertitle')
$columns = array('`id`','`name`','`year`','`seen`','`own`','`favourite`','`tv`');
Into:
// Change what columns to get from the database (movie collection)
$columns = array();
if($templateName === 'poster' || $templateName === 'postertitle')
$columns = array('`id`','`name`','`year`','`seen`','`own`','`favourite`','`tv`','`format`');
alain93 commented
oh wow! thanks, this thing was driving me nuts :)