S
S
Stanislav Molodtsov2016-08-22 16:05:55
PHP
Stanislav Molodtsov, 2016-08-22 16:05:55

How to display the {title} tag in a separate TPL file on DLE?

This is my first question on this site, I hope there are people here who will help)
The situation is this, there is a site on DLE 10.5
When switching to the full news, the {title} tag must be displayed in the site header in a separate tpl file - head-content.tpl.
Found this code:

<?php
if (isset($_GET['do']) AND ($_GET['do']=='cat') AND (!isset($_GET['newsid'])))
echo '<h1>'.$cat_info[$category_id]['name'].'</h1>';
?>

It works, but only outputs the category name in the category itself. In the full news emptiness.
How to fix it so that it displays the title of the full news? I will be very grateful!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Verkh, 2016-08-22
@madDesire

try like this:
echo '<h1>'. $row['title'].'</h1>';

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question