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.
Dear CuteNews Users! Please feel free to contact us via our new Feedback Form and please send information about bugs to our bug tracker.
You are not logged in. Please login or register.
CutePHP Forums → Problem Solving / Help & Support → 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.
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>
Thanks.
Great !! it helped me!
Hay, so i need to know variable of additional fields.
For example in this code - "<title><? if ($entry) {echo ''. $entry['t']. ' '. $entry['s'].''; } print($page_title);?></title>"
- $entry['t'] is variable of "Article title", $entry['s'] is variable of "Shot story".
I made additional field "Description" and i need to add a variable in this code.
CutePHP Forums → Problem Solving / Help & Support → News title in browser
Powered by PunBB, supported by Informer Technologies, Inc.
The pun_antispam official extension is installed. Copyright © 2003–2009 PunBB.