MantisBT - ATutor
View Issue Details
0005142ATutorThemepublic2012-12-31 12:252013-02-11 12:04
greg 
greg 
normalminoralways
closedfixed 
 
2.1.1 
SVN
1e04d9c..7f614f1 master -> master
0005142: page metadate missing
Metadata keywords entered through the content properties panel in not rendered in a meta keywords element. Needed for search engine indexing.
No tags attached.
related to 0005151closed greg Page metadata from course home 
Issue History
2012-12-31 12:25gregNew Issue
2012-12-31 13:03gregNote Added: 0005905
2012-12-31 13:03gregNote Edited: 0005905bug_revision_view_page.php?bugnote_id=5905#r89
2012-12-31 13:16gregNote Edited: 0005905bug_revision_view_page.php?bugnote_id=5905#r90
2012-12-31 13:56gregNote Added: 0005906
2013-01-02 12:34gregSVN Revision# => 1e04d9c..7f614f1 master -> master
2013-01-02 12:34gregNote Added: 0005908
2013-01-02 12:34gregStatusnew => resolved
2013-01-02 12:34gregFixed in Version => 2.1.1
2013-01-02 12:34gregResolutionopen => fixed
2013-01-02 12:34gregAssigned To => greg
2013-01-09 18:04gregRelationship addedrelated to 0005151
2013-02-11 12:04gregNote Added: 0006026
2013-02-11 12:04gregStatusresolved => closed

Notes
(0005905)
greg   
2012-12-31 13:03   
(edited on: 2012-12-31 13:16)
content.php "0000118:0000061"
$content_keywords = $content_row['keywords'];

header.tmpl.php "0000049:0000065"
    <?php if(isset($this->content_keywords) && $this->content_keywords != ''){ ?>
    <meta name="keywords" content="<?php echo $this->content_keywords; ?>" />
    <?php } ?>

header.inc.php "0000084:0000040"
global $content_keywords;

(0005906)
greg   
2012-12-31 13:56   
Also add the first bit of content as description:

content.php "0000118:0000061"
$content_description = preg_replace('/\s\s+/', ' ',substr(str_replace(' ', ' ',str_replace('"', '', strip_tags($content_row['text']))), 0, 350));

header.tmpl.php "0000049:0000065"
    <?php if(isset($this->content_description) && $this->content_description != ''){ ?>
    <meta name="description" content="<?php echo $this->content_description; ?>" />
    <?php } ?>

header.inc.php "0000084:0000040"
global $content_description;
(0005908)
greg   
2013-01-02 12:34   
added keyword and description metadata to theme header templates, and created patch for 2.1
(0006026)
greg   
2013-02-11 12:04   
closed for 2.1.1