Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Forums Help & Support metatags
Alankeys
Posted on 26 Dec 2009, 13:00:54

Access: Member
Total Posts: 107
Joined: 2009-11-28

Chris

Ive got fullstory.php working as it should. Could you possibly prompt me in the right direction on the issue of metatitle. Im damned if i can see how to read the article headline into metatitle within a typical fullstory.php page ?
#1387
Chris
Posted on 26 Dec 2009, 13:05:24

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

By metatitle, you mean the title of the page?

Code:
<head>
<title>title here</title>
</head>


that?
#1389
Alankeys
Posted on 26 Dec 2009, 13:05:55

Access: Member
Total Posts: 107
Joined: 2009-11-28

yes
#1390
Chris
Posted on 26 Dec 2009, 13:08:46

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

On the fullstory.php page, whichever template you're using for that page, add this to the end of the news section

Code:
<script language="javascript">
document.title = 'UK City Media - {title}';
</script>


This will make it automatically change the page title to "UK City Media" + the title of the current news article
#1391
Last edited by Chris at 2009-12-26 18:53:57 Reason:
Rschneider
Posted on 05 Mar 2010, 21:14:39

Access: Member
Total Posts: 15
Joined: 2010-03-03

Did I just learn something new about javascript/php integration? The javascript can read the php variables? That's pretty cool, and I had no clue about that :)

EDIT: ah, nevermind, I just read it over again... :)
#2050
Last edited by Rschneider at 2010-03-05 21:17:47 Reason:
Network-13.com © 2013