Joomla


#1

I’ve been trying to get Twitter cards to work.

It was suggested to me to place this code

<?php artxFragmentBegin(ob_get_clean()); artxFragmentContent($this->escape($this->article->title)); ob_start(); if (isset($images->image_intro) and !empty($images->image_intro)) { $timage= htmlspecialchars(JURI::root().$images->image_intro); } elseif (isset($images->image_fulltext) and !empty($images->image_fulltext)) { $timage= htmlspecialchars(JURI::root().$images->image_fulltext); } else { $timage= 'http://www.example.com/default-image.jpg'; } $doc =& JFactory::getDocument(); $doc->addCustomTag( ' '); ?>

Into /cms/templates/gg-site/html/com_content/article/default.php at line 22

I used the validator and everything works except ‘twitter:description’ and ‘twitter:title’ which are supposed to be dynamically pulled in.

Does anyone know how to properly do this in Joomla 1.5? We’re still waiting to upgrade to Joomla 3.0


#2

I fixed it

All I had to do was change >item–> when it appeared to >article->