You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have theme when template for news grid menu is the same as default news template.
I wanted to save time (or editing) and I did this:
Grid menu tepmplate:
$NEWS_GRID_TEMPLATE['col-md-4']
- normal codeNews template:
$grid_templates = e107::getTemplate('news', 'news_grid');
$NEWS_TEMPLATE['default'] = $grid_templates['col-md-4'];
It works nicely.
But when I tried to do it opposite way (put code in news template).
$NEWS_TEMPLATE['default'] - normal code
and in grid news template:
$news_templates = e107::getTemplate('news', 'news');
$NEWS_GRID_TEMPLATE['col-md-4'] = $news_templates['default'];
I am getting error
but when I print value of $NEWS_GRID_TEMPLATE in template file, it is correct.
Why this is not working for menu?
Beta Was this translation helpful? Give feedback.
All reactions