Hello,
I have a problem with option fields in my custom theme.
I define field in addOption function.
$this->addOption('mniswScore', 'text', array('label' => 'plugins.themes.custom.mnisw', 'description' => 'plugins.themes.custom.mnisw'));
I add some value to this in Journal website setting, but for now I can’t get this value on indexSite.tpl. I have here a standard loop:
{assign var="i" value=0}
{foreach from=$journalsWithImages item=journal}
{assign var="i" value=$i+1}
{capture assign="url"}{url journal=$journal->getPath()}{/capture}
{assign var="issueCover" value=$journal->lastImage}
{assign var="description" value=$journal->getLocalizedDescription()}
{$printIssn = $journal->getSetting('printIssn')}
{$onlineIssn = $journal->getSetting('onlineIssn')}
{$mniswScore = $journal->getOption('mniswScore')} <-- here I try to get value from journal's option field
{$mniswScore|@var_dump} <-- in result is null
{/foreach}
and in result I have [NULL]… Is there any way to get this value?