Answer the question
In order to leave comments, you need to log in
How to display a tag in a template?
Good afternoon dear experts. Faced the following problem in DLE:
I wrote a plugin for the admin panel + for displaying information in a template. But here I ran into a problem with displaying tags {news-title}
or {news-image}
.
In modules/popular-news.php I have lines where the string is passed
$tpl->load_template('popular-news.tpl');
$tpl->set( '{news-title}', $news_title );
$tpl->set( '{news-link}', $news_link );
$tpl->set( '{news-comments}', $news_comments );
$tpl->set( '{news-images}', $news_images );
$tpl->set( '{news-read}', $news_read );
$tpl->compile('popular-news');
$tpl->clear();
popular-news.tpl
? There is no information about this on the Internet at all ... Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question