Topic: News title in browser

Hi.
I would like the news title to be displayed in the browser.

How to do it?

I use CuteNews in version 2.1.0.

Re: News title in browser

At the very beginning of the script which posts the news, you can insert such pieces of code:

   

require_once("cn_api.php");
$entry = cn_api_get_entry();

Use the following contruction with the <title> tag:

 <title><?php echo ($entry) ? $entry['t'] : 'Example page'; ?></title> 
Best regards,
CN Support team

Re: News title in browser

Thanks. big_smile